.intan-popup[hidden] {
  display: none;
}

.intan-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  isolation: isolate;
}

.intan-popup__backdrop {
  position: fixed;
  inset: -24px;
  z-index: -2;
  background:
    linear-gradient(rgba(6, 1, 12, .76), rgba(6, 1, 12, .9)),
    url("/assets/intan55-popup.webp") center / cover no-repeat;
  filter: blur(18px);
  transform: scale(1.08);
}

.intan-popup__shade {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(3, 0, 8, .42);
  backdrop-filter: blur(3px);
}

.intan-popup__card {
  position: relative;
  width: min(92vw, 470px);
  overflow: hidden;
  border: 1px solid rgba(201, 121, 255, .68);
  border-radius: 24px;
  background: #0c0612;
  box-shadow:
    0 0 0 1px rgba(255, 196, 74, .12) inset,
    0 24px 80px rgba(0, 0, 0, .72),
    0 0 36px rgba(162, 45, 255, .38);
  animation: intanPopupIn .38s ease-out both;
}

.intan-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(5, 1, 10, .78);
  color: #fff;
  font: 700 24px/1 Arial, sans-serif;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.intan-popup__close:hover {
  background: #7b20b9;
  transform: rotate(90deg);
}

.intan-popup__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.intan-popup__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 15px;
  background:
    radial-gradient(circle at 50% 0, rgba(149, 39, 216, .26), transparent 70%),
    #0c0612;
}

.intan-popup__button {
  display: grid;
  min-height: 50px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font: 800 15px/1 Arial, sans-serif;
  letter-spacing: .08em;
  text-decoration: none;
  transition: transform .2s ease, filter .2s ease;
}

.intan-popup__button:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.intan-popup__button--login {
  border: 1px solid #d986ff;
  background: linear-gradient(180deg, #7821ab, #43105f);
}

.intan-popup__button--register {
  border: 1px solid #ffe082;
  background: linear-gradient(180deg, #ffcc43, #d88205);
  color: #251300;
  box-shadow: 0 0 20px rgba(255, 177, 23, .22);
}

body.intan-popup-open {
  overflow: hidden;
}

@keyframes intanPopupIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 540px) {
  .intan-popup {
    align-items: center;
    padding: 14px;
  }

  .intan-popup__card {
    width: min(94vw, 410px);
    border-radius: 18px;
  }

  .intan-popup__actions {
    gap: 9px;
    padding: 12px;
  }

  .intan-popup__button {
    min-height: 47px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intan-popup__card {
    animation: none;
  }
}
