/* Container dos Toasts */
.social-proof-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  z-index: 9997;
  pointer-events: none;
}

/* Toast de Prova Social */
.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: #4f46e5;
}

.toast-purchase svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.toast-credits {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  -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;
}

/* Animação de entrada */
@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);
}

/* Responsivo */
@media (max-width: 640px) {
  .social-proof-container {
      left: 12px;
      right: 12px;
      bottom: 20px;
  }
  
  .social-proof-toast {
      min-width: auto;
      max-width: none;
      width: 100%;
      box-sizing: border-box;
      padding: 12px 16px;
  }
  
  .toast-avatar img {
      width: 48px;
      height: 48px;
  }
  
  .toast-name {
      font-size: 14px;
  }
  
  .toast-purchase {
      font-size: 13px;
  }

  .toast-content {
      display: flex;
      flex-direction: column;
      gap: 2px;
  }

  .toast-header {
      margin-bottom: 0;
  }

  .toast-location {
      margin-bottom: 2px;
  }
}