.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-width: 280px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.12);
  animation: toastIn 0.22s ease;
  pointer-events: auto;
}

.toast--success {
  background: #15803d;
}

.toast--error {
  background: #dc2626;
}

.toast--warning {
  background: #d97706;
}

.toast--info {
  background: #111827;
}

.toast-close {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.75;
  font-size: 14px;
  transition: opacity 0.15s ease;
}

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

.toast-hide {
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .toast-container {
    top: 16px;
    bottom: auto;
    left: 16px;
    right: 16px;
    align-items: center;
  }

  .toast {
    width: auto;
    min-width: 0;
    max-width: 420px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 12px;
    gap: 10px;
  }

  .toast-close {
    flex: 0 0 auto;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .toast-container {
    top: 12px;
    left: 12px;
    right: 12px;
  }

  .toast {
    width: 100%;
    max-width: 100%;
    padding: 11px 13px;
    border-radius: 11px;
    font-size: 12px;
    line-height: 1.4;
  }
}

@media (max-width: 360px) {
  .toast-container {
    top: 10px;
    left: 10px;
    right: 10px;
  }

  .toast {
    padding: 10px 12px;
    font-size: 11px;
    gap: 8px;
  }

  .toast-close {
    font-size: 12px;
  }
}


