/* ══════════════════════════════════════════════════════════════
   Delta Efficiency — Revenue Conversion Widgets
   ══════════════════════════════════════════════════════════════ */

/* ── Social Proof Bar ─────────────────────────────────────────── */
#socialProofBar {
  background: linear-gradient(90deg, #1a1a2e, #2c3e50);
  color: #fff;
  padding: .5rem 1rem;
  text-align: center;
  font-size: .82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  position: relative;
  z-index: 999;
}
#socialProofBar .sp-dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-green 2s infinite;
  flex-shrink: 0;
}
#socialProofBar .sp-text {
  transition: opacity .3s;
}
#socialProofBar .sp-cta {
  background: #c0392b;
  color: #fff;
  padding: .2rem .75rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: .78rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
#socialProofBar .sp-cta:hover { background: #a93226; }
@keyframes pulse-green {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.3); }
}

/* ── Exit Intent Modal ────────────────────────────────────────── */
#exitIntentModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .3s;
}
#exitIntentModal.ei-visible { opacity: 1; }
.ei-box {
  background: #fff;
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
  transform: translateY(20px);
  transition: transform .3s;
  position: relative;
}
#exitIntentModal.ei-visible .ei-box { transform: translateY(0); }
.ei-header {
  background: linear-gradient(135deg, #1a1a2e, #c0392b);
  color: #fff;
  padding: 2rem 2rem 1.5rem;
  text-align: center;
}
.ei-header h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: .5rem; }
.ei-header p  { opacity: .85; font-size: .9rem; }
.ei-body { padding: 1.75rem 2rem; }
.ei-close {
  position: absolute;
  top: .875rem; right: .875rem;
  background: rgba(255,255,255,.2);
  border: none; cursor: pointer;
  width: 30px; height: 30px;
  border-radius: 50%;
  color: #fff; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.ei-close:hover { background: rgba(255,255,255,.35); }
.ei-input {
  width: 100%; padding: .75rem 1rem;
  border: 1px solid #d1d5db; border-radius: 8px;
  font-size: .95rem; margin-bottom: .75rem;
  font-family: inherit;
}
.ei-input:focus { outline: none; border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,.1); }
.ei-submit {
  width: 100%; padding: .875rem;
  background: #c0392b; color: #fff;
  border: none; border-radius: 10px;
  font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: background .2s;
}
.ei-submit:hover { background: #a93226; }
.ei-skip {
  display: block; text-align: center;
  margin-top: .875rem; font-size: .8rem;
  color: #9ca3af; cursor: pointer;
  background: none; border: none; width: 100%;
}
.ei-skip:hover { color: #374151; }
.ei-benefits {
  display: flex; gap: .75rem; flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.ei-benefit {
  display: flex; align-items: center; gap: .4rem;
  font-size: .82rem; color: #374151;
}
.ei-benefit i { color: #16a34a; }
@media(max-width:480px) {
  .ei-header { padding: 1.5rem 1.25rem 1.25rem; }
  .ei-body { padding: 1.25rem; }
  .ei-header h2 { font-size: 1.2rem; }
}

/* ── Sticky CTA Bar ───────────────────────────────────────────── */
#stickyCtaBar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #1a1a2e;
  color: #fff;
  padding: .875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 998;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.32,.72,0,1);
  box-shadow: 0 -4px 20px rgba(0,0,0,.2);
  flex-wrap: wrap;
}
#stickyCtaBar.visible { transform: translateY(0); }
.sticky-text { font-size: .9rem; font-weight: 600; flex: 1; min-width: 200px; }
.sticky-text span { color: #4ade80; }
.sticky-actions { display: flex; gap: .75rem; align-items: center; flex-shrink: 0; }
.sticky-btn {
  background: #c0392b; color: #fff;
  padding: .6rem 1.25rem; border-radius: 8px;
  font-weight: 700; font-size: .875rem;
  text-decoration: none; white-space: nowrap;
  transition: background .2s;
}
.sticky-btn:hover { background: #a93226; color: #fff; }
.sticky-btn.outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.8);
}
.sticky-btn.outline:hover { background: rgba(255,255,255,.1); color: #fff; }
.sticky-close {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.5); font-size: 1.1rem;
  padding: .25rem; flex-shrink: 0;
}
.sticky-close:hover { color: #fff; }
@media(max-width:600px) {
  #stickyCtaBar { padding: .75rem 1rem; }
  .sticky-text { font-size: .8rem; }
  .sticky-actions { width: 100%; justify-content: space-between; }
  .sticky-btn { flex: 1; text-align: center; }
}

/* ── Lead Magnet Section ──────────────────────────────────────── */
.lead-magnet-section {
  background: linear-gradient(135deg, #0f6e56 0%, #1a1a2e 100%);
  color: #fff;
  padding: 3rem 0 4rem;
  text-align: center;
  border-bottom: 4px solid rgba(255,255,255,.12);
}
.lead-magnet-section h2 { color: #fff; margin-bottom: .75rem; }
.lead-magnet-section p  { opacity: .85; margin-bottom: 1.5rem; }
.lm-form {
  display: flex; gap: .75rem;
  max-width: 500px; margin: 0 auto;
  flex-wrap: wrap; justify-content: center;
}
.lm-form input {
  flex: 1; min-width: 200px;
  padding: .75rem 1rem;
  border: none; border-radius: 8px;
  font-size: .95rem; font-family: inherit;
}
.lm-form button {
  background: #c0392b; color: #fff;
  border: none; padding: .75rem 1.5rem;
  border-radius: 8px; font-weight: 700;
  cursor: pointer; font-size: .95rem;
  white-space: nowrap; transition: background .2s;
}
.lm-form button:hover { background: #a93226; }
.lm-benefits {
  display: flex; gap: 1.5rem;
  justify-content: center; flex-wrap: wrap;
  margin-top: 1.25rem; font-size: .82rem;
  opacity: .8;
}
.lm-benefit { display: flex; align-items: center; gap: .35rem; }
.lm-benefit i { color: #4ade80; }

/* ── Visitor Counter ──────────────────────────────────────────── */
.live-counter {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(74,222,128,.1);
  border: 1px solid rgba(74,222,128,.3);
  border-radius: 20px;
  padding: .3rem .875rem;
  font-size: .82rem; color: #166534;
  font-weight: 600;
}
.live-counter .live-dot {
  width: 7px; height: 7px;
  background: #4ade80; border-radius: 50%;
  animation: pulse-green 2s infinite;
}

/* ── Referral Banner ──────────────────────────────────────────── */
.referral-banner {
  background: linear-gradient(90deg, #fef9c3, #fef3c7);
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  margin: 1.5rem 0;
}
.referral-banner i { font-size: 1.5rem; color: #f59e0b; flex-shrink: 0; }
.referral-banner h4 { font-size: .95rem; font-weight: 700; color: #78350f; margin-bottom: .2rem; }
.referral-banner p  { font-size: .85rem; color: #92400e; margin: 0; }
.referral-banner a  { background: #f59e0b; color: #fff; padding: .5rem 1.1rem; border-radius: 8px; font-weight: 700; font-size: .875rem; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.referral-banner a:hover { background: #d97706; }
