.bs-notification-stack {
  position: fixed;
  top: 84px;
  right: 24px;
  z-index: 100000;
  display: flex;
  width: min(390px, calc(100vw - 32px));
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.BSNotification {
  --bs-notification-accent: #43a3ff;
  position: relative;
  overflow: hidden;
  padding: 18px 48px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 4px solid var(--bs-notification-accent);
  border-radius: 14px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(7, 10, 20, 0.82);
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.38),
    0 0 26px color-mix(in srgb, var(--bs-notification-accent) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(140%);
  opacity: 0;
  transform: translateX(18px) translateY(-6px);
  transition: opacity 0.26s ease, transform 0.26s ease;
  pointer-events: auto;
}

.BSNotification.is-visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

.BSNotification.is-closing {
  opacity: 0;
  transform: translateX(20px);
}

.BSNotification::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, color-mix(in srgb, var(--bs-notification-accent) 24%, transparent), transparent 44%);
  pointer-events: none;
}

.BSNotification h2,
.BSNotification p {
  position: relative;
  z-index: 1;
}

.BSNotification h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 900;
}

.BSNotification p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
}

.BSNotification__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.BSNotification__close::before,
.BSNotification__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
}

.BSNotification__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.BSNotification__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.BSNotification__close:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
}

.BSNotification--success {
  --bs-notification-accent: #5ee58a;
}

.BSNotification--error {
  --bs-notification-accent: #ff4d69;
}

.BSNotification--warning {
  --bs-notification-accent: #ffd166;
}

.BSNotification--info {
  --bs-notification-accent: #43a3ff;
}

@media (max-width: 640px) {
  .bs-notification-stack {
    top: 72px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}
