:root {
  --popup-z-index: 999990;
  --popup-backdrop-bg: rgba(9, 13, 22, 0.5);
  --popup-backdrop-blur: 4px;
}
body.popup-scroll-locked {
  overflow: hidden !important;
}
.popup-engine-portal {
  position: relative;
  z-index: var(--popup-z-index);
}
.popup-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--popup-backdrop-bg);
  backdrop-filter: blur(var(--popup-backdrop-blur));
  -webkit-backdrop-filter: blur(var(--popup-backdrop-blur));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.popup-card {
  box-sizing: border-box;
  position: fixed;
  max-width: 92vw;
  outline: none;
  overflow: hidden;
  pointer-events: auto;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}
.popup-card * {
  box-sizing: border-box;
}
.popup-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: currentColor;
  font-size: 20px;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.6;
}
.popup-close-btn:hover {
  opacity: 1;
  transform: rotate(90deg);
}
.popup-pos-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.popup-pos-top-right {
  top: 24px;
  right: 24px;
  bottom: auto;
  left: auto;
}
.popup-pos-bottom-right {
  bottom: 24px;
  right: 24px;
  top: auto;
  left: auto;
}
.popup-pos-top-left {
  top: 24px;
  left: 24px;
  bottom: auto;
  right: auto;
}
.popup-pos-bottom-left {
  bottom: 24px;
  left: 24px;
  top: auto;
  right: auto;
}
.popup-pos-top {
  top: 0;
  left: 0;
  right: 0;
}
.popup-pos-bottom {
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
}
.popup-layout-modal {
  width: 500px;
}
.popup-layout-raw {
  width: auto !important;
  max-width: 95vw !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
.popup-layout-raw .popup-close-btn {
  display: none !important;
}
.popup-layout-fullscreen {
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
}
.popup-layout-floating {
  width: auto;
}
.popup-layout-banner {
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  border-radius: 0 !important;
}
.popup-banner-top {
  top: 0;
}
.popup-banner-bottom {
  bottom: 0;
}
.popup-components-container {
  display: block;
}
@keyframes popupFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes popupFadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}
.popup-anim-fade-in {
  animation: popupFadeIn 0.3s forwards cubic-bezier(0.16, 1, 0.3, 1);
}
.popup-anim-fade-out {
  animation: popupFadeOut 0.2s forwards cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-reduced-motion: reduce) {
  .popup-card,
  .popup-backdrop {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
