#toast-container {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 9999;
  display: grid;
  gap: 12px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.toast-notif {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 32px;
  gap: 12px;
  align-items: center;
  overflow: hidden;
  padding: 14px;
  border: 1px solid #27272a;
  border-radius: 14px;
  background: #121215;
  color: #fafafa;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  animation: toast-in 0.28s ease-out;
}

.toast-notif.success {
  border-color: rgba(34, 197, 94, 0.45);
}

.toast-notif.error {
  border-color: rgba(248, 113, 113, 0.5);
}

.toast-icon-circle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  color: #09090b;
  background: #a78bfa;
}

.toast-notif.success .toast-icon-circle {
  background: #22c55e;
}

.toast-notif.error .toast-icon-circle {
  background: #f87171;
}

.toast-body {
  min-width: 0;
}

.toast-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.toast-msg {
  margin: 4px 0 0;
  color: #a1a1aa;
  font-size: 12px;
  line-height: 1.45;
}

.toast-close-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #a1a1aa;
  cursor: pointer;
}

.toast-close-btn:hover {
  background: #18181b;
  color: #fafafa;
}

.toast-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: #a78bfa;
  transform-origin: left;
  animation: toast-progress 4s linear forwards;
}

.toast-notif.success .toast-progress {
  background: #22c55e;
}

.toast-notif.error .toast-progress {
  background: #f87171;
}

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

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-progress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@media (max-width: 767px) {
  #toast-container {
    left: 16px;
    right: 16px;
    bottom: 82px;
    width: auto;
  }
}