/* =============================================
   PROSPELY · styles.css
   ============================================= */

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  overflow-y: scroll;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

img, svg { display: block; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input { font-family: inherit; }

/* --- Variables --- */
:root {
  --primary:       #2563EB;
  --primary-dark:  #1D4ED8;
  --primary-light: #EFF6FF;
  --accent:        #0EA5E9;

  --text-dark:   #0F172A;
  --text-medium: #334155;
  --text:        #334155;
  --text-muted:  #64748B;
  --text-light:  #94A3B8;

  --bg:          #ffffff;
  --bg-light:    #F8FAFC;
  --bg-muted:    #F1F5F9;
  --border:      #E2E8F0;
  --border-faint:#F1F5F9;

  --success:     #10B981;
  --success-bg:  #ECFDF5;
  --danger:      #EF4444;
  --danger-bg:   #FEF2F2;
  --warning:     #F59E0B;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.10), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-xl:  0 32px 80px rgba(0,0,0,0.12), 0 12px 32px rgba(0,0,0,0.08);

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  --ease: 0.2s ease;
}

/* --- Container --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  overflow-x: hidden;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--ease);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(37,99,235,0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--text-medium);
  background: transparent;
}
.btn-ghost:hover {
  color: var(--text-dark);
  background: var(--bg-light);
}

.btn-secondary {
  background: var(--bg-light);
  color: var(--text-dark);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--border);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-white:hover {
  background: #F8FAFC;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

.btn-outline-white {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
  background: transparent;
}
.btn-outline-white:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.1);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

/* Nav user session */
.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.nav-user-avatar-fallback {
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.nav-user-email {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-medium);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =============================================
   SECTION BASE
   ============================================= */

.section {
  padding: 96px 0;
}

.bg-light {
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-pill {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.75;
}

/* =============================================
   ANIMATIONS
   ============================================= */

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.fade-in:nth-child(1) { animation-delay: 0.05s; }
.fade-in:nth-child(2) { animation-delay: 0.15s; }
.fade-in:nth-child(3) { animation-delay: 0.25s; }
.fade-in:nth-child(4) { animation-delay: 0.35s; }
.fade-in:nth-child(5) { animation-delay: 0.45s; }
.fade-in:nth-child(6) { animation-delay: 0.55s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.6; }
}

/* =============================================
   NAVIGATION
   ============================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-faint);
  transition: box-shadow var(--ease);
}
.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 8px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.18);
  flex-shrink: 0;
}
.logo-dot-light {
  background: #93C5FD;
  box-shadow: 0 0 0 3px rgba(147,197,253,0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
}
.nav-links a {
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--ease);
}
.nav-links a:hover {
  color: var(--text-dark);
  background: var(--bg-light);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.lang-toggle {
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  background: transparent;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: border-color var(--ease), color var(--ease);
  margin-left: 4px;
  font-family: inherit;
}
.lang-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  margin-left: auto;
  margin-right: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--ease);
}

/* =============================================
   HERO
   ============================================= */

.hero {
  position: relative;
  padding: 72px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 20%, rgba(37,99,235,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(14,165,233,0.06) 0%, transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #F8FAFC 100%);
  pointer-events: none;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at center, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at center, black 20%, transparent 80%);
  pointer-events: none;
  z-index: 2;
}

/* Prospect Feed Animation */
.prospect-feed {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 280px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  filter: blur(0.5px);
}

.prospect-feed::before,
.prospect-feed::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 2;
  pointer-events: none;
}

.prospect-feed::before {
  top: 0;
  background: linear-gradient(to bottom, #fff 0%, rgba(255,255,255,0) 100%);
}

.prospect-feed::after {
  bottom: 0;
  background: linear-gradient(to top, #fff 0%, rgba(255,255,255,0) 100%);
}

.prospect-feed-left {
  left: calc(50% - 680px);
}

.prospect-feed-right {
  right: calc(50% - 680px);
}

.prospect-feed-track {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: scrollUp 40s linear infinite;
}

.prospect-feed-track-reverse {
  animation: scrollDown 45s linear infinite;
}

@keyframes scrollUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

@keyframes scrollDown {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

.prospect-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.prospect-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prospect-location {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.prospect-insights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.insight {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  padding: 4px 8px;
  background: var(--bg-subtle);
  color: var(--text-medium);
  border-radius: var(--radius-sm);
}

.insight-hot {
  background: #fef3c7;
  color: #92400e;
}

/* Hide prospect feeds on smaller screens */
@media (max-width: 1400px) {
  .prospect-feed {
    opacity: 0.25;
    width: 220px;
  }
}

@media (max-width: 1200px) {
  .prospect-feed {
    display: none;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-medium);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 2px rgba(16,185,129,0.22);
  animation: pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

/* Hero title */
.hero-title {
  font-size: clamp(36px, 6vw, 66px);
  font-weight: 900;
  line-height: 1.08;
  color: var(--text-dark);
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero subtitle */
.hero-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
  text-align: center;
}

/* Hero benefit text (above CTAs) */
.hero-benefit {
  font-size: 15px;
  color: #64748B;
  line-height: 1.5;
  margin-top: 24px;
  margin-bottom: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding: 0 16px;
}

/* Hero speed badge */
.hero-speed-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

/* Hero tagline - Prospely = Prospects + Quickly */
.hero-tagline {
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  opacity: 0.8;
}
.hero-tagline span {
  font-weight: 500;
  color: var(--text-muted);
}

/* Hero signal cards */
.hero-signal-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 820px;
  margin: 0 auto 24px;
}

.hero-signal-card {
  text-align: left;
  padding: 22px 20px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  background: #fff;
  border: none;
  font-family: inherit;
  width: 100%;
}

.hero-signal-card.active {
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, #eff6ff 0%, #fff 100%);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.12);
}

.hero-signal-card.active:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.25);
}

.hero-signal-card.inactive {
  border: 1.5px solid var(--border);
  background: #fafafa;
  opacity: 0.7;
  cursor: not-allowed;
}

.hero-signal-card .card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  font-weight: 700;
  background: #e5e7eb;
  color: #6b7280;
  padding: 3px 10px;
  border-radius: 99px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-signal-card .card-icon {
  font-size: 32px;
  margin-bottom: 12px;
  line-height: 1;
}

.hero-signal-card .card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}

.hero-signal-card.active .card-title {
  color: #1d4ed8;
}

.hero-signal-card.inactive .card-title {
  color: #374151;
}

.hero-signal-card .card-desc {
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.hero-signal-card.active .card-desc {
  color: #3b82f6;
}

.hero-signal-card.inactive .card-desc {
  color: #9ca3af;
}

.hero-signal-card .card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 6px;
}

@media (max-width: 768px) {
  .hero-signal-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  padding: 0 16px;
  max-width: 100%;
}

.btn-hero-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
}

.btn-hero-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(37, 99, 235, 0.4);
}

.btn-hero-main:active {
  transform: scale(0.98);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.btn-hero-secondary:active {
  transform: scale(0.98);
}

@media (max-width: 600px) {
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    padding: 0 16px;
  }
  .btn-hero-main,
  .btn-hero-secondary {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    padding: 14px 16px;
    font-size: 15px;
  }
  .btn-hero-main svg,
  .btn-hero-secondary svg {
    width: 16px;
    height: 16px;
  }
}

/* Hero Stats (Signal bullets) */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 80px;
  flex-wrap: wrap;
  padding: 0 16px;
  max-width: 100%;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.hero-stat-icon {
  font-size: 24px;
  line-height: 1;
  margin-bottom: 2px;
}

.hero-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
  max-width: 160px;
  text-align: center;
  line-height: 1.4;
}

/* Hero secondary CTA */
.hero-secondary-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-or {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

.btn-icp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius-lg);
  background: transparent;
  cursor: pointer;
  transition: all var(--ease);
}

.btn-icp:hover {
  background: var(--primary-light);
}

.btn-icp svg {
  stroke: var(--primary);
}

/* Hero tags */
.hero-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.tag-label {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-medium);
  cursor: pointer;
  transition: all var(--ease);
}
.hero-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* Hero social proof */
.hero-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.proof-avatars {
  display: flex;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  margin-left: -8px;
  flex-shrink: 0;
}
.proof-avatars .avatar:first-child {
  margin-left: 0;
}

.hero-proof p {
  font-size: 14px;
  color: var(--text-muted);
}
.hero-proof strong {
  color: var(--text-dark);
}

/* =============================================
   OPPORTUNITIES SHOWCASE — Landing page cards preview
   ============================================= */
.opp-showcase {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  padding: 80px 0 60px;
}
.opp-showcase-header {
  text-align: center;
  margin-bottom: 48px;
}
.opp-showcase-badge {
  display: inline-block;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #6366f1;
  background: #eef2ff;
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 20px;
  margin-bottom: 16px;
}
.opp-showcase-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.opp-showcase-sub {
  font-size: 16px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
.opp-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
/* Cards in showcase get visible borders + shadow for LP context */
.opp-showcase-card {
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.opp-showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.opp-showcase-cta {
  text-align: center;
  margin-top: 40px;
}
.opp-showcase-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}
@media (max-width: 900px) {
  .opp-showcase-grid { grid-template-columns: 1fr; max-width: 420px; }
  .opp-showcase-title { font-size: 28px; }
}

/* =============================================
   LEADS PREVIEW TABLE
   ============================================= */

.leads-preview {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  padding: 80px 0;
}

.leads-preview-header {
  text-align: center;
  margin-bottom: 40px;
}

.leads-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.leads-preview-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 12px;
}

.leads-preview-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
}

.leads-table-wrapper {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
}

.leads-table thead {
  background: var(--bg-subtle);
}

.leads-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

.leads-table td {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
}

.leads-table tbody tr:hover {
  background: var(--bg-subtle);
}

.leads-table tbody tr:last-child td {
  border-bottom: none;
}

.email-blur {
  color: var(--text-muted);
  font-family: monospace;
  font-size: 13px;
  background: var(--bg-subtle);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  filter: blur(2px);
  user-select: none;
}

.lead-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  padding: 0 8px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
}

.lead-score.high {
  background: #dcfce7;
  color: #166534;
}

.lead-score.medium {
  background: #fef3c7;
  color: #92400e;
}

/* Signal tags in table */
.signal-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.signal-red { background: #fef2f2; color: #dc2626; }
.signal-orange { background: #fff7ed; color: #ea580c; }
.signal-green { background: #f0fdf4; color: #16a34a; }
.signal-purple { background: #f5f3ff; color: #7c3aed; }

.enrich-found {
  color: var(--text-medium);
  font-size: 13px;
}

.row-blurred {
  position: relative;
}

.row-blurred td {
  filter: blur(4px);
  user-select: none;
}

.leads-table-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 40%, #fff 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 32px;
}

.leads-table-cta {
  text-align: center;
}

.leads-table-cta p {
  font-size: 16px;
  color: var(--text-dark);
  margin: 0 0 16px;
}

/* =============================================
   SECOND CTA
   ============================================= */

.second-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 80px 0;
}

.second-cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.second-cta h2 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.3;
}

.second-cta p {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin: 0 0 28px;
}

.second-cta .btn {
  background: #fff;
  color: var(--primary);
}

.second-cta .btn:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
}

/* =============================================
   HOW IT WORKS
   ============================================= */

.steps-grid {
  display: grid;
  grid-template-columns: 1fr 48px 1fr 48px 1fr;
  align-items: start;
}

.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: transform var(--ease), box-shadow var(--ease);
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-number {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.step-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
}

.step-connector {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 68px;
  color: var(--text-light);
  font-size: 22px;
}
.step-connector::before {
  content: '→';
}

/* =============================================
   AI EMAIL GENERATION PREVIEW
   ============================================= */

.ai-email-preview {
  margin-top: 56px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.ai-email-preview-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-light);
}
.ai-email-preview-badge {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
}
.ai-email-preview-subtitle {
  display: inline-block;
  margin-left: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: #f0f4ff;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid #d6e4ff;
}

/* Split container for two columns */
.ai-split-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.ai-split-col {
  border-right: 1px solid var(--border);
}
.ai-split-col:last-child {
  border-right: none;
}
.ai-split-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}
.ai-split-icon {
  font-size: 18px;
  line-height: 1;
}
.ai-split-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.01em;
}
.ai-split-col .ai-email-match {
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
.ai-split-col .ai-email-result {
  border-bottom: none;
}

/* Match cards row */
.ai-email-match {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
}
.ai-email-card {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.ai-email-card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.ai-email-card-you .ai-email-card-label { color: var(--primary); }
.ai-email-card-target .ai-email-card-label { color: #e74c3c; }

.ai-email-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.ai-email-card-detail {
  font-size: 13px;
  color: var(--text-muted);
}
.ai-email-card-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.ai-signal {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}
.ai-signal-red {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.ai-signal-orange {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fed7aa;
}
.ai-signal-green {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.ai-email-arrow {
  flex-shrink: 0;
  color: var(--primary);
  opacity: 0.5;
}

/* Generated email */
.ai-email-result {
  padding: 24px;
}
.ai-email-result-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.ai-email-body {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-medium);
}
.ai-email-body p { margin: 0 0 10px; }
.ai-email-body p:last-child { margin-bottom: 0; }
.ai-email-subject {
  color: var(--text-dark);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px !important;
}
.ai-email-signature {
  color: var(--text-muted);
  font-style: italic;
  margin-top: 4px !important;
}

@media (max-width: 640px) {
  .ai-email-match {
    flex-direction: column;
    gap: 12px;
  }
  .ai-email-arrow {
    transform: rotate(90deg);
  }
  .ai-email-preview {
    margin-top: 36px;
  }
  .ai-split-container {
    grid-template-columns: 1fr;
  }
  .ai-split-col {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .ai-split-col:last-child {
    border-bottom: none;
  }
  .ai-email-preview-subtitle {
    display: block;
    margin-left: 0;
    margin-top: 8px;
  }
}

/* =============================================
   BEFORE / AFTER COMPARISON
   ============================================= */

.before-after.bg-dark {
  background: #0f172a;
}
.before-after.bg-dark .section-pill {
  background: rgba(255,255,255,0.08);
  color: #93c5fd;
  border-color: rgba(255,255,255,0.1);
}
.before-after.bg-dark .section-title {
  color: #fff;
}
.before-after.bg-dark .section-subtitle {
  color: #94a3b8;
}

.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.ba-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.ba-col-header {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 0;
  border-radius: 12px 12px 0 0;
  margin-bottom: 0;
}
.ba-header-before {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-bottom: none;
}
.ba-header-after {
  background: #eff6ff;
  color: var(--primary);
  border: 1px solid #bfdbfe;
  border-bottom: none;
}

.ba-before {
  background: #fff;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding-bottom: 4px;
}
.ba-after {
  background: #fff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding-bottom: 4px;
}

.ba-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-medium);
}
.ba-step-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}
.ba-step-muted {
  opacity: 0.7;
}
.ba-step-active {
  color: var(--text-dark);
}
.ba-step-active strong {
  color: var(--primary);
}

.ba-arrow-down {
  text-align: center;
  font-size: 16px;
  color: #ccc;
  line-height: 1;
  padding: 2px 0;
}
.ba-arrow-blue {
  color: var(--primary);
  opacity: 0.5;
}

.ba-step-result {
  border-radius: 0 0 12px 12px;
  margin-top: 2px;
  padding: 16px 20px;
  font-weight: 600;
}
.ba-step-result-bad {
  background: #fef2f2;
  color: #dc2626;
}
.ba-step-result-good {
  background: #eff6ff;
  color: var(--primary);
}

@media (max-width: 640px) {
  .ba-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* =============================================
   PRODUCT MOCKUP
   ============================================= */

.preview-wrapper {
  /* intentionally no extra margin */
}

.mockup {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: #fff;
}

/* Browser chrome bar */
.mockup-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border);
}

.mockup-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red    { background: #FF5F57; }
.dot-yellow { background: #FFBD2E; }
.dot-green  { background: #28CA41; }

.mockup-url {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 16px;
}

.mockup-controls {
  display: flex;
  gap: 8px;
}
.mock-chip {
  font-size: 13px;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 6px;
  cursor: default;
}

/* App body */
.mockup-body {
  padding: 20px;
}

/* Mock search row */
.mock-searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.mock-search-icon {
  color: var(--text-light);
  flex-shrink: 0;
  line-height: 1;
}

.mock-query-text {
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 500;
  flex: 1;
}

.mock-tag {
  display: inline-flex;
  padding: 3px 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-muted);
}
.mock-tag-primary {
  background: var(--primary-light);
  border-color: rgba(37,99,235,0.2);
  color: var(--primary);
  font-weight: 600;
}

.mock-export {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}

/* Result counter */
.mock-result-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 2px;
  font-size: 13px;
  color: var(--text-muted);
}
.mock-sort {
  cursor: default;
}

/* Table */
.mock-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.mock-thead,
.mock-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr 72px 100px;
  align-items: center;
  padding: 10px 16px;
}

.mock-thead {
  background: #F8FAFC;
  border-bottom: 1px solid var(--border);
}
.mock-thead span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.mock-tbody .mock-row {
  border-bottom: 1px solid var(--border-faint);
  transition: background var(--ease);
}
.mock-tbody .mock-row:hover {
  background: #FAFAFA;
}
.mock-tbody .mock-row:last-child {
  border-bottom: none;
}

.mock-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mock-name strong {
  font-size: 14px;
  color: var(--text-dark);
}
.mock-name em {
  font-size: 11px;
  color: var(--text-light);
  font-style: normal;
}

.mock-cell {
  font-size: 13px;
  color: var(--text-muted);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.badge-success {
  background: var(--success-bg);
  color: #059669;
}
.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
}
.badge-neutral {
  background: var(--bg-light);
  color: var(--text-muted);
}
.badge-enrich {
  background: var(--primary, #3b5bdb);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  border: none;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge-enrich:hover {
  background: var(--primary-dark, #2b4ac7);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(59, 91, 219, 0.3);
}
.badge-enrich:active {
  transform: translateY(0);
  box-shadow: none;
}
.badge-enrich-disabled {
  background: var(--bg-light, #f1f5f9);
  color: var(--text-muted, #94a3b8);
  cursor: default;
}
.badge-enrich-disabled:hover {
  background: var(--bg-light, #f1f5f9);
  color: var(--text-muted, #94a3b8);
  transform: none;
  box-shadow: none;
}
.enrich-cost {
  font-size: 10px;
  opacity: 0.75;
  font-weight: 500;
  margin-left: 1px;
}

/* Welcome banner — fixed bottom */
.welcome-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  border-top: 1px solid #c7d2fe;
  padding: 12px 24px;
  font-size: 14px;
  color: #3730a3;
  line-height: 1.5;
  animation: bannerSlideUp 0.35s ease-out;
}
.welcome-banner a { color: #4338ca; font-weight: 600; text-decoration: underline; }
.welcome-banner a:hover { color: #3730a3; }
.welcome-banner-content { display: flex; align-items: center; gap: 10px; flex: 1; }
.welcome-banner-icon { font-size: 20px; flex-shrink: 0; }
.welcome-banner-close {
  background: none; border: none; cursor: pointer; font-size: 20px;
  color: #6366f1; opacity: 0.6; padding: 0 4px; line-height: 1; flex-shrink: 0;
}
.welcome-banner-close:hover { opacity: 1; }
@keyframes bannerSlideUp {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Status badges: Actif / Fermé */
.badge-actif {
  background: #d1fae5;
  color: #059669;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge-ferme {
  background: #fee2e2;
  color: #dc2626;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Active/Inactive indicator */
.badge-active {
  display: inline-block;
  color: var(--success);
  font-size: 8px;
  margin-right: 6px;
  vertical-align: middle;
}
.badge-inactive {
  display: inline-block;
  color: var(--danger);
  font-size: 8px;
  margin-right: 6px;
  vertical-align: middle;
}

/* Score badge */
.badge-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 18px;
  padding: 0 6px;
  margin-left: 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
  vertical-align: middle;
}

/* Score pill */
.score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 26px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}
.score.high   { background: var(--success-bg); color: #059669; }
.score.medium { background: #FFFBEB;           color: var(--warning); }

/* Action button */
.mock-cta {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 5px 12px;
  border-radius: 6px;
  cursor: default;
  transition: background var(--ease);
}
.mock-cta:hover {
  background: #DBEAFE;
}

/* Blurred last row */
.mock-row-blurred {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
  position: relative;
}

/* "More results" overlay */
.mock-more-overlay {
  position: relative;
  text-align: center;
  padding: 20px 16px 8px;
}
.mock-more-overlay::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, #fff 40%, transparent);
  pointer-events: none;
}
.mock-more-overlay p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* =============================================
   FOR WHO
   ============================================= */

.icp-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.icp-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  transition: transform var(--ease), box-shadow var(--ease);
}
.icp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.icp-icon {
  font-size: 32px;
  margin-bottom: 14px;
}
.icp-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.icp-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =============================================
   FINAL CTA
   ============================================= */

.final-cta {
  padding: 100px 0;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 55%, #0ea5e9 100%);
}

.cta-box {
  text-align: center;
  color: #fff;
  max-width: 620px;
  margin: 0 auto;
}

.cta-pill {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.cta-box h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.cta-box > p {
  font-size: 18px;
  opacity: 0.85;
  line-height: 1.75;
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cta-note {
  font-size: 13px;
  opacity: 0.6;
  margin: 0 !important;
}

/* =============================================
   SEO CONTENT
   ============================================= */

.seo-content {
  background: var(--bg-light);
  padding: 64px 0;
}

.seo-content h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.seo-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 800px;
}

.seo-content p:last-child {
  margin-bottom: 0;
}

/* =============================================
   FAQ
   ============================================= */

.faq-section {
  background: var(--bg-light);
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-light);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 0;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 0 20px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
  background: #0B1120;
  color: #fff;
  padding: 64px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-logo {
  color: #fff;
  margin-bottom: 14px;
  display: inline-flex;
}

.footer-brand-meaning {
  font-size: 13px;
  color: #64748B;
  font-style: italic;
  margin-bottom: 8px;
  opacity: 0.85;
  letter-spacing: 0.01em;
}

.footer-brand p {
  font-size: 14px;
  color: #64748B;
  line-height: 1.75;
  margin-bottom: 10px;
}

.footer-tagline-note {
  font-size: 13px;
  color: #475569;
}

.footer-links {
  display: flex;
  gap: 56px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: #64748B;
  transition: color var(--ease);
}
.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p,
.footer-bottom a {
  font-size: 13px;
  color: #475569;
  transition: color var(--ease);
}
.footer-bottom a:hover {
  color: #94A3B8;
}

/* =============================================
   RESPONSIVE — 1024px
   ============================================= */

@media (max-width: 1024px) {
  .icp-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-links {
    gap: 40px;
  }
}

/* =============================================
   RESPONSIVE — 768px
   ============================================= */

@media (max-width: 768px) {
  /* Global container */
  .container {
    padding: 0 16px;
    max-width: 100%;
  }

  .section { padding: 72px 0; }

  /* Nav */
  .nav-inner {
    padding: 0 16px;
    gap: 8px;
  }
  .nav-links,
  .nav-cta .btn-ghost {
    display: none;
  }
  .nav-toggle {
    display: flex;
    margin-left: auto;
    order: 10;
  }
  .nav-cta {
    gap: 8px;
    margin-left: auto;
  }
  .nav-logo {
    flex-shrink: 0;
  }
  .lang-toggle {
    margin-left: 0;
  }

  /* Hero */
  .hero { 
    padding: 72px 0 88px; 
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .hero-title { font-size: clamp(32px, 8vw, 48px); }

  .hero-subtitle {
    font-size: 15px;
    line-height: 1.6;
    max-width: 90%;
    padding: 0 16px;
    margin-bottom: 20px;
  }

  .hero-benefit {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 16px;
    margin-bottom: 20px;
    max-width: 90%;
    padding: 0 16px;
  }

  .hero-speed-badge {
    font-size: 12px;
    padding: 5px 12px;
  }

  .hero-stats {
    gap: 16px;
    margin-top: 24px;
    margin-bottom: 48px;
    padding: 0 16px;
    flex-direction: column;
  }
  
  .hero-stat {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    gap: 6px;
  }
  
  .hero-stat-icon {
    font-size: 28px;
  }
  
  .hero-stat-value {
    font-size: 18px;
  }
  
  .hero-stat-label {
    font-size: 14px;
    max-width: 100%;
    line-height: 1.5;
  }

  .hero-search {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: var(--radius-lg);
    gap: 10px;
  }
  .search-icon { display: none; }
  .search-btn {
    width: 100%;
    justify-content: center;
  }

  /* Leads Preview */
  .leads-preview {
    padding: 60px 0;
  }
  
  .leads-preview-title {
    font-size: 24px;
  }
  
  .leads-table {
    font-size: 13px;
  }
  
  .leads-table th,
  .leads-table td {
    padding: 12px 10px;
  }
  
  .leads-table th:nth-child(4),
  .leads-table td:nth-child(4) {
    display: none;
  }

  /* Second CTA */
  .second-cta {
    padding: 60px 0;
  }
  
  .second-cta h2 {
    font-size: 24px;
  }

  /* Steps */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .step-connector { display: none; }

  /* Benefits */
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  /* ICP */
  .icp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Mockup table: hide Activity + Action columns */
  .mock-thead,
  .mock-row {
    grid-template-columns: 2fr 1fr 1.4fr 64px;
  }
  .mock-thead span:nth-child(3),
  .mock-row > span:nth-child(3),
  .mock-thead span:nth-child(6),
  .mock-row > span:nth-child(6) {
    display: none;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .section-header { margin-bottom: 44px; }
}

/* =============================================
   RESPONSIVE — 480px
   ============================================= */

@media (max-width: 480px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .icp-grid {
    grid-template-columns: 1fr;
  }

  .hero-tags {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hero-tags::-webkit-scrollbar { display: none; }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .mockup-controls { display: none; }
  .mock-tag        { display: none; }
  .mock-export     { margin-left: 0; }

  .mockup-body { padding: 14px; }
}

/* =============================================
   GOOGLE SIGN-IN MODAL
   ============================================= */

.signin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.signin-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.signin-modal-overlay.is-open .signin-modal-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.signin-modal-box {
  position: relative;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 44px 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-xl);
  text-align: center;
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.28s ease;
}

.signin-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--bg-light);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--ease);
}
.signin-modal-close:hover {
  background: var(--border);
  color: var(--text-dark);
}

.signin-modal-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.signin-modal-soon-badge {
  display: inline-block;
  padding: 5px 14px;
  background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
  color: #4338CA;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.signin-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.signin-modal-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.signin-modal-benefits {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 24px;
}
.signin-modal-benefits span {
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
}

.google-btn-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  min-height: 44px;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 24px;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #3c4043;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  min-width: 280px;
}

.btn-google:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.btn-google:active {
  background: #f1f3f4;
}

.btn-google svg {
  flex-shrink: 0;
}

.signin-modal-note {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.65;
}
.signin-modal-note a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.signin-modal-note a:hover {
  color: var(--text-dark);
}

@media (max-width: 480px) {
  .signin-modal-box {
    padding: 36px 24px 28px;
    border-radius: var(--radius-lg);
  }
  .signin-modal-benefits {
    gap: 6px 12px;
  }
}

/* =============================================
   WAITLIST SUCCESS PAGE
   ============================================= */
.waitlist-success-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 24px;
}

.waitlist-success-box {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.waitlist-success-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 36px;
  color: #fff;
  font-weight: bold;
}

.waitlist-success-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.waitlist-success-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.waitlist-success-info {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.waitlist-success-info p {
  margin: 0;
  font-size: 14px;
  color: var(--text-dark);
}

.waitlist-success-info p:first-child {
  margin-bottom: 4px;
}

.waitlist-success-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  margin-bottom: 28px;
}

.waitlist-success-benefits span {
  font-size: 14px;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .waitlist-success-box {
    padding: 36px 24px;
  }
  .waitlist-success-title {
    font-size: 24px;
  }
}

/* =============================================
   SIGNUP PAGE — split layout premium
   ============================================= */

/* --- Main Container --- */
.auth-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- LEFT COLUMN - HERO --- */
.auth-left {
  flex: 1;
  background: 
    radial-gradient(ellipse 120% 100% at 20% 10%, rgba(29, 78, 216, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 100% 80% at 80% 90%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #0a0e1a 0%, #0f172a 50%, #1e293b 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 80px 120px 80px 80px;
  position: relative;
  overflow: hidden;
}

/* Noise texture overlay pour effet premium */
.auth-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

/* Mesh gradient animé subtil */
.auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(29, 78, 216, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);
  animation: meshMove 20s ease-in-out infinite;
  pointer-events: none;
  filter: blur(80px);
}

@keyframes meshMove {
  0%, 100% { 
    transform: translate(0, 0) scale(1); 
    opacity: 1; 
  }
  50% { 
    transform: translate(2%, -2%) scale(1.05); 
    opacity: 0.8; 
  }
}

/* Orbes lumineux subtils et élégants */
.auth-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.auth-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.auth-shape-1 {
  width: 500px;
  height: 500px;
  top: -150px;
  right: -100px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  animation: orb1 25s ease-in-out infinite;
}

.auth-shape-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.12) 0%, transparent 70%);
  animation: orb2 30s ease-in-out infinite;
}

.auth-shape-3 {
  width: 350px;
  height: 350px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  animation: orb3 35s ease-in-out infinite;
}

.auth-shape-4 {
  width: 300px;
  height: 300px;
  top: 20%;
  left: 10%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.1) 0%, transparent 70%);
  animation: orb4 28s ease-in-out infinite;
}

.auth-shape-5 {
  width: 250px;
  height: 250px;
  bottom: 20%;
  right: 15%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.09) 0%, transparent 70%);
  animation: orb5 32s ease-in-out infinite;
}

.auth-shape-6 {
  display: none; /* Simplification pour rendu plus pro */
}

@keyframes orb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 30px) scale(1.1); }
}

@keyframes orb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -20px) scale(1.15); }
}

@keyframes orb3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes orb4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, 40px) scale(0.9); }
}

@keyframes orb5 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-25px, -30px) scale(1.05); }
}

/* Lignes diagonales subtiles pour depth */
.auth-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    linear-gradient(135deg, transparent 48%, rgba(96, 165, 250, 0.02) 49%, rgba(96, 165, 250, 0.02) 51%, transparent 52%),
    linear-gradient(45deg, transparent 48%, rgba(59, 130, 246, 0.015) 49%, rgba(59, 130, 246, 0.015) 51%, transparent 52%);
  background-size: 80px 80px, 120px 120px;
  background-position: 0 0, 40px 40px;
  opacity: 0.4;
}

/* Respect des préférences d'accessibilité */
@media (prefers-reduced-motion: reduce) {
  .auth-left::before,
  .auth-shape {
    animation: none !important;
  }
  
  .auth-left::before {
    opacity: 0.5;
  }
}

.auth-left-content {
  position: relative;
  z-index: 1;
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  min-height: 600px;
}

.auth-left-header {
  margin-bottom: 60px;
  animation: slideDown 0.6s ease-out 0.1s both;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  transition: opacity 0.2s ease;
}

.auth-logo:hover {
  opacity: 0.8;
}

.auth-logo img {
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.auth-logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.auth-left-body {
  flex: 1;
  animation: slideUp 0.6s ease-out 0.2s both;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-title {
  font-size: 56px;
  font-weight: 800;
  color: white;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.auth-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
  margin-bottom: 64px;
  font-weight: 400;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.auth-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.2s ease;
}

.auth-feature:hover {
  transform: translateX(4px);
}

.auth-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.auth-feature:hover .auth-feature-icon {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.auth-feature-content {
  flex: 1;
  padding-top: 2px;
}

.auth-feature-title {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.auth-feature-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  font-weight: 400;
}

.auth-left-footer {
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeIn 0.6s ease-out 0.4s both;
}

.auth-security {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.auth-security svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* --- RIGHT COLUMN - FORM --- */
.auth-right {
  flex: 1;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px;
  position: relative;
}

.auth-back {
  position: absolute;
  top: 32px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #6B7280;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.auth-back:hover {
  color: #111827;
  transform: translateX(-2px);
}

.auth-right-content {
  width: 100%;
  max-width: 440px;
  animation: slideUp 0.6s ease-out 0.3s both;
}

/* Card */
.signup-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 32px;
  width: 100%;
  transition: all 0.3s ease;
}

.signup-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.signup-card-header {
  margin-bottom: 24px;
}

.signup-card-title {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.signup-card-subtitle {
  font-size: 15px;
  color: #64748B;
  font-weight: 400;
  line-height: 1.5;
}

/* Credits badge */
.signup-credits-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dbeafe;
  color: #1e40af;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
  font-weight: 600;
  border: 1px solid #93c5fd;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.signup-credits-badge strong {
  font-weight: 600;
}

/* Google button */
.signup-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  border: 1px solid #E5E7EB;
  background: #ffffff;
  color: #111827;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.signup-google-btn:hover {
  background: #F9FAFB;
  border-color: #D1D5DB;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.signup-google-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Separator */
.signup-separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0;
  color: #9CA3AF;
  font-size: 13px;
  font-weight: 500;
}

.signup-separator::before,
.signup-separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #E5E7EB;
}

.signup-separator span {
  padding: 0 16px;
}

/* Mode Toggle */
.signup-mode-toggle {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  background: #F3F4F6;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #E5E7EB;
}

.signup-mode-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: #6B7280;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.signup-mode-btn:hover {
  color: #374151;
}

.signup-mode-btn.active {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Form */
.signup-form-group {
  margin-bottom: 20px;
}

.signup-form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.signup-form-input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  font-size: 15px;
  color: #111827;
  background: #ffffff;
  transition: all 0.2s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.signup-form-input:hover {
  border-color: #D1D5DB;
}

.signup-form-input:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background: #ffffff;
}

.signup-form-input::placeholder {
  color: #9CA3AF;
}

/* Messages */
.signup-error {
  padding: 12px 16px;
  border-radius: 10px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
  font-weight: 500;
}

.signup-success {
  padding: 12px 16px;
  border-radius: 10px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #16A34A;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
  font-weight: 500;
}

/* Submit Button */
.signup-submit-btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  margin-bottom: 0;
}

.signup-submit-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.signup-submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.signup-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Footer note */
.signup-page-note {
  font-size: 13px;
  color: #6B7280;
  margin-top: 20px;
  text-align: center;
  line-height: 1.5;
}

.signup-page-note a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.signup-page-note a:hover {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
  .auth-left {
    padding: 60px 80px 60px 60px;
  }
  
  .auth-right {
    padding: 60px;
  }
}

@media (max-width: 1024px) {
  .auth-left {
    padding: 48px 60px 48px 48px;
  }
  
  .auth-right {
    padding: 48px;
  }
  
  .auth-title {
    font-size: 48px;
  }
  
  .auth-subtitle {
    font-size: 17px;
    margin-bottom: 56px;
  }
  
  .auth-features {
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .auth-container {
    flex-direction: column;
  }
  
  .auth-left {
    min-height: auto;
    padding: 48px 32px;
  }
  
  /* Réduire les orbes sur mobile */
  .auth-shape-4,
  .auth-shape-5 {
    display: none;
  }
  
  .auth-bg-shapes {
    opacity: 0.4;
  }
  
  /* Simplifier les lignes sur mobile */
  .auth-particles {
    opacity: 0.2;
  }
  
  .auth-left-content {
    min-height: auto;
    max-width: 100%;
  }
  
  .auth-left-header {
    margin-bottom: 48px;
  }
  
  .auth-title {
    font-size: 40px;
    margin-bottom: 16px;
  }
  
  .auth-subtitle {
    font-size: 16px;
    margin-bottom: 40px;
  }
  
  .auth-features {
    gap: 24px;
  }
  
  .auth-left-footer {
    margin-top: 48px;
    padding-top: 28px;
  }
  
  .auth-right {
    padding: 48px 32px;
  }
  
  .auth-back {
    top: 20px;
    left: 20px;
  }
  
  .signup-card {
    padding: 36px;
  }
}

@media (max-width: 480px) {
  .auth-left {
    padding: 40px 24px;
  }
  
  .auth-left-header {
    margin-bottom: 40px;
  }
  
  .auth-title {
    font-size: 32px;
  }
  
  .auth-subtitle {
    font-size: 15px;
    margin-bottom: 36px;
  }
  
  .auth-features {
    gap: 20px;
  }
  
  .auth-feature-icon {
    width: 36px;
    height: 36px;
  }
  
  .auth-feature-title {
    font-size: 15px;
  }
  
  .auth-feature-desc {
    font-size: 13px;
  }
  
  .auth-left-footer {
    margin-top: 40px;
    padding-top: 24px;
  }
  
  .auth-right {
    padding: 40px 24px;
  }
  
  .signup-card {
    padding: 32px 24px;
  }
  
  .signup-card-title {
    font-size: 24px;
  }
  
  .auth-back {
    top: 16px;
    left: 16px;
    font-size: 13px;
  }
}

/* =============================================
   FLOW TABS — 4 écrans interactifs
   ============================================= */

/* Nav tabs */
.flow-tabs-nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.flow-tab-btn {
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: #fff;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all var(--ease);
}
.flow-tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.flow-tab-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,0.28);
}

/* Panels */
.flow-tab-panel {
  display: none;
}
.flow-tab-panel.is-active {
  display: block;
  animation: fadeUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Caption */
.flow-caption {
  text-align: center;
  margin-top: 20px;
  font-size: 15px;
  color: var(--text-muted);
  font-style: italic;
}

/* 5-column table */
.mock-thead-5col,
.mock-row-5col {
  grid-template-columns: 2fr 1.5fr 1fr 1fr 110px;
}

/* Row highlights */
.mock-row-hl-red    { background: #FFF5F5; }
.mock-row-hl-yellow { background: #FFFBEB; }

.text-light-val {
  font-size: 13px;
  color: var(--text-light);
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.st-new       { background: #F1F5F9; color: #475569; }
.st-contacted { background: var(--primary-light); color: var(--primary); }
.st-replied   { background: var(--success-bg); color: #059669; }
.st-client    { background: #FFF7ED; color: #D97706; }

/* Relance badges */
.relance-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.rb-late  { background: var(--danger-bg); color: var(--danger); }
.rb-today { background: #FFFBEB; color: #D97706; }
.rb-soon  { background: var(--success-bg); color: #059669; }

/* CTA variants */
.mock-cta-blue {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}
.mock-cta-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Pipeline kanban */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.pipeline-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pipeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
}
.pipeline-h-new       { background: #F1F5F9; color: #475569; }
.pipeline-h-contacted { background: var(--primary-light); color: var(--primary); }
.pipeline-h-replied   { background: var(--success-bg); color: #059669; }
.pipeline-h-client    { background: #FFF7ED; color: #D97706; }

.pipeline-count {
  font-size: 12px;
  opacity: 0.7;
}
.pipeline-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pipeline-card strong {
  font-size: 13px;
  color: var(--text-dark);
}
.pipeline-card em {
  font-size: 11px;
  color: var(--text-muted);
  font-style: normal;
}
.pipeline-card-hot    { border-color: #BBF7D0; background: #F0FDF4; }
.pipeline-card-signed { border-color: #FED7AA; background: #FFF7ED; }

/* Email composer */
.mock-email {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.mock-email-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-faint);
}
.mock-email-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: 44px;
  flex-shrink: 0;
}
.mock-email-val {
  font-size: 14px;
  color: var(--text-dark);
}
.mock-email-sep {
  height: 1px;
  background: var(--border);
}
.mock-email-body {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.75;
}
.mock-email-body p { margin-bottom: 12px; }
.mock-email-body p:last-child { margin-bottom: 0; }

.mock-var {
  background: var(--primary-light);
  color: var(--primary);
  padding: 1px 6px;
  border-radius: 4px;
  font-style: normal;
  font-weight: 600;
  font-size: inherit;
}
.mock-email-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-faint);
  background: var(--bg-light);
  flex-wrap: wrap;
}
.mock-email-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}

/* Responsive flow tabs */
@media (max-width: 768px) {
  .flow-tab-btn { font-size: 13px; padding: 8px 14px; }

  .pipeline-grid { grid-template-columns: repeat(2, 1fr); }

  .mock-thead-5col,
  .mock-row-5col { grid-template-columns: 2fr 1fr 90px; }

  .mock-row-5col > span:nth-child(2),
  .mock-thead-5col > span:nth-child(2),
  .mock-row-5col > span:nth-child(4),
  .mock-thead-5col > span:nth-child(4) { display: none; }

  .mock-email-hint { display: none; }
}

@media (max-width: 480px) {
  .pipeline-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pipeline-col:nth-child(3),
  .pipeline-col:nth-child(4) { display: none; }

  .flow-tabs-nav { gap: 6px; }
  .flow-tab-btn  { font-size: 12px; padding: 7px 12px; }
}

/* =============================================
   APP SHELL — zone privée admin (search-only)
   ============================================= */

/* --- App Nav --- */
.app-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.app-nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 24px;
  max-width: 1800px;
  margin: 0 auto;
  position: relative;
}
.app-nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.app-logo { margin-right: 0; }

/* Plan badge */
.user-plan-badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--bg-light);
  border: 1px solid var(--border);
}

/* Credits display */
.user-credits {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-light);
}
.user-credits svg {
  color: var(--primary);
}

/* User menu dropdown */
.user-menu {
  position: relative;
}
.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--ease);
}
.user-menu-trigger:hover {
  background: var(--bg-light);
  border-color: var(--border);
  color: var(--text-dark);
}
.user-menu-trigger .chevron {
  transition: transform var(--ease);
}
.user-menu.open .user-menu-trigger .chevron {
  transform: rotate(180deg);
}
.user-menu-trigger #app-user-email {
  display: none;
}
.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 180px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.15s ease;
  z-index: 200;
}
.user-menu.open .user-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-medium);
  text-decoration: none;
  transition: all var(--ease);
}
.user-menu-item:hover {
  background: var(--bg-light);
  color: var(--text-dark);
}
.user-menu-item svg { flex-shrink: 0; opacity: 0.7; }
.user-menu-item-danger { color: #EF4444; }
.user-menu-item-danger:hover { background: #FEF2F2; color: #DC2626; }
.user-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* Upgrade button */
.btn-upgrade {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all var(--ease);
  box-shadow: 0 1px 3px rgba(99, 102, 241, 0.3);
}
.btn-upgrade:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}
.btn-upgrade svg { flex-shrink: 0; }
.btn-upgrade-lg {
  padding: 10px 20px;
  font-size: 14px;
}

/* --- Pricing Page --- */
.pricing-page {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg) 100%);
  overflow-y: auto;
}
.pricing-page .app-nav-inner {
  justify-content: space-between;
}
.pricing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.pricing-header {
  text-align: center;
  margin-bottom: 48px;
}
.pricing-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.pricing-subtitle {
  font-size: 18px;
  color: var(--text-muted);
}
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.pricing-card {
  position: relative;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.pricing-card-popular {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.03) 0%, var(--bg) 100%);
}
.pricing-card-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--bg-light);
  border: 1px solid var(--border);
}
.pricing-badge-popular {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}
.pricing-card-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.pricing-card-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}
.pricing-amount {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-dark);
}
.pricing-period {
  font-size: 16px;
  color: var(--text-muted);
}
.pricing-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}
.pricing-features li svg {
  color: var(--success);
  flex-shrink: 0;
}
.pricing-feature-disabled {
  color: var(--text-muted) !important;
  opacity: 0.6;
}
.pricing-feature-disabled svg {
  color: var(--text-muted) !important;
}
.pricing-btn {
  width: 100%;
  justify-content: center;
}
.pricing-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

.btn-sm { padding: 6px 14px; font-size: 13px; }

/* --- App Main --- */
.app-main { max-width: 1800px; margin: 0 auto; padding: 40px 48px 80px; }
.app-page-header { margin-bottom: 28px; }
.app-page-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.app-page-sub { font-size: 15px; color: var(--text-muted); }

/* --- Search Bar --- */
.search-bar-wrap {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 8px 6px 14px;
  gap: 10px;
  margin-bottom: 14px;
  transition: border-color var(--ease);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  flex-wrap: wrap;
}
.search-bar-wrap:focus-within { border-color: var(--primary); }
.search-icon-wrap { color: var(--text-light); flex-shrink: 0; }
.app-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text-dark);
  background: transparent;
}
.app-search-input::placeholder { color: var(--text-light); }
.app-search-select {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text-dark);
  background: transparent;
  padding: 14px 12px;
  cursor: pointer;
  min-width: 0;
}
.app-search-select + .app-search-select {
  border-left: 1px solid var(--border);
}
.activity-field-wrap + .app-search-select {
  border-left: 1px solid var(--border);
}
.structured-search {
  padding: 0;
  gap: 0;
}
.structured-search .btn {
  flex-shrink: 0;
  margin: 6px 6px 6px 0;
  border-radius: var(--radius-sm);
}

/* --- Custom NAF code input --- */
.activity-field-wrap {
  display: flex;
  align-items: center;
  flex: 2;           /* 2× weight so activity label has enough room */
  min-width: 200px;  /* never shrink below this */
}
.activity-field-wrap .app-search-select {
  flex: 1;
}
.custom-naf-toggle {
  width: 26px;
  height: 26px;
  margin-left: 6px;
  margin-right: 6px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  color: var(--primary);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.custom-naf-toggle:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.custom-naf-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text-dark);
  background: transparent;
  padding: 14px 12px;
  min-width: 0;
}
.custom-naf-input::placeholder {
  color: var(--text-light);
}

/* --- Custom City INSEE codes --- */
.city-field-wrap {
  display: flex;
  align-items: center;
  flex: 1.5;
  min-width: 180px;
}
.city-field-wrap .app-search-select {
  flex: 1;
}
.custom-insee-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 8px;
}
.custom-insee-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
}
.custom-insee-pill-remove {
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
  font-weight: 600;
}
.custom-insee-pill-remove:hover {
  opacity: 1;
}

/* --- Date Filter Group --- */
.search-date-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-left: 1px solid var(--border);
}
.search-date-label {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}
.app-search-date {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--bg-light);
  outline: none;
  cursor: pointer;
  transition: border-color var(--ease);
}
.app-search-date:focus { border-color: var(--primary); }
.app-search-date::-webkit-calendar-picker-indicator { cursor: pointer; }
.search-date-sep {
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Active Checkbox --- */
.search-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-left: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
}
.search-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}
.search-checkbox-label {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}
.search-checkbox:hover .search-checkbox-label {
  color: var(--text-dark);
}

.search-size-dropdown {
  position: relative;
  border-left: 1px solid var(--border);
  padding-left: 12px;
  margin-left: 2px;
}

.search-size-dropdown > summary {
  list-style: none;
}

.search-size-dropdown > summary::-webkit-details-marker {
  display: none;
}

.search-size-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text-medium);
  font-size: 13px;
  cursor: pointer;
}

.search-size-trigger-label {
  font-weight: 600;
  color: var(--text-dark);
}

.search-size-trigger-count {
  color: var(--text-muted);
  font-size: 12px;
}

.search-size-trigger-chevron {
  color: var(--text-light);
  transition: transform var(--ease);
}

.search-size-dropdown[open] .search-size-trigger {
  border-color: #bfdbfe;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.search-size-dropdown[open] .search-size-trigger-chevron {
  transform: rotate(180deg);
}

.search-size-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 12px;
  z-index: 30;
  min-width: 190px;
  background: #fff;
  border: 1px solid #dfe5f0;
  border-radius: 12px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.14);
  padding: 8px;
  display: grid;
  gap: 4px;
}

.search-size-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-medium);
  cursor: pointer;
}

.search-size-option:hover {
  background: #f8fafc;
}

.search-size-option input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* --- Search Chips --- */
.search-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.search-chip-label { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.search-chip {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-light);
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text-medium);
  transition: background var(--ease), border-color var(--ease);
}
.search-chip:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

/* --- Loader --- */
.search-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 60px 0;
  color: var(--text-muted);
  font-size: 14px;
}
.loader-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Search hint --- */
.search-hint {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin: 12px 0 0;
}

/* --- Search filters summary --- */
.search-filters-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 10px 0 0;
}
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-card, #f4f4f5);
  color: var(--text-dark, #18181b);
  border: 1px solid var(--border, #e4e4e7);
}
.filter-tag--muted {
  color: var(--text-muted, #71717a);
  background: transparent;
  border-style: dashed;
}

/* --- Results --- */
.results-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 12px;
}
.results-header-left { flex: 1; min-width: 200px; }
.results-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 4px;
}
.results-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}
.results-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  font-size: 13px;
  flex-wrap: wrap;
}
.results-count { color: var(--text-medium); }
.results-count strong { color: var(--text-dark); font-weight: 600; }
.results-sort { color: var(--text-muted); }
.results-table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); box-shadow: var(--shadow-sm); max-width: 100%; }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  margin-top: 16px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: all var(--ease);
}
.pagination-btn:hover:not(:disabled) {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pagination-btn svg {
  flex-shrink: 0;
}
.pagination-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-medium);
}
.pagination-info #pagination-current {
  font-weight: 600;
  color: var(--text-dark);
}
.pagination-sep {
  color: var(--text-muted);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: fixed;
}
/* Compact table variant */
.results-table-compact thead th { padding: 10px 12px; }
.results-table-compact td { padding: 10px 12px; }
.results-table thead th {
  background: var(--bg-light);
  padding: 11px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.results-table tbody tr {
  border-bottom: 1px solid var(--border-faint);
  transition: background var(--ease);
}
.results-table tbody tr:last-child { border-bottom: none; }
.results-table tbody tr:hover { background: var(--bg-light); }
.results-table td { padding: 12px 16px; color: var(--text-medium); vertical-align: middle; }
.td-name {
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 0;
}
.td-name:hover { color: var(--primary); }
.td-score { text-align: center; white-space: nowrap; vertical-align: middle; }
.th-score { text-align: center; }
.btn-score-prospely {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 10px;
  border: 1.5px solid #f0c040; background: #fff;
  cursor: pointer; padding: 0; flex-shrink: 0; position: relative;
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
  box-shadow: 0 0 6px 1px rgba(245,185,50,0.35), 0 0 12px 2px rgba(245,185,50,0.15);
  animation: prospely-glow 2.5s ease-in-out infinite;
}
.btn-score-prospely:hover {
  border-color: #d4a017;
  box-shadow: 0 0 12px 4px rgba(245,185,50,0.55), 0 0 24px 6px rgba(245,185,50,0.25);
  transform: translateY(-2px) scale(1.05);
  animation: none;
}
.btn-score-prospely img { display: block; border-radius: 4px; }

/* Score badge (shown after analysis) */
.prospely-score-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 26px; padding: 0 8px;
  border-radius: 8px; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: transform 0.15s, box-shadow 0.2s;
}
.prospely-score-badge:hover {
  transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* Spinner for analysis loading */
.prospely-spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid #fff; border-top-color: transparent;
  border-radius: 50%; animation: prospely-spin 0.6s linear infinite;
  vertical-align: middle; margin-right: 6px;
}
@keyframes prospely-spin {
  to { transform: rotate(360deg); }
}

/* Spinner inside the table Score cell */
.prospely-cell-spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2.5px solid #e0e0e0; border-top-color: #6366f1;
  border-radius: 50%; animation: prospely-spin 0.6s linear infinite;
}
.td-city, .td-type, .td-date { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.td-email { max-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-email a, .td-email span { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.td-web { max-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-web a, .td-web span { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.td-phone { max-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.score-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 24px; padding: 0 6px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.score-high    { background: var(--success-bg); color: var(--success); }
.score-mid     { background: #FEF9C3; color: #A16207; }
.score-low     { background: var(--bg-light); color: var(--text-muted); }
.score-neutral { background: var(--bg-light); color: var(--text-muted); }

.status-select {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-light);
  color: var(--text-medium);
  cursor: pointer;
  font-family: inherit;
}
.st-new       { background: var(--primary-light); color: var(--primary); }
.st-contacted { background: #FEF9C3; color: #A16207; }
.st-replied   { background: var(--success-bg); color: var(--success); }
.st-client    { background: #F0FDF4; color: #15803D; }
.st-lost      { background: var(--bg-light); color: var(--text-muted); }

.btn-row-action {
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
  border: none;
  cursor: pointer;
  transition: background var(--ease);
}
.btn-row-action:hover { background: var(--primary); color: #fff; }

/* --- Drawer --- */
.prospect-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
}
.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.35);
  backdrop-filter: blur(2px);
}
.drawer-panel {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: min(480px, 96vw);
  background: var(--bg);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  animation: slideIn 0.22s ease;
}
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 1;
  gap: 12px;
}
.drawer-title { font-size: 18px; font-weight: 800; color: var(--text-dark); }
.drawer-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.drawer-close {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--ease);
  flex-shrink: 0;
}
.drawer-close:hover { background: var(--bg-light); color: var(--text-dark); }
.drawer-body { padding: 24px; flex: 1; }
.drawer-meta { margin-bottom: 24px; }
.drawer-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-faint);
  font-size: 14px;
}
.drawer-meta-row:last-child { border-bottom: none; }
.drawer-meta-label { font-weight: 600; color: var(--text-muted); font-size: 13px; }
.drawer-link { color: var(--primary); font-weight: 500; text-decoration: underline; }
.drawer-section { margin-top: 24px; }
.drawer-section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 10px; }
.drawer-note {
  width: 100%;
  min-height: 80px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  resize: vertical;
  outline: none;
  transition: border-color var(--ease);
  background: var(--bg-light);
}
.drawer-note:focus { border-color: var(--primary); background: var(--bg); }
.drawer-template {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 12px;
}
.drawer-template p { margin-bottom: 8px; }
.drawer-template p:last-child { margin-bottom: 0; }
.drawer-template mark { background: #FEF9C3; padding: 0 2px; border-radius: 3px; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .app-nav-inner { display: flex; flex-wrap: wrap; gap: 8px; height: auto; min-height: 60px; padding: 10px 16px; }
  #app-user-email { display: none; }
  .app-main { padding: 24px 16px 60px; max-width: 100%; }
  .results-table td:nth-child(3),
  .results-table th:nth-child(3),
  .results-table td:nth-child(4),
  .results-table th:nth-child(4) { display: none; }
  .search-date-group { display: none; }
  .search-checkbox { display: none; }
  .search-size-dropdown { display: none; }
  .search-bar-wrap { flex-wrap: wrap; }
  .app-search-select { min-width: 100px; flex: 1 1 auto; }
  .btn-upgrade { padding: 6px 10px; font-size: 12px; }
  .user-menu-trigger { padding: 4px 6px; }
  .app-tabs { order: 10; width: 100%; justify-content: center; margin: 0; }
}

/* ======================================================
   DASHBOARD — Sub-tabs for Mon entreprise / Stats / Crédits
   ====================================================== */
.dashboard-sub-tabs {
  display: flex;
  gap: 4px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.dashboard-sub-tab {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.dashboard-sub-tab:hover { background: var(--bg-light); color: var(--text-dark); }
.dashboard-sub-tab.active { background: var(--primary-light); color: var(--primary); }
.dashboard-panel { /* inherits from container */ }

/* ======================================================
   PERSISTENCE LAYER — Saved Leads & row actions
   ====================================================== */

/* Tab navigation in app-nav */
.app-tabs {
  display: flex;
  gap: 4px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.app-tab {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.app-tab:hover  { background: var(--bg-light); color: var(--text-dark); }
.app-tab.active { background: var(--primary-light); color: var(--primary); }

/* Golden style for Opportunités tab */
.app-tab.app-tab-gold {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border-color: #f59e0b33;
  position: relative;
}
.app-tab.app-tab-gold:hover {
  background: linear-gradient(135deg, #fde68a, #fcd34d);
  color: #78350f;
}
.app-tab.app-tab-gold.active {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #fff;
  box-shadow: 0 0 12px #f59e0b44, 0 1px 3px #f59e0b33;
  border-color: #f59e0b;
}

/* Badge on "Mes leads" tab */
.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
}

/* Save button in results table */
.btn-row-save {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-light);
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  white-space: nowrap;
}
.btn-row-save:hover        { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.btn-row-save.saved        { background: #F0FDF4; color: #15803D; border-color: #BBF7D0; cursor: default; }

/* Delete button in saved-leads table */
.btn-row-delete {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-row-delete:hover { background: #FEF2F2; color: #EF4444; border-color: #FECACA; }

/* Google search button */
.btn-row-search {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  flex-shrink: 0;
}
.btn-row-search:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.btn-row-search.viewed { 
  background: var(--bg-muted); 
  color: var(--text-light); 
  border-color: var(--border); 
  opacity: 0.5;
}
.btn-row-search.viewed:hover { 
  opacity: 0.7;
  background: var(--bg-muted);
  color: var(--text-muted);
  border-color: var(--border);
}

/* Settings button (next to search) */
.btn-row-settings {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  flex-shrink: 0;
}
.btn-row-settings:hover { background: var(--bg-muted); color: var(--text-dark); border-color: var(--text-muted); }

/* Mail button */
.btn-row-mail {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  flex-shrink: 0;
}
.btn-row-mail:hover { background: #FEF3C7; color: #D97706; border-color: #F59E0B; }

/* Relance counter badge on mail button (in "Mails envoyés" tab) */
.btn-row-mail-relance {
  position: relative;
  overflow: visible;
}
.btn-row-mail-relance .btn-relance-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #2563eb;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  pointer-events: none;
  letter-spacing: -0.2px;
}
.btn-row-mail-relance.btn-row-mail-urgent .btn-relance-badge {
  background: #dc2626;
}

/* Enrich dropdown */
.btn-row-enrich {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  font-size: 16px;
  font-weight: 600;
}
.btn-row-enrich:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }

/* Prospely action button — golden glow highlight */
.btn-row-prospely {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1.5px solid #f0c040;
  cursor: pointer;
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
  box-shadow: 0 0 6px 1px rgba(245,185,50,0.35), 0 0 12px 2px rgba(245,185,50,0.15);
  flex-shrink: 0;
  padding: 0;
  position: relative;
  animation: prospely-glow 2.5s ease-in-out infinite;
}
@keyframes prospely-glow {
  0%, 100% { box-shadow: 0 0 6px 1px rgba(245,185,50,0.35), 0 0 12px 2px rgba(245,185,50,0.15); }
  50% { box-shadow: 0 0 10px 3px rgba(245,185,50,0.5), 0 0 20px 5px rgba(245,185,50,0.2); }
}
.btn-row-prospely img {
  border-radius: 4px;
  display: block;
}
.btn-row-prospely:hover {
  border-color: #d4a017;
  box-shadow: 0 0 12px 4px rgba(245,185,50,0.55), 0 0 24px 6px rgba(245,185,50,0.25);
  transform: translateY(-2px) scale(1.05);
  animation: none;
}

/* ── Prospely Analysis Modal ── */
.prospely-modal {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
}
.prospely-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(6px);
}
.prospely-box {
  position: relative; background: #fff;
  border-radius: 20px; box-shadow: 0 24px 70px rgba(0,0,0,0.22);
  padding: 32px 32px 28px; max-width: 560px; width: 94%;
  max-height: 92vh; overflow-y: auto;
  animation: modal-pop 0.25s ease-out;
}
.prospely-box::-webkit-scrollbar { width: 4px; }
.prospely-box::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.prospely-close {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  background: #f1f5f9; border: none; color: #94a3b8;
  font-size: 22px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.15s;
}
.prospely-close:hover { background: #e2e8f0; color: #334155; }

/* Signals section in target card */
.prospely-signals-section {
  margin-top: 8px;
}
.prospely-signals-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.prospely-signal-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dark, #1a1a2e);
  cursor: pointer;
}
.prospely-signal-check.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.prospely-signal-check input[type="checkbox"] {
  accent-color: var(--primary, #6c5ce7);
  width: 15px;
  height: 15px;
}
.prospely-add-signals-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--primary, #6c5ce7);
  background: none;
  border: 1px dashed var(--primary, #6c5ce7);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.prospely-add-signals-btn:hover {
  background: var(--primary-light, #eef2ff);
}

/* Header */
.prospely-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
.prospely-header-logo { width: 44px; height: 44px; border-radius: 12px; }
.prospely-title { font-size: 20px; font-weight: 800; color: #0f172a; line-height: 1.2; }
.prospely-subtitle { font-size: 13px; color: #3b82f6; font-weight: 600; margin-top: 2px; }

/* Tagline */
.prospely-tagline {
  font-size: 13px; color: #475569; line-height: 1.6; margin: 0 0 14px;
}

/* Deploy badge */
.prospely-badge-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 6px; flex-wrap: wrap;
}
.prospely-deploy-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #1d4ed8; padding: 6px 16px; border-radius: 20px;
  border: 1px solid #bfdbfe;
  animation: prospely-pulse 2s ease-in-out infinite;
}
.prospely-demo-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: #15803d; padding: 6px 16px; border-radius: 20px;
  border: 1px solid #bbf7d0; cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
}
.prospely-demo-btn:hover {
  box-shadow: 0 2px 8px rgba(21,128,61,0.18);
  transform: translateY(-1px);
}
.prospely-analysis-note {
  font-size: 12px; color: #64748b; margin: 0 0 14px 0; font-style: italic;
}
@keyframes prospely-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(59,130,246,0); }
}

/* Analysis preview card */
.prospely-analysis-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 16px; margin-bottom: 14px; text-align: left;
}
.prospely-analysis-header {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px;
}
.prospely-analysis-company {
  font-size: 15px; font-weight: 700; color: #0f172a;
}
.prospely-analysis-type {
  font-size: 12px; color: #94a3b8;
}

/* Score ring */
.prospely-score-row {
  display: flex; align-items: center; gap: 16px; margin-bottom: 12px;
}
.prospely-score-ring {
  position: relative; width: 72px; height: 72px; flex-shrink: 0;
}
.prospely-score-ring svg { width: 100%; height: 100%; }
.prospely-score-value {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #0f172a;
}
.prospely-score-detail { flex: 1; }
.prospely-score-label {
  font-size: 14px; font-weight: 700; color: #0f172a; margin-bottom: 8px;
}
.prospely-sub-scores {
  display: flex; flex-direction: column; gap: 4px;
}
.prospely-sub {
  font-size: 12px; color: #64748b; display: flex; align-items: center; gap: 6px;
}
.prospely-sub strong { color: #0f172a; margin-left: auto; font-size: 13px; }
.prospely-sub-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.dot-blue { background: #3b82f6; }
.dot-violet { background: #8b5cf6; }
.dot-teal { background: #14b8a6; }

/* Signals */
.prospely-signals {
  display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px;
}
.prospely-signal {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: #475569; padding: 6px 10px;
  border-radius: 8px; background: #fff;
}
.prospely-signal.positive { border-left: 3px solid #22c55e; }
.prospely-signal.negative { border-left: 3px solid #ef4444; }

/* Verdict */
.prospely-verdict {
  background: #fff; border-radius: 10px; padding: 12px 14px;
  border: 1px solid #e2e8f0;
}
.prospely-verdict-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: #3b82f6; margin-bottom: 4px;
}
.prospely-verdict p {
  font-size: 13px; color: #334155; line-height: 1.6; margin: 0;
}

/* Bottom */
.prospely-skip-check {
  display: flex; align-items: center; gap: 6px; justify-content: center;
  font-size: 12px; color: #94a3b8; cursor: pointer;
  margin: 8px 0 4px; user-select: none;
}
.prospely-skip-check input { accent-color: #2563eb; cursor: pointer; }
.prospely-bottom-text {
  font-size: 13px; color: #94a3b8; line-height: 1.5;
  margin: 0 0 12px; text-align: center;
}
.prospely-bottom-text strong { color: #0f172a; }

.prospely-cta-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.prospely-cta-secondary {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 10px;
  white-space: nowrap;
}
.prospely-cta {
  flex: 1;
  padding: 12px; font-size: 15px; font-weight: 700;
  border-radius: 12px; background: linear-gradient(135deg, #3b82f6, #6366f1);
  border: none; color: #fff; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.prospely-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.35);
}

@media (max-width: 480px) {
  .prospely-box { padding: 24px 18px 20px; max-width: 100%; }
  .prospely-score-row { gap: 14px; }
  .prospely-score-ring { width: 60px; height: 60px; }
  .prospely-score-value { font-size: 18px; }
}

/* Global enrich menu (appended to body) */
.enrich-menu-global {
  position: fixed;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 99999;
  display: none;
  min-width: 160px;
}
.enrich-menu-global.open { display: block; }
.enrich-menu-global button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  background: none;
  border: none;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: background var(--ease);
}
.enrich-menu-global button:hover { background: var(--bg-muted); }
.enrich-menu-global button:first-child { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.enrich-menu-global button:last-child { border-radius: 0 0 var(--radius-md) var(--radius-md); }

/* Search menu (loupe dropdown) */
.search-menu-global {
  position: fixed;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 99999;
  display: none;
  min-width: 200px;
}
.search-menu-global.open { display: block; }
.search-menu-global button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  background: none;
  border: none;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: background var(--ease);
}
.search-menu-global button:hover { background: var(--bg-muted); }
.search-menu-global button:first-child { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.search-menu-global button:last-child { border-radius: 0 0 var(--radius-md) var(--radius-md); }
.search-menu-global button svg { flex-shrink: 0; }

/* Search config modal */
.search-config-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-config-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}
.search-config-box {
  position: relative;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  padding: 32px 28px;
  max-width: 360px;
  width: 90%;
  animation: modal-pop 0.25s ease-out;
}
.search-config-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-light);
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.search-config-close:hover { background: var(--bg-muted); color: var(--text-dark); }
.search-config-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.search-config-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.search-config-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.search-config-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.search-config-options input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Delete confirmation modal */
.delete-confirm-icon {
  font-size: 40px;
  text-align: center;
  margin-bottom: 12px;
}
.delete-confirm-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}
.btn-danger {
  background: #DC2626 !important;
  color: #fff !important;
  border: none !important;
}
.btn-danger:hover {
  background: #B91C1C !important;
}
.btn-ghost {
  background: transparent !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}
.btn-ghost:hover {
  background: var(--bg-light) !important;
}

/* Row highlight for saved leads */
.results-table tbody tr.row-saved { background: #F0FDF4; }
.results-table tbody tr.row-saved:hover { background: #DCFCE7; }

/* Viewed/interacted row (loupe or Voir clicked) */
.results-table tbody tr.row-viewed { background: #E2E8F0 !important; opacity: 0.5; }
.results-table tbody tr.row-viewed:hover { background: #CBD5E1 !important; opacity: 0.6; }
.results-table tbody tr.row-saved.row-viewed { background: #D1FAE5 !important; opacity: 0.5; }
.results-table tbody tr.row-saved.row-viewed:hover { background: #A7F3D0 !important; opacity: 0.6; }

/* td-actions — sticky on right */
.td-actions,
.th-actions {
  position: sticky;
  right: 0;
  background: #fff;
  box-shadow: -4px 0 8px rgba(0,0,0,0.08);
  z-index: 50;
}
.th-actions { background: var(--bg-light) !important; z-index: 51; }
.td-actions { white-space: nowrap; display: flex; align-items: center; gap: 6px; padding: 8px 16px; }
.results-table tbody tr:hover .td-actions { background: var(--bg-muted); }
.results-table tbody tr.row-saved .td-actions { background: #F0FDF4; }
.results-table tbody tr.row-saved:hover .td-actions { background: #DCFCE7; }
.results-table tbody tr.row-viewed .td-actions { background: #E2E8F0; }
.results-table tbody tr.row-viewed:hover .td-actions { background: #CBD5E1; }

/* ======================================================
   PREMIUM UI POLISH — Search + Results
   ====================================================== */

.app-main {
  padding-top: 48px;
}

.app-page-header {
  margin-bottom: 34px;
}

.app-page-title {
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.app-page-sub {
  font-size: 14px;
  color: var(--text-light);
}

/* Scoped overrides for Stats & Credits pages */
#view-stats,
#view-credits {
  max-width: 720px;
}
#view-stats .app-page-header,
#view-credits .app-page-header {
  margin-bottom: 16px;
}
#view-stats .app-page-title,
#view-credits .app-page-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
#view-stats .app-page-sub,
#view-credits .app-page-sub {
  font-size: 13px;
}

.search-bar-wrap {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border: 1px solid #dfe5f0;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  padding: 8px 10px 8px 14px;
  gap: 8px;
  margin-bottom: 16px;
}

.search-bar-wrap:focus-within {
  border-color: #c6d3f6;
  box-shadow: 0 14px 34px rgba(30, 64, 175, 0.08);
}

.app-search-select {
  min-height: 42px;
  border-radius: 10px;
}

#search-activity,
#search-city {
  background-repeat: no-repeat;
  background-position: 10px center;
  background-size: 14px 14px;
  padding-left: 32px;
}

#search-activity {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M10 2v7.31'/%3E%3Cpath d='M14 9.3V1.99'/%3E%3Cpath d='M8.5 2h7'/%3E%3Cpath d='M14 9.3a6 6 0 1 1-4 0'/%3E%3C/svg%3E");
}

#search-city {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.search-date-group,
.search-checkbox {
  border-left: 1px solid #e6ebf5;
}

.search-checkbox {
  padding-left: 10px;
  padding-right: 10px;
}

.structured-search .btn {
  min-height: 44px;
  padding-left: 18px;
  padding-right: 18px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
}

.results-view-toggle {
  gap: 8px;
  padding: 8px;
  background: #f8fafc;
  border: 1px solid #e7edf6;
  border-radius: 14px;
  width: fit-content;
  margin-top: 10px;
  margin-bottom: 20px;
}

.filter-btn {
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  border-color: transparent;
  background: transparent;
}

.filter-btn:hover {
  background: #eef3ff;
  border-color: #dbe7ff;
}

.filter-btn.active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.26);
}

.results-header {
  margin-top: 24px;
  margin-bottom: 12px;
}

.results-title {
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.results-subtitle {
  color: var(--text-light);
}

.results-stats {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #e8edf6;
  background: linear-gradient(180deg, #f9fbff 0%, #f4f7fc 100%);
  margin-bottom: 14px;
}

.results-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.results-kpi-card {
  background: #fff;
  border: 1px solid #e7edf6;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kpi-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-light);
}

.kpi-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.results-table-wrap {
  border: 1px solid #e5ebf5;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.results-table thead th {
  background: #f8fafd;
  border-bottom: 1px solid #e7edf6;
}

.results-table tbody tr {
  border-bottom: 1px solid #edf1f7;
}

.results-table tbody tr:hover {
  background: #f8fbff;
}

.results-table td {
  padding-top: 14px;
  padding-bottom: 14px;
}

.td-name {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.badge {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
}

.badge-neutral {
  background: #f1f5f9;
  color: #475569;
}

.badge-success {
  background: #ecfdf5;
  color: #047857;
}

.badge-actif,
.badge-ferme {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  margin-left: 8px;
  letter-spacing: 0.02em;
}

.badge-actif {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #bbf7d0;
}

.badge-ferme {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.td-actions {
  gap: 8px;
  padding: 10px 14px;
}

.btn-row-search,
.btn-row-settings,
.btn-row-mail,
.btn-row-enrich,
.btn-row-prospely {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border-color: #d9e2f0;
}

.btn-row-search:hover,
.btn-row-settings:hover,
.btn-row-mail:hover,
.btn-row-enrich:hover,
.btn-row-prospely:hover {
  transform: translateY(-1px);
}

.btn-row-save,
.btn-row-action {
  min-height: 30px;
  border-radius: 9px;
  font-weight: 700;
}

.btn-row-action {
  background: #e8f0ff;
  color: #1d4ed8;
}

.btn-upgrade {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3);
}

.btn-upgrade:hover {
  box-shadow: 0 10px 24px rgba(30, 64, 175, 0.38);
}

@media (max-width: 980px) {
  .results-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .app-page-header {
    margin-bottom: 18px;
  }

  .app-page-title {
    font-size: 26px;
  }

  .stats-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .results-kpis {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .results-kpi-card {
    padding: 9px 10px;
  }

  .kpi-value {
    font-size: 14px;
  }

  .results-view-toggle {
    width: 100%;
  }
}

/* Editable cells in Mes leads */
.editable-cell {
  cursor: pointer;
  transition: background var(--ease);
  min-width: 100px;
}
.editable-cell:hover {
  background: var(--primary-light);
}
.editable-cell .placeholder-text {
  color: var(--text-light);
  font-style: italic;
  font-size: 12px;
}
.inline-edit-input {
  width: 100%;
  padding: 4px 8px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  outline: none;
}
.inline-edit-input:focus {
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Empty state cell */
.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 48px 24px !important;
  font-size: 14px;
  line-height: 1.6;
}
.empty-state-tagline {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
  font-style: italic;
}

/* ======================================================
   RESULTS VIEW FILTER TOGGLE
   ====================================================== */
.results-view-toggle {
  display: flex;
  gap: 4px;
  margin: 20px 0 0;
}

/* Fixed tab bar that slides in from top when original is out of view */
.results-view-toggle--fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 10px 24px;
  background: var(--white, #fff);
  border-bottom: 1px solid var(--border, #e7edf6);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transform: translateY(-100%);
  transition: transform 0.25s ease;
  pointer-events: none;
  opacity: 0;
}
.results-view-toggle--fixed.visible {
  transform: translateY(0);
  pointer-events: auto;
  opacity: 1;
}
.filter-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-light);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--ease);
}
.filter-btn:hover  { color: var(--text-dark); border-color: var(--primary); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.filter-count      { font-weight: 400; opacity: 0.85; }

/* ======================================================
   FOLLOW-UP / TODAY
   ====================================================== */

/* Drawer follow-up fields */
.followup-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drawer-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--bg-light);
  outline: none;
  transition: border-color var(--ease);
}
.drawer-input:focus { border-color: var(--primary); background: var(--bg); }
.drawer-date { font-size: 13px; }

/* Follow-up date badge in tables */
.followup-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  background: #EFF6FF;
  color: #2563EB;
  margin-left: 6px;
  white-space: nowrap;
}
.followup-badge.overdue {
  background: #FEF2F2;
  color: #EF4444;
}

/* Next action text in table */
.next-action-text {
  font-size: 13px;
  color: var(--text-medium);
}



/* =============================================
   PAYWALL
   ============================================= */
.paywall-row td {
  padding: 0 !important;
  border: none !important;
}
.paywall-block {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 32px;
  background: linear-gradient(135deg, #F5F3FF 0%, #EEF2FF 100%);
  border-radius: var(--radius-md);
  margin: 8px 0;
}
.paywall-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.paywall-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.paywall-text strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}
.paywall-text span {
  font-size: 13px;
  color: var(--text-muted);
}

/* =============================================
   COMING SOON MODAL
   ============================================= */
.coming-soon-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-soon-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.coming-soon-box {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  padding: 40px 36px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  animation: modal-pop 0.25s ease-out;
}

@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.coming-soon-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.coming-soon-close:hover { background: var(--bg-muted); color: var(--text-dark); }

.coming-soon-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.coming-soon-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.coming-soon-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.coming-soon-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.coming-soon-features span {
  font-size: 14px;
  color: var(--text-medium);
  background: var(--bg-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-md);
}

/* Coming Soon Page (inline version) */
.coming-soon-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  max-width: 480px;
  margin: 0 auto;
}

.coming-soon-page .coming-soon-icon {
  font-size: 64px;
  margin-bottom: 24px;
}

.coming-soon-page .coming-soon-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.coming-soon-page .coming-soon-text {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.coming-soon-page .coming-soon-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
}

.coming-soon-page .coming-soon-features span {
  font-size: 14px;
  color: var(--text-medium);
  background: var(--bg-subtle);
  padding: 10px 20px;
  border-radius: var(--radius-md);
}

/* =============================================
   UPGRADE MODAL
   ============================================= */
.upgrade-box {
  max-width: 440px;
}
.upgrade-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.upgrade-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  text-align: left;
}
.upgrade-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-medium);
  background: var(--bg-subtle);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}
.upgrade-feature svg {
  color: #10B981;
  flex-shrink: 0;
}
.upgrade-pricing {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 20px;
}
.upgrade-price {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-dark);
}
.upgrade-period {
  font-size: 16px;
  color: var(--text-muted);
}
.upgrade-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* Settings Modal */
.settings-box {
  max-width: 440px;
  text-align: left;
}
.settings-icon {
  font-size: 40px;
  text-align: center;
  margin-bottom: 8px;
}
.settings-box .coming-soon-title {
  text-align: center;
  margin-bottom: 24px;
}
.settings-section {
  margin-bottom: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
}
.settings-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.settings-label-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}
.settings-label-desc {
  font-size: 12px;
  color: var(--text-muted);
}
.settings-box .btn-primary {
  width: 100%;
  margin-top: 8px;
}

/* Gmail Connection */
.settings-row-gmail {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.btn-gmail {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: all var(--ease);
}
.btn-gmail:hover {
  background: var(--bg-light);
  border-color: var(--primary);
}
.btn-gmail.connected {
  border-color: var(--success);
  background: var(--success-bg);
  color: var(--success);
}
.btn-gmail.connected:hover {
  background: #D1FAE5;
}
.gmail-connected-email {
  font-size: 13px;
  color: var(--success);
  font-weight: 500;
}

/* AI Model Selector */
.ai-model-select {
  font-family: inherit;
  font-size: 13px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-dark);
  cursor: pointer;
  transition: border-color var(--ease);
  min-width: 180px;
}
.ai-model-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

/* Gmail Badge in App Nav */
.gmail-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--ease);
}
/* Stats page */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.stats-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  text-align: left;
  transition: border-color var(--ease);
}
.stats-card:hover { border-color: var(--text-light); }
.stats-card-icon { font-size: 18px; margin-bottom: 10px; }
.stats-card-value { font-size: 26px; font-weight: 700; color: var(--text-dark); line-height: 1; }
.stats-card-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.stats-date { text-align: left; margin-top: 16px; font-size: 12px; color: var(--text-light); text-transform: capitalize; }

/* Credits page */
.credits-balance {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-top: 16px;
}
.credits-balance-icon { font-size: 20px; flex-shrink: 0; }
.credits-balance-amount { font-size: 28px; font-weight: 700; color: var(--text-dark); line-height: 1; }
.credits-balance-label { font-size: 13px; color: var(--text-muted); margin-left: -6px; }
.credits-section-title { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin: 24px 0 10px; }
.credits-pricing { display: flex; flex-direction: column; gap: 1px; background: var(--border); border-radius: 10px; overflow: hidden; }
.credits-pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-white);
}
.credits-pricing-left { display: flex; align-items: center; gap: 10px; }
.credits-pricing-icon { font-size: 16px; }
.credits-pricing-name { font-weight: 600; color: var(--text-dark); font-size: 13px; }
.credits-pricing-desc { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.credits-pricing-cost {
  font-weight: 600;
  font-size: 12px;
  color: var(--text-medium);
  white-space: nowrap;
  background: var(--bg-light);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
}

.gmail-badge:hover {
  background: var(--bg-muted);
  border-color: var(--text-light);
}
.gmail-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  transition: background var(--ease);
}
.gmail-badge.connected .gmail-badge-dot {
  background: var(--success);
}
.gmail-badge.connected {
  border-color: var(--success);
  background: var(--success-bg);
  color: var(--success);
}

/* Email Compose Modal */
.email-box {
  max-width: 520px;
  text-align: left;
  max-height: 90vh;
  overflow-y: auto;
}
.email-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.email-header svg {
  color: var(--primary);
}
.email-header .coming-soon-title {
  margin-bottom: 0;
}
.email-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.email-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.email-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}
.email-input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-dark);
  background: var(--bg);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.email-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.email-textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-dark);
  background: var(--bg);
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.email-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.email-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.email-actions .btn-primary svg {
  stroke: #fff;
}

/* AI Generate Button */
.btn-ai {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #8B5CF6 0%, #a855f7 100%);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
  width: 100%;
}
.btn-ai:hover {
  background: linear-gradient(135deg, #7C3AED 0%, #9333EA 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}
.btn-ai svg {
  color: #fff;
}

/* AI row (button + settings) */
.email-ai-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.email-ai-settings {
  display: flex;
  gap: 8px;
}
.ai-inline-select {
  font-size: 12.5px;
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  background: #f9fafb;
  color: #374151;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
  font-weight: 500;
}
.ai-inline-select:hover,
.ai-inline-select:focus {
  border-color: #8B5CF6;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}
.email-ai-row .btn-ai {
  margin-top: 0;
}
.btn-ai.generating {
  opacity: 0.7;
  pointer-events: none;
}
.ai-hint {
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center;
  margin: 6px 0 0;
  line-height: 1.5;
}
.ai-hint-detail {
  color: #6b7280;
  font-weight: 500;
}
.ai-hint-link {
  color: #8B5CF6;
  text-decoration: underline;
  font-weight: 500;
}
.ai-hint-link:hover {
  color: #7c3aed;
}

/* AI Context Cards (email modal) */
.ai-context-cards {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #f9fafb;
}
.ai-context-card {
  flex: 1;
  padding: 12px 14px;
  min-width: 0;
}
.ai-context-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6b7280;
  margin-bottom: 8px;
}
.ai-context-card-body {
  font-size: 13px;
  color: #374151;
  line-height: 1.5;
  max-height: 120px;
  overflow-y: auto;
}
.ai-context-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  flex-shrink: 0;
}
.btn-row-prospely-lg {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.btn-row-prospely-lg img {
  width: 24px;
  height: 24px;
}
.ai-context-empty {
  font-size: 12px;
  color: #9ca3af;
}
.ai-context-muted {
  color: #9ca3af;
  font-style: italic;
}

/* =============================================
   ICP GENERATOR
   ============================================= */
.icp-generator {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}

.icp-state {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header */
.icp-header {
  text-align: center;
  margin-bottom: 40px;
}

.icp-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #e0e7ff 100%);
  border-radius: 16px;
  margin-bottom: 20px;
  color: var(--primary);
}

.icp-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 12px;
}

.icp-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Input Card → Form Card */
.icp-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
}

.icp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Split layout: form left, example right */
.icp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.icp-split-left {
  padding-right: 28px;
  border-right: 1px solid var(--border);
}

.icp-split-right {
  padding-left: 28px;
  display: flex;
  flex-direction: column;
}

.icp-split-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 18px;
}

.icp-example-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.icp-example-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
}

.icp-example-row:nth-child(odd) {
  background: var(--bg-subtle, #f9fafb);
}

.icp-example-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.icp-example-value {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.5;
}

.icp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.icp-field-full {
  grid-column: 1 / -1;
}

.icp-field-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.icp-required {
  color: var(--primary);
}

.icp-hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-light);
}

.icp-field-input,
.icp-field-textarea,
.icp-field-select {
  font-family: inherit;
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-dark);
  background: var(--bg);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.icp-field-input:focus,
.icp-field-textarea:focus,
.icp-field-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
  background: #fff;
}

.icp-field-textarea {
  resize: vertical;
  min-height: 80px;
}

.icp-field-textarea.icp-auto-resize {
  min-height: 0;
  resize: none;
  overflow: hidden;
}

.icp-field-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.icp-form-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

/* Saved state summary */
.icp-saved-summary {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.icp-saved-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.icp-saved-row:last-child {
  border-bottom: none;
}

.icp-saved-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 140px;
  flex-shrink: 0;
}

.icp-saved-value {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.5;
}

.icp-header-icon-success {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #10b981;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 15px;
}

.btn-xl {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
}

/* Features Grid */
.icp-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.icp-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-subtle);
  padding: 16px;
  border-radius: var(--radius-lg);
}

.icp-feature-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.icp-feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.icp-feature-text strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.icp-feature-text span {
  font-size: 13px;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .icp-features-grid {
    grid-template-columns: 1fr;
  }
  
  .icp-form-grid {
    grid-template-columns: 1fr;
  }
  
  .icp-split {
    grid-template-columns: 1fr;
  }

  .icp-split-left {
    padding-right: 0;
    border-right: none;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
  }

  .icp-split-right {
    padding-left: 0;
  }

  .icp-form-card {
    padding: 20px;
  }
  
  .icp-saved-label {
    min-width: 100px;
  }
}

/* =============================================
   GUIDE
   ============================================= */
.guide-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}

.guide-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-sm);
}

.guide-card-highlight {
  border-color: #f0c040;
  box-shadow: 0 0 8px 1px rgba(245,185,50,0.2), var(--shadow-sm);
}

.guide-card-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.guide-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 10px;
}

.guide-card-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 10px;
}

.guide-card-text:last-child {
  margin-bottom: 0;
}

.guide-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-list li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.guide-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 600;
}

.guide-cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  padding-bottom: 40px;
}

@media (max-width: 768px) {
  .guide-card {
    padding: 20px;
  }
}

/* ICP Coming Soon */
.icp-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  max-width: 520px;
  margin: 0 auto;
  animation: fadeIn 0.3s ease;
}

.icp-coming-soon-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #e0e7ff 100%);
  border-radius: 24px;
  margin-bottom: 28px;
  color: var(--primary);
}

.icp-coming-soon-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 16px;
}

.icp-coming-soon-text {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 32px;
}

.icp-coming-soon-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  width: 100%;
}

.icp-coming-soon-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-subtle);
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  text-align: left;
}

.icp-coming-soon-feature-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.icp-coming-soon-feature span:last-child {
  font-size: 14px;
  color: var(--text-medium);
  font-weight: 500;
}

/* ======================================================
   MOBILE MENU - Hamburger Button (visible on mobile only)
   ====================================================== */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text-dark);
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu-btn:hover {
  background: var(--border-faint);
}
.mobile-menu-btn:active {
  transform: scale(0.95);
}

/* ======================================================
   MOBILE DRAWER - Slide-over from right
   ====================================================== */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(84vw, 360px);
  background: #fff;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
}
.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-faint);
  background: var(--bg-light);
}

.mobile-drawer-user {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.mobile-drawer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mobile-drawer-avatar svg {
  color: var(--primary);
}

.mobile-drawer-email {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.mobile-drawer-close:hover {
  background: var(--border-faint);
  color: var(--text-dark);
}
.mobile-drawer-close:active {
  transform: scale(0.95);
}

.mobile-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.mobile-drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.mobile-drawer-item:active {
  background: var(--bg-light);
}
.mobile-drawer-item svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.mobile-drawer-gmail-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 2px solid var(--border);
  position: relative;
  flex-shrink: 0;
}
.mobile-drawer-gmail-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
}
.mobile-drawer-gmail-dot.connected {
  border-color: #22c55e;
}
.mobile-drawer-gmail-dot.connected::after {
  background: #22c55e;
}

.mobile-drawer-status {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}
.mobile-drawer-status.connected {
  color: #22c55e;
}

.mobile-drawer-divider {
  height: 1px;
  background: var(--border-faint);
  margin: 8px 20px;
}

.mobile-drawer-danger {
  color: #dc2626;
}
.mobile-drawer-danger svg {
  color: #dc2626;
}

/* Spin animation for loading states */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.spin {
  animation: spin 1s linear infinite;
}

/* ======================================================
   MOBILE-FIRST RESPONSIVE UI - Cards, Bottom Sheet, Sticky
   ====================================================== */

/* Mobile Cards Container - hidden on desktop */
.mobile-cards {
  display: none;
}

/* Bottom Sheet */
.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.bottom-sheet-overlay.open {
  opacity: 1;
  visibility: visible;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.15);
}
.bottom-sheet.open {
  transform: translateY(0);
}

.bottom-sheet-handle {
  width: 36px;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  margin: 12px auto;
}

.bottom-sheet-header {
  padding: 8px 20px 16px;
  border-bottom: 1px solid var(--border-faint);
}
.bottom-sheet-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 4px;
  line-height: 1.3;
}
.bottom-sheet-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.bottom-sheet-actions {
  padding: 16px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bottom-sheet-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-light);
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.bottom-sheet-btn:active {
  transform: scale(0.98);
  background: var(--border-faint);
}
.bottom-sheet-btn svg {
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.bottom-sheet-btn.primary {
  background: var(--primary);
  color: white;
}
.bottom-sheet-btn.primary svg {
  color: white;
}
.bottom-sheet-btn.saved {
  background: #d1fae5;
  color: #059669;
}
.bottom-sheet-btn.saved svg {
  color: #059669;
}

/* MOBILE-ONLY STYLES */
@media (max-width: 768px) {
  /* Hide desktop table, show mobile cards */
  .results-table-wrap {
    display: none !important;
  }
  .mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* Mobile Card */
  .mobile-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
  }
  .mobile-card:active {
    transform: scale(0.98);
    background: var(--bg-light);
  }
  .mobile-card.row-viewed {
    background: var(--bg-light);
    opacity: 0.7;
  }
  .mobile-card.row-saved {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99,102,241,0.03) 0%, transparent 100%);
  }
  .mobile-card.row-saved::before {
    content: '⭐';
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 14px;
  }
  
  .mobile-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  .mobile-card-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 4px;
    line-height: 1.3;
    padding-right: 30px;
  }
  .mobile-card-city {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .mobile-card-city::before {
    content: '📍';
    font-size: 12px;
  }
  
  .mobile-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
  }
  .mobile-card-badges .badge {
    font-size: 11px;
    padding: 4px 10px;
  }
  .mobile-card-badges .badge-status {
    background: var(--primary-faint);
    color: var(--primary);
  }
  
  .mobile-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-faint);
    font-size: 13px;
    color: var(--text-muted);
  }
  .mobile-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  /* Mobile Card — Enrichment rows */
  .mobile-card-enrich {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-faint);
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .mobile-enrich-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 32px;
  }
  .mobile-enrich-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
  }
  .mobile-enrich-value {
    font-size: 13px;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-enrich-link {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
  }
  .mobile-enrich-row .badge-enrich {
    font-size: 12px;
    padding: 5px 14px;
    cursor: pointer;
  }

  /* Sticky Tabs */
  .results-view-toggle {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    padding: 12px 0;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    border-bottom: 1px solid var(--border-faint);
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  /* Hide fixed clone on mobile — original is already sticky */
  .results-view-toggle--fixed {
    display: none !important;
  }
  .results-view-toggle::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    flex-shrink: 0;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 100px;
    white-space: nowrap;
  }
  .filter-btn.active {
    background: var(--primary);
    color: white;
  }

  /* Sticky Search Button at Bottom */
  .mobile-search-sticky {
    position: static;
    margin-top: 16px;
    margin-bottom: 16px;
    padding: 0;
    background: transparent;
    border-top: none;
    box-shadow: none;
    z-index: auto;
    display: block;
  }
  .mobile-search-sticky .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-lg);
  }
  
  /* Hide mobile search button when not on Explorer tab */
  #app:not([data-active-tab="search"]) .mobile-search-sticky {
    display: none !important;
  }
  
  /* Hide desktop search button */
  .search-bar-wrap #app-search-btn {
    display: none;
  }
  
  /* Remove bottom padding since button is no longer fixed */
  .app-main {
    padding-bottom: 0 !important;
  }

  /* Mobile Search Bar */
  .search-bar-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
  }
  .app-search-select {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: var(--radius-md);
  }
  /* Mobile Header - 2 line layout */
  .app-nav {
    padding: 0;
    position: relative;
  }
  .app-nav-inner {
    display: flex !important;
    padding: 12px 16px !important;
    min-height: auto !important;
    height: auto !important;
    gap: 10px !important;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .app-nav .nav-logo {
    order: 1;
  }
  .app-nav .nav-logo img {
    height: 26px;
  }
  .app-nav .nav-logo {
    font-size: 0; /* Hide text on mobile */
  }
  .app-nav .user-plan-badge {
    display: none;
  }
  .app-nav .user-credits {
    order: 2;
    margin-left: auto;
    font-size: 12px;
    padding: 4px 8px;
  }
  .app-nav .btn-upgrade {
    order: 3;
    padding: 6px 10px !important;
    font-size: 12px !important;
  }
  .app-nav .btn-upgrade svg {
    width: 12px;
    height: 12px;
  }
  .app-nav .mobile-menu-btn {
    order: 4;
    display: flex;
  }
  /* Hide desktop elements on mobile */
  .app-nav .user-menu-desktop {
    display: none;
  }
  .app-nav .gmail-badge {
    display: none;
  }
  .app-nav .app-tabs {
    display: none;
  }

  /* Page Header */
  .app-page-header {
    padding: 16px 0 8px;
  }
  .app-page-title {
    font-size: 24px;
    line-height: 1.2;
  }
  .app-page-sub {
    font-size: 14px;
    margin-top: 6px;
  }
  .search-hint {
    display: none;
  }

  /* Results Header */
  .results-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .results-title {
    font-size: 20px;
  }
  .results-subtitle {
    font-size: 14px;
  }
  .results-header .btn {
    align-self: flex-end;
    font-size: 13px;
  }

  /* Results Stats */
  .results-stats {
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
  }
  .results-count {
    font-size: 15px;
  }
  .results-sort {
    font-size: 13px;
  }

  /* Pagination */
  .pagination {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    margin-bottom: 80px;
  }
  .pagination-btn {
    flex: 1;
    justify-content: center;
    padding: 14px 16px;
    font-size: 15px;
  }

  /* Empty State */
  .mobile-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
  }
  .mobile-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
  }
  .mobile-empty-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 8px;
  }
  .mobile-empty-text {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    max-width: 280px;
  }

  /* Drawer Mobile */
  .drawer-panel {
    width: 100% !important;
    border-radius: 20px 20px 0 0;
  }
  .drawer-header {
    padding: 16px 20px;
  }
  .drawer-content {
    padding: 20px;
    padding-bottom: 32px;
  }
}

/* ============================================================
   OPPORTUNITIES — "Opportunités" tab (company-centric)
   ============================================================ */

/* Prompt search block */
.opp-prompt-block {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  padding: 12px 14px 10px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.opp-prompt-glow { display: none; }
.opp-prompt-inner { padding: 0; }
.opp-prompt-title { display: none; }
.opp-prompt-sub { display: none; }

/* ── Conversational chat — seamless extension of the search bar ──
   Renders directly under .opp-prompt-input-row inside .opp-prompt-block,
   reusing the same rounded-pill input + circular send button so the whole
   prompt area feels like one continuous card. No card-in-card look. */
.opp-chat-block {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: oppChatFadeIn .18s ease-out;
}
@keyframes oppChatFadeIn {
  from { opacity: 0; transform: translateY(-2px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Header — tiny, neutral, just a label */
.opp-chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
}
.opp-chat-avatar {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary, #6366f1), #7c3aed);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(99,102,241,0.35);
}
.opp-chat-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary, #6366f1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex: 1 1 auto;
}
.opp-chat-close {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--text-muted, #9ca3af);
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.opp-chat-close:hover {
  background: rgba(0,0,0,0.05);
  color: var(--text-dark, #1f2937);
}

/* Messages container */
.opp-chat-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding: 2px 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.15) transparent;
}
.opp-chat-body::-webkit-scrollbar { width: 6px; }
.opp-chat-body::-webkit-scrollbar-track { background: transparent; }
.opp-chat-body::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.12);
  border-radius: 3px;
}

/* Bubbles */
.opp-chat-msg {
  max-width: 82%;
  padding: 9px 13px;
  font-size: 13.5px;
  line-height: 1.42;
  border-radius: 16px;
  white-space: pre-wrap;
  word-wrap: break-word;
  animation: oppChatMsgIn .22s ease-out;
}
@keyframes oppChatMsgIn {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: translateY(0); }
}
.opp-chat-msg-ai {
  align-self: flex-start;
  background: #f3f4f6;
  color: var(--text-dark, #1f2937);
  border-bottom-left-radius: 5px;
}
.opp-chat-msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary, #6366f1), #7c3aed);
  color: #fff;
  border-bottom-right-radius: 5px;
  box-shadow: 0 2px 6px rgba(99,102,241,0.18);
}

/* Typing dots */
.opp-chat-typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 10px 14px;
}
.opp-chat-typing span {
  width: 6px; height: 6px;
  background: #9ca3af;
  border-radius: 50%;
  animation: oppChatBlink 1.2s infinite ease-in-out both;
}
.opp-chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.opp-chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes oppChatBlink {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.85); }
  40%           { opacity: 1;    transform: scale(1); }
}

/* Input pill — same visual language as .opp-prompt-input-row */
.opp-chat-input-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white, #fff);
  border: 1.5px solid rgba(0,0,0,0.10);
  border-radius: 28px;
  padding: 6px 6px 6px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.opp-chat-input-pill:focus-within {
  border-color: rgba(99,102,241,0.40);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.09), 0 4px 14px rgba(99,102,241,0.08);
}
.opp-chat-input-pill.is-disabled {
  opacity: 0.65;
  pointer-events: none;
}
.opp-chat-input-icon {
  flex-shrink: 0;
  color: var(--text-lighter, #b0b0b0);
  display: flex;
  align-items: center;
  margin-right: 6px;
}
.opp-chat-input-pill:focus-within .opp-chat-input-icon {
  color: var(--primary, #6366f1);
}
.opp-chat-input {
  flex: 1;
  min-width: 0;
  padding: 8px 4px;
  font-size: 14px;
  border: none;
  background: transparent;
  color: var(--text-dark, #1f2937);
  outline: none;
}
.opp-chat-input::placeholder { color: var(--text-lighter, #b0b0b0); }
.opp-chat-input:disabled { background: transparent; cursor: not-allowed; }

/* Secondary "Lancer" pill (when AI keeps chatting) */
.opp-chat-force {
  flex: 0 0 auto;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary, #6366f1);
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.22);
  border-radius: 20px;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}
.opp-chat-force:hover {
  background: rgba(99,102,241,0.14);
  border-color: rgba(99,102,241,0.40);
}

/* Circular send button — mirrors .opp-prompt-btn */
.opp-chat-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  padding: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--primary, #6366f1), #7c3aed);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.opp-chat-send:hover:not(:disabled) {
  background: linear-gradient(135deg, #5b4fd4, #6d28d9);
  box-shadow: 0 4px 12px rgba(99,102,241,0.35);
  transform: scale(1.06);
}
.opp-chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Confirmation step — shown instead of the input pill when the AI is
   ready and waiting for an explicit "Oui, lancer la recherche". */
.opp-chat-confirm-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 2px 2px 2px;
}
.opp-chat-confirm-btn {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary, #6366f1), #7c3aed);
  border: none;
  border-radius: 28px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(99,102,241,0.28);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.opp-chat-confirm-btn:hover {
  background: linear-gradient(135deg, #5b4fd4, #6d28d9);
  box-shadow: 0 6px 20px rgba(99,102,241,0.38);
  transform: translateY(-1px);
}
.opp-chat-confirm-btn:active { transform: translateY(0); }

.opp-chat-edit-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary, #6366f1);
  background: var(--white, #fff);
  border: 1.5px solid rgba(99,102,241,0.25);
  border-radius: 28px;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}
.opp-chat-edit-btn:hover {
  background: rgba(99,102,241,0.06);
  border-color: rgba(99,102,241,0.45);
}

/* Sub-row: target count + settings toggle */
.opp-search-subrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 8px;
  flex-wrap: wrap;
}
.opp-target-pills-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.opp-search-credits {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 4px;
}
.opp-settings-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--bg-soft, #f4f4f8);
  border: 1px solid var(--border, #e5e5ea);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.opp-settings-toggle-btn:hover {
  background: rgba(99,102,241,0.07);
  border-color: rgba(99,102,241,0.35);
  color: var(--primary);
}
.opp-settings-chevron {
  transition: transform 0.2s;
}
.opp-settings-chevron.open {
  transform: rotate(180deg);
}

/* Expandable settings panel */
.opp-settings-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-faint, #eee);
  animation: oppSettingsIn 0.18s ease;
}
@keyframes oppSettingsIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Onboarding / empty start state */
.opp-start-state {
  text-align: center;
  padding: 40px 24px 32px;
}
.opp-start-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.opp-start-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 8px;
}
.opp-start-sub {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0 0 20px;
}
.opp-start-chips {
  display: inline-block;
  text-align: left;
}
.opp-search-hint {
  font-size: 12.5px;
  color: var(--text-muted, #9ca3af);
  margin: 6px 2px 0;
}
.opp-prompt-input-row {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--white);
  border: 1.5px solid rgba(0,0,0,0.10);
  border-radius: 28px;
  padding: 8px 8px 8px 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.opp-prompt-input-row.focused {
  border-color: rgba(99,102,241,0.40);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.09), 0 4px 16px rgba(99,102,241,0.08);
}
.opp-prompt-input-icon {
  flex-shrink: 0;
  color: var(--text-lighter, #b0b0b0);
  display: flex;
  align-items: center;
  margin-right: 10px;
}
.opp-prompt-input-row.focused .opp-prompt-input-icon {
  color: var(--primary);
}
.opp-prompt-input {
  flex: 1;
  padding: 10px 8px;
  font-size: 15px;
  border: none;
  background: transparent;
  color: var(--text-dark);
  outline: none;
  min-width: 0;
}
.opp-prompt-input::placeholder {
  color: var(--text-lighter, #b0b0b0);
}
.opp-prompt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  position: relative;
}
.opp-prompt-btn-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.opp-prompt-btn:hover {
  background: linear-gradient(135deg, #5b4fd4, #6d28d9);
  box-shadow: 0 4px 14px rgba(99,102,241,0.35);
  transform: scale(1.07);
}
.opp-prompt-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.opp-prompt-btn svg { stroke: #fff; flex-shrink: 0; }

/* Coming-soon modal */
.opp-coming-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.opp-coming-overlay.opp-coming-visible {
  opacity: 1;
  pointer-events: auto;
}
.opp-coming-modal {
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px;
  max-width: 480px;
  width: 90%;
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,0.18);
  text-align: center;
  animation: oppModalIn 0.3s ease;
}
@keyframes oppModalIn {
  from { transform: translateY(20px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.opp-coming-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 22px;
  color: var(--text-light);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.opp-coming-close:hover { color: var(--text-dark); }
.opp-coming-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.opp-coming-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.opp-coming-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.opp-coming-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}
.opp-coming-alt {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 20px;
}
.opp-coming-btn {
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-lg);
}

/* Suggestion chips */
.opp-prompt-chips-section {
  margin: 12px 0 4px;
}
.opp-prompt-chips-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 8px;
}
.opp-prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}
.opp-prompt-chip {
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-dark);
  background: rgba(99,102,241,0.07);
  border: 1px solid rgba(99,102,241,0.22);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.opp-prompt-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(99,102,241,0.12);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(99,102,241,0.15);
}

/* ── Detection mode cards ── */
.opp-mode-section {
  margin: 20px 0 16px;
}
.opp-mode-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 10px;
  text-align: center;
}
.opp-mode-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 640px) {
  .opp-mode-cards { grid-template-columns: 1fr; }
}
.opp-mode-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  background: var(--white);
  border: 1.5px solid var(--border-faint, #e8e8f0);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s, transform 0.15s;
}
.opp-mode-card:hover {
  border-color: rgba(99,102,241,0.50);
  background: rgba(99,102,241,0.05);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(99,102,241,0.13);
}
.opp-mode-card.active {
  border-color: var(--primary);
  border-width: 2px;
  background: rgba(99,102,241,0.07);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.14), 0 4px 20px rgba(99,102,241,0.16);
}
.opp-mode-card-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.opp-mode-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}
.opp-mode-card-sub {
  font-size: 11px;
  font-weight: 600;
  color: rgba(99,102,241,0.75);
  text-transform: none;
  letter-spacing: 0;
}
.opp-mode-card-sub[data-category="Acquisition"] {
  color: #ea580c;
}
.opp-mode-card-sub[data-category="Signaux business"] {
  color: rgba(99,102,241,0.75);
}
.opp-mode-card-sub[data-category="Présence digitale"] {
  color: #0891b2;
}
.opp-mode-card-sub[data-category="Local"] {
  color: #16a34a;
}
.opp-mode-card.active .opp-mode-card-title {
  color: var(--primary);
}
.opp-mode-card-desc {
  font-size: 12px;
  color: var(--text-dark);
  opacity: 0.68;
  line-height: 1.5;
  margin: 0;
}
.opp-mode-tools-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}
.opp-mode-tools-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}
.opp-mode-tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dark);
  opacity: 0.65;
  background: var(--bg-soft, #f4f4f8);
  border: 1px solid var(--border-faint, #e8e8f0);
  border-radius: 20px;
}
.opp-mode-card.active .opp-mode-tool-badge {
  background: rgba(99,102,241,0.08);
  border-color: rgba(99,102,241,0.20);
  color: var(--primary);
}
.opp-mode-tool-badge.soon {
  opacity: 0.45;
}
.opp-mode-tool-badge em {
  font-style: normal;
  font-size: 10px;
  opacity: 0.7;
}

/* Disabled (future) mode cards */
.opp-mode-card-disabled {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  background: var(--bg-soft, #f4f4f8);
  border: 1.5px solid var(--border-faint, #e8e8f0);
  border-radius: 14px;
  text-align: left;
  opacity: 0.52;
  cursor: not-allowed;
  user-select: none;
  pointer-events: none;
}
.opp-mode-card-disabled:hover {
  opacity: 0.58;
}
.opp-mode-coming-badge {
  position: absolute;
  top: 9px;
  right: 9px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: none;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(99,102,241,0.30);
  pointer-events: none;
}


.opp-prompt-divider {
  height: 1px;
  background: var(--border-faint);
  margin: 18px 0;
}

/* Options section */
.opp-prompt-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.opp-tools-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.opp-tools-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.opp-tools-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.opp-tool-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text-light);
  background: var(--white);
}
.opp-tool-toggle input[type="checkbox"] { display: none; }
.opp-tool-icon { font-size: 14px; flex-shrink: 0; }
.opp-tool-name { font-weight: 600; }
.opp-tool-soon {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-lighter, #b0b0b0);
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
}
.opp-tool-toggle.active {
  border-color: var(--primary);
  background: rgba(99,102,241,0.06);
  color: var(--primary);
}
.opp-tool-toggle.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Bottom row: target pills + estimate */
.opp-options-bottom {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.opp-target-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.opp-target-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.opp-target-pills {
  display: flex;
  gap: 4px;
}
.opp-target-pill {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.opp-target-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.opp-target-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.opp-estimate {
  font-size: 12px;
  color: var(--text-muted);
  min-height: 20px;
}
.opp-estimate strong {
  color: var(--primary);
}
.opp-prompt-hint {
  font-size: 12px;
  color: var(--text-lighter, #aaa);
  margin: 0;
}

/* Error state */
.opp-error-state {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
  background: rgba(231,76,60,0.06);
  border: 1px solid rgba(231,76,60,0.2);
  border-radius: 10px;
  color: var(--danger, #e74c3c);
  font-size: 14px;
}
.opp-error-state button {
  margin-left: auto;
  white-space: nowrap;
}

/* Prompt result meta */
.opp-prompt-result-meta {
  font-size: 12px;
  color: var(--text-lighter, #aaa);
}

/* Prompt result label */
.opp-prompt-result {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding: 10px 16px;
  background: rgba(99,102,241,0.05);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 10px;
}
.opp-prompt-result strong {
  color: var(--primary);
}
.opp-prompt-rerun {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.opp-prompt-rerun:hover {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}
.opp-prompt-rerun:active {
  transform: scale(0.98);
}
.opp-prompt-rerun:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.opp-prompt-rerun svg {
  flex-shrink: 0;
}
.opp-prompt-clear {
  margin-left: 8px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.opp-prompt-clear:hover {
  color: var(--danger, #e74c3c);
  border-color: var(--danger, #e74c3c);
}

/* Loading state */
.opp-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 4rem 1rem;
  color: var(--text-light);
}
.opp-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* Search badge on cards */
.opp-card-search-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(99,102,241,0.06);
  padding: 4px 10px;
  border-radius: 6px;
  text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
  .opp-prompt-inner { padding: 24px 18px 20px; }
  .opp-prompt-input-row { flex-direction: column; padding: 8px; gap: 8px; }
  .opp-prompt-input-icon { display: none; }
  .opp-prompt-btn { width: 100%; justify-content: center; }
  .opp-prompt-chips { gap: 6px; }
  .opp-prompt-chip { font-size: 11.5px; padding: 5px 12px; }
  .opp-tools-row { gap: 6px; }
  .opp-tool-toggle { padding: 6px 10px; font-size: 12px; }
  .opp-target-pills { gap: 3px; }
  .opp-options-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .opp-inline-filters-row { gap: 6px; }
  .opp-inline-filter { flex: 1 1 calc(50% - 6px); min-width: 0; }
  .opp-inline-filters-label { display: none; }
  
  /* Responsive buttons in result header */
  .opp-prompt-result {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px;
  }
  .opp-prompt-rerun {
    margin-left: 0;
    width: 100%;
    order: 1;
    justify-content: center;
    padding: 10px 14px;
    font-size: 14px;
  }
  .opp-prompt-clear {
    margin-left: auto;
    order: 2;
  }
  
  /* Export bar - keep buttons on same line on mobile */
  .opp-export-bar {
    flex-wrap: nowrap !important;
    gap: 6px !important;
  }
  .opp-export-bar .opp-btn-ghost {
    padding: 6px 10px !important;
    font-size: 11px !important;
  }
  .opp-results-count {
    gap: 8px;
  }
}

/* ─── Inline filter dropdowns (below prompt bar) ─── */
.opp-inline-filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 4px 0;
}
.opp-inline-filters-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-medium, #6b7280);
  margin-right: 2px;
}
.opp-inline-filters-label, .opp-target-label {
  display: inline-block;
  min-width: 220px;
  vertical-align: middle;
}
.opp-inline-filter {
  padding: 7px 28px 7px 12px;
  font-size: 13px;
  border: 1.5px solid rgba(0,0,0,0.10);
  border-radius: 999px;
  background: var(--white);
  color: var(--text-dark);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
}
.opp-inline-filter:hover {
  border-color: rgba(99,102,241,0.35);
  background-color: rgba(99,102,241,0.03);
}
.opp-inline-filter:focus {
  outline: none;
  border-color: rgba(99,102,241,0.55);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.opp-inline-filter-clear {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  border: 1.5px solid rgba(239,68,68,0.25);
  border-radius: 999px;
  background: rgba(239,68,68,0.04);
  color: #dc2626;
  cursor: pointer;
  transition: all 0.15s;
}
.opp-inline-filter-clear:hover {
  background: rgba(239,68,68,0.10);
  border-color: rgba(239,68,68,0.45);
}

/* Pulsing live dot on cards */
.opp-card-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
  animation: opp-live-blink 2s ease-in-out infinite;
}
.opp-card-live-dot-hot  { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,0.5); }
.opp-card-live-dot-warm { background: #8b5cf6; box-shadow: 0 0 6px rgba(139,92,246,0.4); }
.opp-card-live-dot-cool { background: #cbd5e1; box-shadow: none; }
@keyframes opp-live-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

.opp-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px 60px;
}
.opp-header {
  text-align: center;
  margin-bottom: 20px;
}
.opp-header-badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #f59e0b;
  background: #fef3c722;
  border: 1px solid #f59e0b33;
  border-radius: 20px;
  margin-bottom: 16px;
  animation: opp-pulse-badge 2s ease-in-out infinite;
}
@keyframes opp-pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.opp-page-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 14px;
}
.opp-title-gradient {
  background: linear-gradient(135deg, #f59e0b, #ef4444, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.opp-page-sub {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

/* KPI cards — business dashboard */
.opp-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.opp-kpi {
  background: var(--white);
  border: 1px solid var(--border-faint);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  position: relative;
  overflow: hidden;
}
.opp-kpi:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border-color: var(--border);
  transform: translateY(-1px);
}
.opp-kpi-icon {
  font-size: 20px;
  margin-bottom: 8px;
}
.opp-kpi-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 6px;
}
.opp-kpi-unit {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0;
}
.opp-kpi-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.opp-kpi-hot { border-bottom: 3px solid #f59e0b; }
.opp-kpi-ready { border-bottom: 3px solid #ef4444; }
.opp-kpi-now { border-bottom: 3px solid #8b5cf6; }

/* Toolbar: filters + selects */
.opp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.opp-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.opp-filter-btn {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.15s ease;
}
.opp-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.opp-filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.opp-toolbar-right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.opp-select {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text-dark);
  cursor: pointer;
  outline: none;
}
.opp-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

/* Results count */
.opp-results-count {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 16px;
}
.opp-results-count > span {
  flex-shrink: 0;
}

/* Empty state */
.opp-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---- Opportunity rows table ---- */
.opp-table-wrap {
  width: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  overflow-x: auto;
}

.opp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.opp-table thead {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.opp-table thead th {
  text-align: left;
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
  white-space: nowrap;
}

.opp-table .opp-th-check { width: 36px; padding-right: 0; }
.opp-table .opp-th-score { width: 70px; }
.opp-table .opp-th-actions { width: 140px; text-align: right; }

.opp-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

.opp-table tbody tr:last-child {
  border-bottom: none;
}

.opp-table tbody tr:hover {
  background: #f9fafb;
}

.opp-row-selected {
  background: #eff6ff !important;
}

.opp-row-hot {
  box-shadow: inset 3px 0 0 #ef4444;
}

.opp-row-direct {
  box-shadow: inset 3px 0 0 #10b981;
}

.opp-row-nearby {
  box-shadow: inset 3px 0 0 #3b82f6;
}

.opp-table td {
  padding: 14px;
  vertical-align: middle;
  color: #0f172a;
}

.opp-td-check { padding-right: 0; }
.opp-td-score { width: 70px; }

.opp-score-circle-sm {
  width: 40px;
  height: 40px;
  font-size: 13px;
}

.opp-score-circle-sm span {
  font-size: 13px;
}

.opp-row-name {
  font-weight: 600;
  font-size: 14px;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.opp-row-city {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #64748b;
  white-space: nowrap;
}

.opp-row-city svg {
  flex-shrink: 0;
  color: #94a3b8;
}

.opp-row-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 8px;
  background: #f1f5f9;
  color: #475569;
  border-radius: 6px;
  white-space: nowrap;
}

.opp-row-phone {
  font-size: 13px;
  color: #2563eb;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.opp-row-phone:hover {
  text-decoration: underline;
}

.opp-row-email {
  font-size: 13px;
  color: #2563eb;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  display: inline-block;
}

.opp-row-email:hover {
  text-decoration: underline;
}

.opp-row-na {
  color: #94a3b8;
  font-size: 12px;
  font-style: italic;
}

.opp-row-empty {
  color: #cbd5e1;
  font-size: 13px;
}

.opp-row-reason {
  font-size: 13px;
  color: #475569;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 320px;
}

.opp-td-actions {
  text-align: right;
  white-space: nowrap;
  min-width: 90px;
  width: 90px;
}

.opp-td-actions > * {
  vertical-align: middle;
}

.opp-btn-search-google-sm {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #64748b;
  text-decoration: none;
  margin-right: 6px;
  transition: all 0.15s ease;
}

.opp-btn-search-google-sm:hover {
  background: #f9fafb;
  border-color: #cbd5e1;
  color: #0f172a;
}

.opp-btn-row-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  font-size: 16px;
  font-weight: 700;
  background: #0f172a;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
  min-width: 34px;
  height: 34px;
}

.opp-btn-row-info:hover {
  background: #1e293b;
}

.opp-row-select {
  display: inline-flex;
  cursor: pointer;
  position: relative;
}

.opp-row-select-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.opp-row-select-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  display: inline-block;
  position: relative;
  transition: all 0.15s ease;
}

.opp-row-select-input:checked + .opp-row-select-box {
  background: #2563eb;
  border-color: #2563eb;
}

.opp-row-select-input:checked + .opp-row-select-box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@media (max-width: 768px) {
  .opp-table thead { display: none; }
  .opp-table, .opp-table tbody, .opp-table tr, .opp-table td {
    display: block;
    width: 100%;
  }
  .opp-table tbody tr {
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 10px;
  }
  .opp-table td {
    padding: 4px 0;
    border: none;
  }
  .opp-td-actions {
    margin-top: 8px;
    text-align: left;
  }
}

/* ---- Company card grid (legacy, kept for demo state) ---- */
.opp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.opp-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.opp-card:hover {
  box-shadow: 0 10px 24px rgba(17,24,39,0.08);
  border-color: #d1d5db;
  transform: translateY(-2px);
}
/* Remove the colored left-border accent — new flat design */
.opp-card-hot,
.opp-card-direct,
.opp-card-nearby,
.opp-card-warm { border-left: 1px solid #e5e7eb; }

/* ---------- New card layout ---------- */
.opp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 10px;
}
.opp-score-circle {
  --size: 52px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  background:
    radial-gradient(closest-side, #fff 80%, transparent 81% 100%),
    conic-gradient(var(--ring, #6366f1) calc(var(--score, 0) * 1%), var(--ring-bg, #eef2ff) 0);
  position: relative;
  flex-shrink: 0;
}
.opp-score-circle span {
  position: relative;
  z-index: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
}

.opp-signal-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  white-space: nowrap;
}
.opp-signal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.18);
}

.opp-card-body {
  padding: 0 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.opp-card-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: #6b7280;
  font-weight: 500;
}
.opp-card-location svg { opacity: 0.85; }
.opp-card-name {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  margin: 0;
}
.opp-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.opp-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: #4b5563;
  background: #f3f4f6;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
}
.opp-card-reason {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  margin: 4px 0 0;
}

.opp-card-actions {
  padding: 14px 16px 16px;
}
.opp-card-header-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.opp-btn-search-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}
.opp-btn-search-google:hover {
  background: #eef2ff;
  color: #4f46e5;
  border-color: #c7d2fe;
  transform: translateY(-1px);
}
.opp-btn-search-google svg { display: block; }

/* ─── CSV-export selection (checkbox per card + selected state) ─── */
.opp-card-select {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  cursor: pointer;
  user-select: none;
}
.opp-card-select-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.opp-card-select-box {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  position: relative;
}
.opp-card-select:hover .opp-card-select-box {
  border-color: #6366f1;
  transform: scale(1.05);
}
.opp-card-select-input:checked + .opp-card-select-box {
  background: #6366f1;
  border-color: #6366f1;
}
.opp-card-select-input:checked + .opp-card-select-box::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 0px;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.opp-card-select-input:focus-visible + .opp-card-select-box {
  outline: 2px solid #818cf8;
  outline-offset: 2px;
}

/* Highlight a selected card */
.opp-card.opp-card-selected {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99,102,241,0.18), 0 6px 18px rgba(99,102,241,0.10);
}

/* "X sélectionnés" pill in the results-count line */
.opp-selected-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #4338ca;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  vertical-align: middle;
}

/* Demo card styling */
.opp-card-demo {
  opacity: 0.85;
  border: 1px dashed #d1d5db;
  background: #fafbfc;
}
.opp-card-demo:hover {
  opacity: 1;
  border-color: #9ca3af;
}
.opp-demo-badge {
  display: inline-block;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid #e5e7eb;
}
.opp-btn-demo-info {
  width: 100%;
  padding: 8px 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.15s ease;
}
.opp-btn-demo-info:hover {
  background: #e5e7eb;
  color: #374151;
}

/* Business hint card (pre-search) */
.opp-biz-hint {
  background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
  border: 1px solid #e0e7ff;
  border-left: 3px solid #4f46e5;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.opp-biz-hint-offer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.opp-biz-hint-emoji {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}
.opp-biz-hint-offer-text {
  flex: 1;
  min-width: 0;
}
.opp-biz-hint-offer-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #1e1b4b;
  margin-bottom: 3px;
}
.opp-biz-hint-pitch {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.45;
}
.opp-biz-hint-price {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: #4f46e5;
  background: #e0e7ff;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  align-self: flex-start;
}
.opp-biz-hint-details {
  margin-top: 10px;
}
.opp-biz-hint-details summary {
  font-size: 13px;
  font-weight: 600;
  color: #4f46e5;
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.opp-biz-hint-details summary::before {
  content: '💬';
}
.opp-biz-hint-details summary::-webkit-details-marker { display: none; }
.opp-biz-hint-details[open] summary {
  margin-bottom: 8px;
}
.opp-biz-hint-details p {
  margin: 0;
  font-size: 13px;
  color: #374151;
  line-height: 1.55;
  padding: 10px 14px;
  background: rgba(255,255,255,0.7);
  border-radius: 8px;
  font-style: italic;
  border: 1px solid #e0e7ff;
}

/* Hot stripe — hidden (flat design) */
.opp-card-hot-stripe {
  display: none;
}

/* Card top: proof badge + score pill */
.opp-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 0;
  margin-bottom: 8px;
}

/* Proof pills */
.opp-proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  letter-spacing: 0.15px;
  white-space: nowrap;
}
.opp-proof-direct  { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.opp-proof-nearby  { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.opp-proof-structured { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.opp-proof-weak    { background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; }

.opp-card-score-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: -0.3px;
}

/* Card body */
.opp-card-body {
  padding: 0 16px;
  flex: 1;
}
.opp-card-name {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  margin-bottom: 4px;
}
.opp-card-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 0;
}
.opp-priority-badge {
  display: inline-block;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.2px;
}

/* Signal reason — the key insight */
.opp-card-signal {
  padding: 10px 16px;
  margin-top: 8px;
  background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
  border-top: 1px solid #ede9fe;
}
.opp-card-signal-text {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}

/* Urgency indicators */
.opp-urgency {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1px;
}
.opp-urgency-hot  { color: #dc2626; }
.opp-urgency-warm { color: #ea580c; }
.opp-urgency-cool { color: #ca8a04; }

/* Distance badge */
.opp-card-distance {
  padding: 0 16px;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
}

/* Score bar */
.opp-card-score-bar {
  margin: 10px 16px 0;
  height: 4px;
  background: #f3f4f6;
  border-radius: 2px;
  overflow: hidden;
}
.opp-card-score-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* Card actions */
.opp-card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px 16px;
}
/* Primary CTA */
.opp-btn-deal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  letter-spacing: -0.1px;
  box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}
.opp-btn-deal:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 100%);
  box-shadow: 0 6px 16px rgba(99,102,241,0.35);
  transform: translateY(-1px);
}
.opp-btn-deal svg { stroke: #fff; }
/* Secondary CTA */
.opp-btn-angle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: #374151;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
}
.opp-btn-angle:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}
.opp-btn-angle svg { stroke: currentColor; }
.opp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
}
.opp-btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.opp-btn-primary svg { stroke: #fff; }
.opp-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
}

/* Small export button in opportunities toolbar: keep compact and let the container
   place it to the right. Use !important to override modal/footer full-width rules. */
.opp-btn-ghost.opp-export-btn {
  width: auto !important;
  padding: 4px 8px !important;
  font-size: 12px !important;
  border-radius: 6px;
  margin-left: 12px;
}

/* Export bar buttons - keep them inline */
.opp-export-bar {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.opp-export-bar .opp-btn-ghost {
  width: auto !important;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
   LANDING — conversational chat under the hero search
   Re-uses the .opp-chat-* building blocks and simply hosts them
   on a light background below the hero search bar.
   ============================================================ */
.landing-chat-mount {
  max-width: 760px;
  margin: 32px auto 52px;
  padding: 0 20px;
}
.landing-chat-mount:empty { display: none; }

.landing-chat-block {
  background: var(--white, #fff);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  padding: 18px 20px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* Landing-page only: show the raw Prospely logo on a white chip instead of
   the default gradient circle used inside the app. */
.landing-chat-avatar {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  width: 26px; height: 26px;
}

/* Fake-searching screen before signup redirect — standalone, no card
   around it so only the spinner + caption are visible. */
.landing-chat-searching {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 40px 20px;
  background: transparent;
  border: none;
  box-shadow: none;
}
.landing-chat-searching-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.landing-chat-searching-text {
  font-size: 15px;
  color: var(--text-dark, #1f2937);
  font-weight: 600;
  line-height: 1.5;
}
.landing-chat-searching-text span {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted, #6b7280);
}
.landing-chat-spinner {
  width: 44px; height: 44px;
  border: 3px solid rgba(99,102,241,0.18);
  border-top-color: var(--primary, #6366f1);
  border-radius: 50%;
  animation: landingChatSpin 0.9s linear infinite;
}
@keyframes landingChatSpin { to { transform: rotate(360deg); } }

/* Signup page "5 entreprises trouvées" banner — sits directly above the
   login card on the dark signup screen, matching the same max-width and
   card-like style so it reads as part of the funnel. */
.landing-found-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 440px;
  margin: 0 0 20px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(124,58,237,0.08));
  border: 1px solid rgba(167,139,250,0.25);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(99,102,241,0.15);
  animation: landingFoundIn 0.35s ease-out;
  position: relative;
  overflow: hidden;
}
.landing-found-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(167,139,250,0.22), transparent 65%);
  pointer-events: none;
}
@keyframes landingFoundIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.landing-found-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #8b7dff, #7c3aed);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(139,125,255,0.5);
  position: relative;
  z-index: 1;
}
.landing-found-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13.5px;
  color: #e2e8f0;
  line-height: 1.45;
  position: relative;
  z-index: 1;
  min-width: 0;
  text-align: left;
}
.landing-found-text strong {
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}
.landing-found-text em {
  font-style: normal;
  font-weight: 700;
  color: #c4b5fd;
}
.opp-btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.opp-btn-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
}
.opp-btn-save:hover {
  border-color: #d1d5db;
  color: #374151;
  background: #f9fafb;
}
.opp-btn-save.saved {
  color: #059669;
  border-color: #d1fae5;
  background: #ecfdf5;
}

/* Load more */
.opp-load-more {
  text-align: center;
  margin-top: 24px;
}
.opp-btn-load {
  width: auto;
  padding: 10px 32px;
}

/* "Comment ça marche" section */
.opp-how-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border-faint);
}
.opp-how-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 24px;
}
.opp-how-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.opp-how-card {
  text-align: center;
  padding: 24px 16px;
  border: 1px solid var(--border-faint);
  border-radius: 14px;
  background: var(--white);
}
.opp-how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 12px;
}
.opp-how-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.opp-how-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ---- Modals ---- */
.opp-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.opp-modal-overlay.show { opacity: 1; }
.opp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
}
.opp-modal-box {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  max-width: 540px;
  width: 92%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  transform: scale(0.95);
  transition: transform 0.2s ease;
}
.opp-modal-overlay.show .opp-modal-box { transform: scale(1); }

/* Demo banner inside modal */
.opp-demo-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #fff7ed 100%);
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #92400e;
  line-height: 1.45;
}
.opp-demo-banner span {
  font-weight: 700;
}

.opp-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
}
.opp-modal-close:hover { color: #334155; }
.opp-modal-top-actions {
  position: absolute;
  top: 28px;
  right: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.opp-modal-top-actions .opp-modal-close {
  position: static;
  top: auto;
  right: auto;
}
.opp-modal-header {
  margin-bottom: 20px;
}
.opp-modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 8px;
  line-height: 1.3;
}
.opp-modal-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Modal sections */
.opp-modal-section {
  margin-bottom: 20px;
}
.opp-modal-section h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.opp-modal-detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.opp-modal-detail-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.opp-modal-detail-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}
.opp-modal-detail-row > span:last-child {
  font-size: 13.5px;
  color: var(--text-dark);
  line-height: 1.5;
}

.opp-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-faint);
}
.opp-modal-footer .opp-btn-primary,
.opp-modal-footer .opp-btn-ghost {
  width: auto;
}

/* Angle modal */
.opp-modal-angle {
  max-width: 500px;
}
.opp-angle-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.opp-angle-block {
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--border-faint);
  border-radius: 12px;
}
.opp-angle-hook {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.15);
}
.opp-angle-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  display: block;
  margin-bottom: 6px;
}
.opp-angle-value {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.55;
  margin: 0;
}
.opp-angle-hook .opp-angle-value {
  color: var(--primary-dark);
  font-style: italic;
}

/* ---- Responsive ---- */
@media (max-width: 1280px) {
  .opp-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .opp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .opp-page { padding: 24px 16px 48px; }
  .opp-page-title { font-size: 24px; }
  .opp-kpis { grid-template-columns: 1fr; gap: 10px; }
  .opp-kpi { padding: 16px; }
  .opp-kpi-value { font-size: 28px; }
  .opp-toolbar { flex-direction: column; align-items: flex-start; }
  .opp-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; width: 100%; }
  .opp-filter-btn { white-space: nowrap; flex-shrink: 0; }
  .opp-toolbar-right { width: 100%; }
  .opp-toolbar-right .opp-select { flex: 1; min-width: 0; }
  .opp-grid { grid-template-columns: 1fr; }
  .opp-how-cards { grid-template-columns: 1fr; }
  .opp-modal-box { padding: 20px; width: 96%; }
  .opp-modal-footer { flex-direction: column; }
  .opp-modal-footer .opp-btn-primary,
  .opp-modal-footer .opp-btn-deal,
  .opp-modal-footer .opp-btn-ghost { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .opp-header-badge { animation: none !important; }
}

/* ====== OPPORTUNITIES — B2B overrides ====== */

#view-opportunities .opp-kpi {
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* KPI bottom borders */
#view-opportunities .opp-kpi-hot {
  border-bottom: 2px solid #4f46e5;
}
#view-opportunities .opp-kpi-ready {
  border-bottom: 2px solid #7c3aed;
}
#view-opportunities .opp-kpi-now {
  border-bottom: 2px solid #0891b2;
}

/* Export bar */
#view-opportunities .opp-export-btn {
  border: 1px solid #e5e7eb;
}

/* Filter pills */
#view-opportunities .opp-filter-btn {
  border: 1px solid #e5e7eb;
}
#view-opportunities .opp-filter-btn:hover,
#view-opportunities .opp-filter-btn.active {
  border-color: #4f46e5;
  background: #eef2ff;
  color: #4f46e5;
}

/* How-it-works cards */
#view-opportunities .opp-how-card {
  border: 1px solid #e5e7eb;
}

/* Sent emails — followup (>3 days) */
.row-needs-followup {
  background: #fef2f2 !important;
  border-left: 3px solid #dc2626;
}
.row-needs-followup:hover { background: #fee2e2 !important; }
.row-needs-followup td { color: #991b1b; }
.row-needs-followup .badge-success { background: #fee2e2; color: #991b1b; }
.btn-row-mail-urgent {
  background: #dc2626 !important;
  color: #fff !important;
  border-color: #dc2626 !important;
  animation: pulse-urgent 2s ease-in-out infinite;
}
.btn-row-mail-urgent:hover { background: #b91c1c !important; }
@keyframes pulse-urgent {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}


/* ============================================================
   GUIDE v2 — hero, TOC, grid, funnel, table, chip, faq, callout
   ============================================================ */
.guide-hero {
  max-width: 760px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #a7f3d0;
  border-radius: 14px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.guide-hero-left { flex: 1 1 360px; }
.guide-hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #059669;
  background: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.guide-hero-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: #064e3b;
}
.guide-hero-text {
  margin: 0 0 14px;
  color: #065f46;
  font-size: 14px;
  line-height: 1.5;
}
.guide-hero-right {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.guide-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 14px;
  background: #fff;
  border-radius: 10px;
  min-width: 96px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.guide-hero-stat strong {
  font-size: 18px;
  font-weight: 700;
  color: #059669;
}
.guide-hero-stat span {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
  text-align: center;
}

.guide-toc {
  max-width: 760px;
  margin: 0 auto 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}
.guide-toc-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 12px;
}
.guide-toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px;
}
.guide-toc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 7px;
  color: #0f172a;
  text-decoration: none;
  font-size: 13px;
  transition: background .15s;
}
.guide-toc-item:hover {
  background: #f1f5f9;
  color: #059669;
}
.guide-toc-item span {
  display: inline-flex;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.guide-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guide-steps li {
  counter-increment: step;
  position: relative;
  padding: 10px 12px 10px 42px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 14px;
  color: #334155;
  line-height: 1.55;
}
.guide-steps li::before {
  content: counter(step);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 8px 0 14px;
}
.guide-tile {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  font-size: 13px;
  color: #334155;
  line-height: 1.55;
}
.guide-tile strong { color: #0f172a; font-size: 14px; display: block; margin-bottom: 4px; }
.guide-tile p { margin: 4px 0 0; color: #64748b; font-size: 13px; }
.guide-tile-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px;
  margin-bottom: 8px;
}
.guide-tile-badge-blue  { background: #dbeafe; color: #1d4ed8; }
.guide-tile-badge-brown { background: #fef3c7; color: #92400e; }
.guide-tile-badge-red   { background: #fee2e2; color: #991b1b; }

.guide-funnel {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 8px 0 4px;
}
.guide-funnel-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}
.guide-funnel-step strong { color: #0f172a; font-size: 14px; }
.guide-funnel-step p { margin: 4px 0 0; color: #475569; font-size: 13px; line-height: 1.55; }
.guide-funnel-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.guide-funnel-arrow {
  align-self: center;
  color: #cbd5e1;
  font-size: 20px;
  padding: 4px 0;
  font-weight: 300;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 14px;
  font-size: 13.5px;
}
.guide-table thead th {
  text-align: left;
  padding: 10px 12px;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #64748b;
  border-bottom: 1px solid var(--border);
}
.guide-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  line-height: 1.5;
}
.guide-table tbody tr:last-child td { border-bottom: none; }
.guide-chip {
  display: inline-block;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 6px;
}
.guide-chip-free { background: #dcfce7; color: #059669; }

.guide-callout {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.6;
}
.guide-callout-info    { background: #eff6ff; border-left: 4px solid #3b82f6; color: #1e3a8a; }
.guide-callout-success { background: #f0fdf4; border-left: 4px solid #10b981; color: #064e3b; }

.guide-faq {
  border-top: 1px solid #f1f5f9;
  padding: 10px 0;
}
.guide-faq:first-of-type { border-top: none; }
.guide-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #0f172a;
  font-size: 14px;
  padding: 4px 0;
  list-style: none;
  position: relative;
  padding-left: 22px;
}
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary::before {
  content: "›";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: #10b981;
  font-size: 18px;
  font-weight: 700;
  transition: transform .2s;
}
.guide-faq[open] summary::before { transform: translateY(-50%) rotate(90deg); }
.guide-faq p {
  margin: 8px 0 4px;
  padding-left: 22px;
  color: #475569;
  font-size: 13.5px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .guide-hero { flex-direction: column; text-align: center; }
  .guide-hero-right { width: 100%; justify-content: center; }
  .guide-funnel-step { flex-direction: row; }
  .guide-grid { grid-template-columns: 1fr; }
}

/* ======================================================
   MOBILE APP TABS — sticky tab bar visible only <=768px
   ====================================================== */
.mobile-app-tabs { display: none; }

@media (max-width: 768px) {
  .mobile-app-tabs {
    display: flex;
    position: sticky;
    top: 60px;
    z-index: 80;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e5e7eb;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    scrollbar-width: none;
  }
  .mobile-app-tabs::-webkit-scrollbar { display: none; }
  .mobile-app-tab {
    flex: 0 0 auto;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 9px 14px;
    background: #fff;
    font-weight: 700;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-app-tab:active { transform: scale(0.97); }
  .mobile-app-tab.is-active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
  }

  /* ======================================================
     OPPORTUNITIES — mobile polish
     ====================================================== */
  /* Page wrapper */
  #view-opportunities .opp-page,
  #view-opportunities {
    padding-left: 16px;
    padding-right: 16px;
    max-width: 100%;
    overflow-x: hidden;
  }
  #view-opportunities .opp-header { padding: 12px 0 4px; }
  #view-opportunities .opp-page-title { font-size: 24px; line-height: 1.2; }
  #view-opportunities .opp-page-sub { font-size: 14px; margin-top: 6px; }

  /* Search card / prompt block */
  #view-opportunities .opp-prompt-block {
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    background: #fff;
  }
  #view-opportunities .opp-prompt-input-row {
    border-radius: 14px;
    padding: 6px 6px 6px 12px;
    gap: 8px;
  }
  #view-opportunities .opp-prompt-input {
    font-size: 15px;
    min-width: 0;
  }
  #view-opportunities .opp-prompt-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  #view-opportunities .opp-prompt-btn-text { display: none; }

  /* General filters row — 2-col grid */
  #view-opportunities .opp-inline-filters-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
    align-items: stretch;
  }
  #view-opportunities .opp-inline-filters-label {
    grid-column: 1 / -1;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
  }
  #view-opportunities .opp-inline-filter,
  #view-opportunities .opp-select.opp-inline-filter {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    font-size: 13.5px;
    text-overflow: ellipsis;
  }
  #view-opportunities .opp-inline-filter-clear {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 38px;
  }

  /* Number of results row */
  #view-opportunities .opp-search-subrow {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  #view-opportunities .opp-target-pills-row {
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }
  #view-opportunities .opp-target-label {
    flex-basis: 100%;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
  }
  #view-opportunities .opp-target-pill {
    min-width: 44px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    font-weight: 700;
  }
  #view-opportunities .opp-search-credits {
    font-size: 12.5px;
    color: #64748b;
  }

  /* Results header card "Résultats pour" */
  #view-opportunities .opp-results-header,
  #view-opportunities .opp-result-card,
  #view-opportunities .opp-results-summary {
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  }

  /* Bottom result filters / selects — wrap and breathe */
  #view-opportunities .opp-results-toolbar,
  #view-opportunities .opp-results-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  #view-opportunities .opp-results-toolbar select,
  #view-opportunities .opp-results-filters select {
    min-height: 40px;
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }

  /* Prevent any horizontal overflow inside opportunities */
  #view-opportunities * { max-width: 100%; }
  #view-opportunities .opp-page > * { max-width: 100%; }
}


/* =============================================
   TESTIMONIALS SLIDER
   ============================================= */

.testimonials-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #ffffff 0%, #F8FAFC 100%);
  overflow: hidden;
  position: relative;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 48px;
}

.testimonials-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(37, 99, 235, 0.06);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.2);
}

.testimonial-stars {
  font-size: 13px;
  line-height: 1;
  opacity: 0.7;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dark);
  font-weight: 500;
  flex: 1;
  margin: 0;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 8px;
  border-top: 1px solid var(--border-faint);
}

.testimonial-author strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.testimonial-author span {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Mobile responsive */
@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .testimonials-section {
    padding: 60px 0;
  }

  .testimonials-header {
    margin-bottom: 32px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .testimonial-card {
    padding: 14px;
  }
}

/* =============================================
   RESPONSIVE — 430px (Small Mobile)
   ============================================= */

@media (max-width: 430px) {
  /* Extra small mobile optimizations */
  .hero {
    padding: 48px 0 64px;
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .hero-title {
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 14px;
    line-height: 1.5;
  }

  .hero-benefit {
    font-size: 13px;
  }

  .hero-stats {
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 36px;
  }

  .hero-stat {
    padding: 14px;
  }

  .hero-stat-icon {
    font-size: 26px;
  }

  .hero-stat-value {
    font-size: 17px;
  }

  .hero-stat-label {
    font-size: 13px;
  }

  .hero-ctas {
    gap: 10px;
    padding: 0 16px;
  }

  .btn-hero-main,
  .btn-hero-secondary {
    padding: 13px 16px;
    font-size: 14px;
  }

  .container {
    padding: 0 16px;
  }
}
/* Opp signal picker — neutral cards with hover */
.opp-signal-card-active:hover { border-color: #2563eb !important; background: #eff6ff !important; box-shadow: 0 2px 8px rgba(37,99,235,.08); }
.opp-signal-card-active:hover > div:nth-child(2) { color: #1d4ed8 !important; }

