/* Popup social proof — canto inferior direito (HANGO v2) */

.hsp-root {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 9990;
  pointer-events: none;
  width: min(420px, calc(100vw - 40px));
}

.hsp-toast {
  position: relative;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(255, 107, 43, 0.85), rgba(255, 215, 0, 0.35) 40%, rgba(255, 107, 43, 0.2));
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.65),
    0 0 40px rgba(255, 107, 43, 0.22);
  opacity: 0;
  transform: translateY(20px) scale(0.94);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.hsp-toast--in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hsp-toast--out {
  opacity: 0;
  transform: translateY(14px) scale(0.96);
}

.hsp-glow {
  position: absolute;
  inset: -20px;
  border-radius: 28px;
  background: radial-gradient(circle at 30% 50%, rgba(255, 107, 43, 0.25), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.hsp-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px 18px 18px;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 90% 80% at 0% 50%, rgba(255, 107, 43, 0.14), transparent 55%),
    linear-gradient(155deg, #161618 0%, #0a0a0c 100%);
}

.hsp-thumb {
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #ff6b2b, #ffd700 45%, #1a1a1a);
  box-shadow: 0 8px 24px rgba(255, 107, 43, 0.35);
}

.hsp-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #0c0c0c;
}

.hsp-live {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #0a0a0c;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
  animation: hsp-pulse 1.6s ease-in-out infinite;
}

@keyframes hsp-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.88); opacity: 0.75; }
}

.hsp-body {
  flex: 1;
  min-width: 0;
}

.hsp-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.hsp-eyebrow {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff8f5c;
}

.hsp-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #111;
  background: linear-gradient(135deg, #ffd700, #ffb800);
}

.hsp-user {
  margin: 0 0 4px;
  font-family: Syne, Inter, system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fafafa;
  letter-spacing: 0.02em;
}

.hsp-action {
  margin: 0 0 6px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
  color: #d4d4d8;
}

.hsp-action strong {
  font-weight: 800;
  color: #fde68a;
  letter-spacing: 0.03em;
}

.hsp-when {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #71717a;
  text-transform: lowercase;
}

@media (max-width: 600px) {
  .hsp-root {
    right: 12px;
    bottom: 14px;
    left: 12px;
    width: auto;
  }

  .hsp-inner {
    padding: 16px;
    gap: 14px;
  }

  .hsp-thumb {
    width: 56px;
    height: 56px;
  }

  .hsp-user {
    font-size: 1.05rem;
  }
}
