.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;
  max-height: calc(100vh - 40px);
  overflow-y: hidden;
}

.toast {
  background-color: #333;
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  min-width: 250px;
  max-width: 400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  pointer-events: auto;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast.purchase {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.toast.purchase .toast-close {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-left: 12px;
  font-size: 16px;
  opacity: 0.9;
}

.toast.purchase .toast-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.toast.purchase span {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.toast.purchase::before {
  content: "🎟️";
  font-size: 20px;
  margin-right: 8px;
  text-shadow: none;
}

.toast.success {
  background-color: #4caf50;
  border-left: 4px solid #2e7d32;
}

.toast.error {
  background-color: #f44336;
  border-left: 4px solid #c62828;
}

.toast.info {
  background-color: #2196f3;
  border-left: 4px solid #1976d2;
}

.toast.warning {
  background-color: #ff9800;
  border-left: 4px solid #f57c00;
}

.toast-close {
  background: transparent;
  border: none;
  color: white;
  padding: 0 5px;
  margin-left: 10px;
  cursor: pointer;
  font-size: 18px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

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

@keyframes fadeOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}
