/* =============================================================================
   Social Stardom — Floating WhatsApp chat button + Cialdini popup styles
   Self-contained, namespaced .ss-* so it never collides with page styles.
   ============================================================================= */

/* ---------- Floating button ---------- */
.ss-wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2147483000;
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 60px;
  width: 60px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: linear-gradient(145deg, #25D366 0%, #128C4B 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(18, 140, 75, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.55);
  overflow: hidden;
  white-space: nowrap;
  transition: width .28s cubic-bezier(.4,0,.2,1), box-shadow .28s ease, transform .2s ease;
  animation: ssFloatBob 3.2s ease-in-out infinite, ssGlowPulse 2.4s ease-in-out infinite;
}
.ss-wa-float svg { flex: none; margin: 0 17px; }
.ss-wa-label {
  font: 600 14px/1 "Inter Tight", system-ui, sans-serif;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: opacity .2s ease .05s, max-width .28s ease;
  padding-right: 4px;
}
.ss-wa-float:hover,
.ss-wa-float:focus-visible {
  width: 188px;
  outline: none;
  transform: translateY(-2px);
}
.ss-wa-float:hover .ss-wa-label,
.ss-wa-float:focus-visible .ss-wa-label {
  opacity: 1;
  max-width: 120px;
  padding-right: 18px;
}
.ss-wa-float:hover svg,
.ss-wa-float:focus-visible svg { margin-left: 17px; margin-right: 8px; }

/* living "someone's waiting" pulse ring */
.ss-wa-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(37, 211, 102, 0.7);
  animation: ssRingExpand 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes ssFloatBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes ssGlowPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(18,140,75,.45), 0 0 0 0 rgba(37,211,102,.55); }
  50%      { box-shadow: 0 10px 30px rgba(18,140,75,.6), 0 0 26px 6px rgba(37,211,102,.35); }
}
@keyframes ssRingExpand {
  0%   { transform: scale(1); opacity: .7; }
  80%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
.ss-wa-still { animation: none; }
.ss-wa-still .ss-wa-ring { animation: none; opacity: 0; }
.prefers-reduced-motion .ss-wa-float { animation: none; }
.prefers-reduced-motion .ss-wa-ring { animation: none; opacity: 0; }

@media (max-width: 600px) {
  .ss-wa-float { right: 16px; bottom: 16px; height: 56px; width: 56px; }
  .ss-wa-float:hover, .ss-wa-float:focus-visible { width: 56px; transform: none; }
  .ss-wa-float .ss-wa-label { display: none; }
}

/* ---------- Popup overlay ---------- */
.ss-chat-lock { overflow: hidden; }
.ss-chat-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 9, 10, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.ss-chat-overlay.active { opacity: 1; visibility: visible; }

.ss-chat-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #131416;
  border: 1px solid rgba(207, 255, 0, 0.18);
  border-radius: 22px;
  padding: 30px 28px 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 40px rgba(207,255,0,.06);
  transform: translateY(14px) scale(.98);
  transition: transform .26s cubic-bezier(.2,.8,.2,1);
  font-family: "Inter Tight", system-ui, sans-serif;
}
.ss-chat-overlay.active .ss-chat-card { transform: translateY(0) scale(1); }

.ss-chat-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: #8d8c86;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.ss-chat-close:hover { color: #fff; background: rgba(255,255,255,.06); }

.ss-chat-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.ss-chat-livedot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 0 0 rgba(37,211,102,.7);
  animation: ssLiveDot 1.8s ease-out infinite;
}
@keyframes ssLiveDot {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.6); }
  70%  { box-shadow: 0 0 0 7px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.ss-chat-online {
  font: 600 11px/1 "Geist Mono", ui-monospace, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #25D366;
}

.ss-chat-title {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}
.ss-chat-sub {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: #a0a5ad;
}

.ss-chat-form { display: flex; flex-direction: column; gap: 6px; }
.ss-chat-label {
  font: 600 12px/1 "Inter Tight", sans-serif;
  color: #d1d5db;
  margin-top: 8px;
}
.ss-chat-field {
  width: 100%;
  box-sizing: border-box;
  background: #0e0f10;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
  font: 400 15px/1.5 "Inter Tight", sans-serif;
  resize: vertical;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ss-chat-field::placeholder { color: #6b7280; }
.ss-chat-field:focus {
  outline: none;
  border-color: rgba(207,255,0,.5);
  box-shadow: 0 0 0 3px rgba(207,255,0,.12);
}

.ss-chat-submit {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(145deg, #25D366 0%, #128C4B 100%);
  color: #fff;
  font: 700 15px/1 "Inter Tight", sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(18,140,75,.4);
  transition: transform .15s ease, box-shadow .2s ease;
}
.ss-chat-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(18,140,75,.55); }
.ss-chat-foot {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #6b7280;
  text-align: center;
}

@media (max-width: 480px) {
  .ss-chat-card { padding: 26px 20px 20px; border-radius: 18px; }
  .ss-chat-title { font-size: 19px; }
}
