.toast_cntr {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: none;
}

.toast {
  pointer-events: all;
  position: relative;
  overflow: hidden;
  min-width: 320px;
  max-width: 420px;
  padding: 16px 18px 16px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--color-DLBG) 0%, var(--color-LBG) 100%);
  border: 1px solid var(--color-LGrayStroke);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-30px) scale(0.96);
  opacity: 0;
  animation: toastIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.toast.hide {
  animation: toastOut 0.28s ease forwards;
}

.toast::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  pointer-events: none;
}

.toast_icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 18px rgba(255,255,255,0.04);
}

.toast_icon svg {
  width: 22px;
  height: 22px;
}

.toast_content {
  flex: 1;
  min-width: 0;
}

.toast_title {
  font-size: 15px;
  font-family: Dana_Bold, sans-serif;
  color: var(--color-White);
  margin-bottom: 4px;
  line-height: 1.7;
}

.toast_text {
  font-size: 13px;
  color: var(--color-DWhite);
  opacity: 0.9;
  line-height: 1.9;
  word-break: break-word;
}

.toast_close {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-DWhite);
  opacity: 0.7;
  cursor: pointer;
  transition: var(--trans);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
}

.toast_close:hover {
  opacity: 1;
  background: rgba(255,255,255,0.04);
  border-color: var(--color-GrayStroke);
  transform: scale(1.06);
}

.toast_progress {
  position: absolute;
  right: 14px;
  left: 14px;
  bottom: 8px;
  height: 3px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}

.toast_progress span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  transform-origin: right;
  animation: toastProgress linear forwards;
}

/* حالت‌ها */
.toast.success {
  border-right: 3px solid #36d399;
}

.toast.success .toast_icon {
  background: rgba(54, 211, 153, 0.12);
  color: #36d399;
  box-shadow: 0 0 25px rgba(54, 211, 153, 0.08);
}

.toast.success .toast_progress span {
  background: linear-gradient(to left, #36d399, #7fffd4);
}

.toast.error {
  border-right: 3px solid #ff5d73;
}

.toast.error .toast_icon {
  background: rgba(255, 93, 115, 0.12);
  color: #ff5d73;
  box-shadow: 0 0 25px rgba(255, 93, 115, 0.08);
}

.toast.error .toast_progress span {
  background: linear-gradient(to left, #ff5d73, #ff8ca0);
}

.toast.warning {
  border-right: 3px solid #ffb84d;
}

.toast.warning .toast_icon {
  background: rgba(255, 184, 77, 0.12);
  color: #ffb84d;
  box-shadow: 0 0 25px rgba(255, 184, 77, 0.08);
}

.toast.warning .toast_progress span {
  background: linear-gradient(to left, #ffb84d, #ffd089);
}

.toast.info {
  border-right: 3px solid var(--color-LPurple);
}

.toast.info .toast_icon {
  background: rgba(130, 119, 255, 0.12);
  color: var(--color-LPurple);
  box-shadow: 0 0 25px rgba(130, 119, 255, 0.12);
}

.toast.info .toast_progress span {
  background: linear-gradient(to left, var(--color-LPurple), #b4acff);
}

/* انیمیشن */
@keyframes toastIn {
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes toastOut {
  to {
    transform: translateX(-25px) scale(0.96);
    opacity: 0;
  }
}

@keyframes toastProgress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

/* موبایل */
@media (max-width: 768px) {
  .toast_cntr {
    top: 20px;
    left: 12px;
    right: 12px;
  }

  .toast {
    min-width: unset;
    max-width: unset;
    width: 100%;
    border-radius: 18px;
  }
}
