/* BilKoll Conversion Optimization — conversion.css
 * Prefix: bk-  |  Dark theme  |  Mobile-first
 * ============================================= */

/* ───── 1. EXIT INTENT POPUP ───── */
.bk-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.bk-overlay.bk-visible {
  opacity: 1;
  visibility: visible;
}
.bk-popup {
  position: relative;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  padding: 32px 24px;
  max-width: 460px;
  width: 92%;
  text-align: center;
  color: #18181b;
  font-family: 'Inter', sans-serif;
  animation: bk-slideUp 0.35s ease;
}
@keyframes bk-slideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.bk-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #888;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}
.bk-popup-close:hover { color: #18181b; }
.bk-popup h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}
.bk-popup p {
  font-size: 15px;
  line-height: 1.5;
  color: #71717a;
  margin: 0 0 20px;
}
.bk-popup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bk-popup-form input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  background: #f4f4f5;
  color: #18181b;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.bk-popup-form input[type="email"]:focus {
  border-color: #FF6321;
}
.bk-popup-form input[type="email"]::placeholder { color: #666; }
.bk-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: #FF6321;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.bk-btn-primary:hover  { background: #e8551a; }
.bk-btn-primary:active { transform: scale(0.97); }
.bk-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.bk-popup-success {
  font-size: 16px;
  color: #4ade80;
  padding: 16px 0;
}

/* ───── 2. CONTEXTUAL CTA BOX ───── */
.bk-cta-box {
  background: #ffffff;
  border-left: 4px solid #FF6321;
  border-radius: 8px;
  padding: 24px;
  margin: 32px 0;
  color: #18181b;
  font-family: 'Inter', sans-serif;
}
.bk-cta-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
}
.bk-cta-box .bk-btn-primary {
  display: inline-flex;
  text-decoration: none;
  margin-top: 4px;
  font-size: 14px;
  padding: 10px 18px;
}

/* ───── 3. INLINE LEAD MAGNET BOX ───── */
.bk-lead-magnet {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  padding: 24px;
  margin: 28px 0;
  color: #18181b;
  font-family: 'Inter', sans-serif;
}
.bk-lead-magnet-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.bk-lead-magnet-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.bk-lead-magnet-header h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}
.bk-lead-magnet-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bk-lead-magnet-form input[type="email"] {
  flex: 1 1 200px;
  padding: 10px 12px;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  background: #f4f4f5;
  color: #18181b;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.bk-lead-magnet-form input[type="email"]:focus { border-color: #FF6321; }
.bk-lead-magnet-form input[type="email"]::placeholder { color: #666; }
.bk-lead-magnet-form .bk-btn-primary {
  padding: 10px 16px;
  font-size: 13px;
  white-space: nowrap;
}
.bk-lead-magnet-success {
  font-size: 14px;
  color: #4ade80;
  padding: 8px 0 0;
}

/* ───── 4. STICKY SEARCH BAR ───── */
.bk-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: #ffffff;
  border-top: 1px solid #e4e4e7;
  padding: 10px 16px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  font-family: 'Inter', sans-serif;
}
.bk-sticky-bar.bk-visible {
  transform: translateY(0);
}
.bk-sticky-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 800px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.bk-sticky-label {
  font-size: 13px;
  color: #71717a;
  white-space: nowrap;
}
.bk-sticky-input {
  width: 120px;
  padding: 8px 10px;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  background: #f4f4f5;
  color: #18181b;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.bk-sticky-input:focus { border-color: #FF6321; }
.bk-sticky-input::placeholder {
  color: #555;
  text-transform: none;
  letter-spacing: 0;
}
.bk-sticky-bar .bk-btn-primary {
  padding: 8px 16px;
  font-size: 13px;
}

/* ───── 5. SOCIAL PROOF ───── */
.bk-social-proof {
  font-family: 'Inter', sans-serif;
  color: #71717a;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0;
}
.bk-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #222;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  white-space: nowrap;
}
.bk-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
}
.bk-badge-trend-down { color: #4ade80; }
.bk-badge-trend-up   { color: #f87171; }

/* ───── RESPONSIVE ───── */
@media (min-width: 640px) {
  .bk-popup {
    padding: 40px 36px;
  }
  .bk-popup h2 { font-size: 24px; }
  .bk-popup-form {
    flex-direction: row;
  }
  .bk-popup-form input[type="email"] {
    flex: 1;
  }
  .bk-popup-form .bk-btn-primary {
    flex-shrink: 0;
  }
  .bk-sticky-bar {
    padding: 12px 24px;
  }
}

/* ───── A11Y: prefers-reduced-motion ───── */
@media (prefers-reduced-motion: reduce) {
  .bk-overlay,
  .bk-sticky-bar {
    transition: none;
  }
  @keyframes bk-slideUp {
    from { transform: none; opacity: 1; }
  }
}

/* ── Notification Toast ── */
.bk-toast {
  position: fixed;
  bottom: 80px;
  left: 20px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 8500;
  transform: translateX(-120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  max-width: 320px;
}
.bk-toast-show {
  transform: translateX(0);
}
.bk-toast-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.bk-toast-text {
  color: #71717a;
  font-size: 13px;
  line-height: 1.4;
}
.bk-toast-text strong {
  color: #18181b;
}
@media (max-width: 640px) {
  .bk-toast {
    left: 12px;
    right: 12px;
    bottom: 70px;
    max-width: none;
  }
}

/* ── Freemium Funnel ── */
@keyframes bk-shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}
@keyframes bk-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,99,33,0.4); }
  50% { transform: scale(1.02); box-shadow: 0 0 20px 4px rgba(255,99,33,0.2); }
}
.bk-popular-badge {
  animation: bk-fade-in 0.5s ease-out;
}
@keyframes bk-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
