.nexacore-toast-host {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  box-sizing: border-box;
  place-items: center;
  padding: 0;
  pointer-events: none;
}

.nexacore-toast-host[hidden] {
  display: none !important;
}

.nexacore-toast {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  overflow: hidden;
  box-sizing: border-box;
  padding: 30px 28px 26px;
  border: 1px solid rgba(47, 84, 235, 0.22);
  border-radius: 16px;
  background: #fbfbfd;
  color: #001f4d;
  box-shadow: 0 18px 50px rgba(0, 31, 77, 0.24);
  font-family: Roboto, Arial, sans-serif;
  text-align: center;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: auto;
}

.nexacore-toast::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, #8a5a00 0%, #ffd76a 48%, #b77900 100%);
  content: "";
}

.nexacore-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.nexacore-toast-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 50%;
  background: #2f54eb;
  color: #fff;
  box-shadow: 0 7px 18px rgba(47, 84, 235, 0.26);
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
}

.nexacore-toast.is-error .nexacore-toast-icon {
  background: linear-gradient(135deg, #8a5a00 0%, #e7ac21 100%);
  color: #211500;
}

.nexacore-toast-title {
  margin: 0 28px 8px;
  color: #001f4d;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.25;
}

.nexacore-toast-message {
  margin: 0;
  color: #40506a;
  font-size: 15px;
  line-height: 1.55;
}

.nexacore-toast-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(47, 84, 235, 0.08);
  color: #2f54eb;
  cursor: pointer;
  font: 700 20px/1 Arial, sans-serif;
}

.nexacore-toast-close:hover,
.nexacore-toast-close:focus-visible {
  background: rgba(47, 84, 235, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  .nexacore-toast {
    transition: none;
  }
}
