.toast-overlay {
  position: fixed;
  z-index: 9999;
  width: 100%;
  height: auto;
  top: 20px;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.toast {
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background-color: rgba(var(--vlr-surface-panel-rgb), 0.55);
  border: 1px solid rgba(var(--vlr-surface-rgb), 0.125);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(var(--vlr-shadow-rgb), 0.25);
  color: rgb(var(--vlr-surface-rgb));
  padding: 20px 25px;
  margin-right: 20px;
  min-width: 320px;
  max-width: 400px;
  opacity: 0;
  transform: translateX(120%) scale(0.98);
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.6s ease-in-out;
  pointer-events: auto;
  position: relative;
  overflow: hidden;
}

.toast.show {
  opacity: 1;
  transform: translateX(0%) scale(1);
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1),
            opacity 0.6s ease-in-out;
}

.toast.hide {
  opacity: 0;
  transform: translateX(120%) scale(0.98);
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.6s ease-in-out;
}

.toast i.closetoast {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 16px;
  color: rgba(var(--vlr-surface-rgb), 0.6);
  cursor: pointer;
  transition: color 0.2s ease;
}

.toast i.closetoast:hover {
  color: rgba(var(--vlr-surface-rgb), 0.9);
}

.toast h1 {
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 600;
}

.toast span {
  font-size: 13px;
  line-height: 1.4;
  color: var(--vlr-text-muted);
}

.vlr-flex-toast {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.vlr-flex-top-toast {
  display: flex;
  flex-direction: column;
}
.top-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translate(-50%, -150%) scale(0.98);
  min-width: 200px;
  max-width: 300px;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background-color: rgba(var(--vlr-surface-panel-rgb), 0.55);
  border: 1px solid rgba(var(--vlr-surface-rgb), 0.125);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(var(--vlr-shadow-rgb), 0.25);
  color: rgb(var(--vlr-surface-rgb));
  padding: 12px 18px;
  font-size: 10px;
  display: flex;
  flex-direction: column;
  z-index: 9999;
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.4s ease-in-out;
}

.top-toast.top-toast-show {
  opacity: 1;
  transform: translate(-50%, 0%) scale(1);
}
.top-toast i.closetoast {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 16px;
  color: rgba(var(--vlr-surface-rgb), 0.6);
  cursor: pointer;
  transition: color 0.2s ease;
}

.top-toast i.closetoast:hover {
  color: rgba(var(--vlr-surface-rgb), 0.9);
}

.top-toast h1 {
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 600;
  text-align: center;
}

.top-toast span {
  font-size: 13px;
  line-height: 1.4;
  color: var(--vlr-text-muted);
  text-align: center;
}

.top-toast-hidden {
  display: none;
  transform: translateY(120%) scale(0.98);
}