.social-proof-container {
  position: fixed;
  bottom: 20px;
  left: 24px;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  z-index: 9997;
  pointer-events: none;
}

/* Mantem as provas sociais acima do CTA flutuante quando ele existe na pagina. */
body:has(.bg-floating-cta) .social-proof-container {
  bottom: 10px;
}

.social-proof-toast {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98));
  backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
              0 2px 8px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 320px;
  max-width: 400px;
  transform: translateX(-150%);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 1px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  pointer-events: auto;
  position: relative;
}

.social-proof-toast:hover {
  transform: translateX(0) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15),
              0 4px 12px rgba(0, 0, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.social-proof-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.social-proof-toast.hide {
  transform: translateX(-150%);
  opacity: 0;
}

.toast-avatar {
  position: relative;
  flex-shrink: 0;
}

.toast-avatar img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.toast-avatar::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #10b981, #059669);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.9;
  }
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.toast-name {
  font-weight: 600;
  font-size: 15px;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast-time {
  font-size: 12px;
  color: #10b981;
  font-weight: 500;
  white-space: nowrap;
}

.toast-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px;
}

.toast-flag {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.toast-purchase {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #e91e8c;
}

.toast-purchase svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.toast-plan {
  background: linear-gradient(135deg, #e91e8c, #c026d3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.toast-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.2s;
}

.social-proof-toast:hover .toast-close {
  opacity: 1;
}

.toast-close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}

.toast-close svg {
  width: 14px;
  height: 14px;
  color: #6b7280;
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(-150%);
    opacity: 0;
  }
  60% {
    transform: translateX(10px);
    opacity: 1;
  }
  80% {
    transform: translateX(-5px);
  }
  100% {
    transform: translateX(0);
  }
}

.social-proof-toast.show {
  animation: slideInFromLeft 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@media (max-width: 640px) {
  .social-proof-container {
    left: 8px;
    right: 8px;
    bottom: 15px;
    gap: 8px;
    z-index: 9999;
    opacity: 0.95;
  }

  .social-proof-toast {
    min-width: auto;
    max-width: none;
    width: 100%;
    box-sizing: border-box;
    padding: 7px 9px;
    gap: 8px;
    border-radius: 10px;
  }

  .toast-avatar img {
    width: 32px;
    height: 32px;
    border-width: 2px;
  }

  .toast-avatar::after {
    width: 8px;
    height: 8px;
    bottom: 1px;
    right: 1px;
    border-width: 1px;
  }

  .toast-name {
    font-size: 12px;
    line-height: 1.1;
  }

  .toast-time {
    font-size: 10px;
  }

  .toast-location {
    font-size: 10px;
    line-height: 1.1;
    margin-bottom: 1px;
  }

  .toast-purchase {
    font-size: 11px;
    line-height: 1.1;
    min-width: 0;
  }

  .toast-action {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .toast-purchase svg {
    width: 12px;
    height: 12px;
  }

  .toast-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
  }

  .toast-header {
    gap: 5px;
    margin-bottom: 1px;
  }

  .toast-location {
    margin-bottom: 1px;
  }

  .toast-close {
    width: 18px;
    height: 18px;
    top: 4px;
    right: 4px;
  }

  .toast-close svg {
    width: 10px;
    height: 10px;
  }
}
