/* ============================================================
   ROIX MEDIA — CRO Layer
   Sticky CTA | WhatsApp Float | Trust Indicators | Micro-conversions
   ============================================================ */

/* ═══════════════════════════════════════════════════════════
   1. STICKY BOTTOM CTA BAR
   ═══════════════════════════════════════════════════════════ */
#sticky-cta-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 8888;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
}
#sticky-cta-bar.visible {
  transform: translateY(0);
  pointer-events: all;
}
#sticky-cta-bar.hidden {
  transform: translateY(100%);
  pointer-events: none;
}
.sticky-cta-inner {
  background: rgba(18,10,31,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(167,139,250,0.25);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 100%;
}
.sticky-cta-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.sticky-cta-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: stickyCTAPulse 2s ease-in-out infinite;
}
@keyframes stickyCTAPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}
.sticky-cta-text {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-cta-text span {
  color: var(--clr-primary-light, #C4B5FD);
}
.sticky-cta-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}
.sticky-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
  text-decoration: none;
  font-family: inherit;
}
.sticky-cta-btn--primary {
  background: #A78BFA;
  color: #1A1030;
  box-shadow: 0 0 0 rgba(167,139,250,0);
}
.sticky-cta-btn--primary:hover {
  background: #C4B5FD;
  box-shadow: 0 0 20px rgba(167,139,250,0.5);
  transform: translateY(-1px);
}
.sticky-cta-btn--wa {
  background: #22c55e;
  color: #fff;
}
.sticky-cta-btn--wa:hover {
  background: #16a34a;
  box-shadow: 0 0 16px rgba(34,197,94,0.4);
  transform: translateY(-1px);
}
.sticky-cta-close {
  background: none;
  border: none;
  color: rgba(184,176,200,0.5);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.3s;
  font-family: inherit;
}
.sticky-cta-close:hover { color: rgba(255,255,255,0.8); }

@media (max-width: 640px) {
  .sticky-cta-inner { padding: 12px 16px; gap: 10px; flex-wrap: wrap; }
  .sticky-cta-left { flex-basis: 100%; min-width: 0; }
  .sticky-cta-text { font-size: 12px; }
  .sticky-cta-btn { padding: 9px 16px; font-size: 12px; }
  .sticky-cta-btn--wa { display: none; } /* WhatsApp float handles this on mobile */
}

/* ═══════════════════════════════════════════════════════════
   2. WHATSAPP FLOATING BUTTON
   ═══════════════════════════════════════════════════════════ */
#wa-float {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 8889;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.wa-float-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  box-shadow:
    0 4px 20px rgba(0,0,0,0.35),
    0 0  0px  rgba(34,197,94,0);
  transition:
    transform   0.4s cubic-bezier(0.22,1,0.36,1),
    box-shadow  0.4s cubic-bezier(0.22,1,0.36,1);
  animation: waEntrance 0.6s cubic-bezier(0.22,1,0.36,1) 1.5s both;
}
@keyframes waEntrance {
  from { opacity: 0; transform: scale(0.5) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.wa-float-btn:hover {
  transform: scale(1.12);
  box-shadow:
    0 8px 28px rgba(0,0,0,0.4),
    0 0  24px rgba(34,197,94,0.45);
}
.wa-float-btn svg {
  width: 28px; height: 28px;
  fill: #fff;
}
/* Ripple ring around WA button */
.wa-float-btn::after {
  content: '';
  position: absolute;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(34,197,94,0.5);
  animation: waRing 2.5s ease-out 2s infinite;
}
@keyframes waRing {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}
/* Tooltip on hover */
.wa-float-tooltip {
  background: rgba(18,10,31,0.95);
  border: 1px solid rgba(167,139,250,0.2);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  position: absolute;
  right: 64px;
  bottom: 12px;
}
#wa-float:hover .wa-float-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Adjust when sticky bar is hidden (mobile bottom) */
@media (max-width: 640px) {
  #wa-float { bottom: 24px; right: 16px; }
}

/* ═══════════════════════════════════════════════════════════
   3. INLINE SECTION CTA STRIPS
   ═══════════════════════════════════════════════════════════ */
.section-cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 32px;
  margin-block: -20px 0;
  background: rgba(167,139,250,0.05);
  border: 1px solid rgba(167,139,250,0.12);
  border-radius: 16px;
  flex-wrap: wrap;
}
.section-cta-strip__text {
  font-size: 15px;
  color: rgba(184,176,200,0.9);
  font-weight: 500;
}
.section-cta-strip__text strong {
  color: #fff;
  font-weight: 700;
}
.section-cta-strip__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}
.section-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #A78BFA;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(167,139,250,0.3);
  transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
}
.section-cta-link:hover {
  background: rgba(167,139,250,0.1);
  border-color: rgba(167,139,250,0.5);
  color: #C4B5FD;
  transform: translateX(2px);
}
.section-cta-link--primary {
  background: #A78BFA;
  color: #1A1030;
  border-color: #A78BFA;
}
.section-cta-link--primary:hover {
  background: #C4B5FD;
  border-color: #C4B5FD;
  color: #1A1030;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(167,139,250,0.4);
}
@media (max-width: 640px) {
  .section-cta-strip { padding: 16px 20px; gap: 14px; }
  .section-cta-strip__text { font-size: 13px; }
  .section-cta-strip__actions { width: 100%; }
  .section-cta-link { flex: 1; justify-content: center; font-size: 12px; }
}

/* ═══════════════════════════════════════════════════════════
   4. TRUST INDICATORS
   ═══════════════════════════════════════════════════════════ */
.trust-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 16px 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(184,176,200,0.85);
}
.trust-item__icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A78BFA;
  flex-shrink: 0;
}
.trust-item__icon .material-symbols-outlined { font-size: 16px; }
.trust-item em { font-style: normal; color: #fff; }

/* Star rating */
.star-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #f59e0b;
  font-size: 14px;
}
.rating-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rating-score {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.rating-count {
  font-size: 12px;
  color: rgba(184,176,200,0.6);
}

/* Social proof banner inside hero */
.social-proof-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.social-proof-avatars {
  display: flex;
  align-items: center;
}
.social-proof-avatars span {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid #0B0612;
  background: linear-gradient(135deg, #A78BFA, #C4B5FD);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #1A1030;
  margin-left: -8px;
}
.social-proof-avatars span:first-child { margin-left: 0; }
.social-proof-text {
  font-size: 13px;
  color: rgba(184,176,200,0.8);
}
.social-proof-text strong { color: #fff; }

/* Guarantee badge */
.guarantee-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  font-size: 12px;
  font-weight: 600;
  color: #86efac;
  letter-spacing: 0.04em;
}
.guarantee-badge .material-symbols-outlined { font-size: 14px; color: #22c55e; }

/* ═══════════════════════════════════════════════════════════
   5. MICRO-CONVERSION ELEMENTS
   ═══════════════════════════════════════════════════════════ */
/* Urgency indicator */
.urgency-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.22);
  font-size: 11px;
  font-weight: 700;
  color: #fca5a5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.urgency-chip::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: urgencyPulse 1.5s ease-in-out infinite;
}
@keyframes urgencyPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* Form conversion trust block */
.form-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 8px;
}
.form-trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: rgba(184,176,200,0.55);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-trust-item .material-symbols-outlined {
  font-size: 14px;
  color: #A78BFA;
}

/* Micro CTA — "or" divider */
.micro-or {
  text-align: center;
  font-size: 12px;
  color: rgba(184,176,200,0.4);
  position: relative;
  margin-block: 12px;
}
.micro-or::before, .micro-or::after {
  content: '';
  position: absolute;
  top: 50%; width: 35%;
  height: 1px;
  background: rgba(255,255,255,0.06);
}
.micro-or::before { left: 0; }
.micro-or::after { right: 0; }
