#globalToast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: min(92vw, 520px);
  padding: 18px 22px;
  border-radius: 18px;
  color: #fff;
  background: rgba(22, 28, 36, 0.88);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 18px 60px rgba(0,0,0,0.30),
    0 4px 18px rgba(0,0,0,0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: 0.1px;
  opacity: 0;
  visibility: hidden;
  z-index: 999999;
  transition:
    opacity .28s ease,
    transform .28s ease,
    visibility .28s ease,
    background .25s ease;
  pointer-events: none;
}

#globalToast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

#globalToast.success {
  background:
    linear-gradient(135deg, rgba(38, 70, 110, 0.96), rgba(46, 84, 125, 0.94));
}

#globalToast.error {
  background:
    linear-gradient(135deg, rgba(135, 28, 28, 0.97), rgba(170, 40, 40, 0.95));
}

#globalToast.loading {
  background:
    linear-gradient(135deg, rgba(28, 38, 58, 0.97), rgba(46, 84, 125, 0.95));
}

#globalToast .toast-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

#globalToast .toast-spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.28);
  border-top-color: #fff;
  animation: toast-spin 0.8s linear infinite;
  flex: 0 0 20px;
}

#globalToast .toast-text {
  display: block;
}

@keyframes toast-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  #globalToast {
    width: min(92vw, 420px);
    padding: 16px 18px;
    border-radius: 16px;
    font-size: 15px;
  }

  #globalToast .toast-inner {
    gap: 10px;
  }

  #globalToast .toast-spinner {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }
}