
/* OVERLAY */
#pm88-popup,
#pm88-popup * {
  box-sizing: border-box;
}

#pm88-popup {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity .3s ease;
}

#pm88-popup.pm88-show {
  display: flex;
  opacity: 1;
}

/* BOX POPUP */
#pm88-popup .pm88-box {
  position: relative;
  width: 100%;
  max-width: 450px;
  max-height: calc(100dvh - 30px);
  border: 2px solid #D4AF37;
  border-radius: 18px;
  background: #350608;
  box-shadow:
    0 0 30px rgba(255,190,50,.4),
    0 20px 60px rgba(0,0,0,.7);
  transform: translateY(30px) scale(.9);
  transition: transform .4s ease;
}

#pm88-popup.pm88-show .pm88-box {
  transform: translateY(0) scale(1);
}

/* TOMBOL CLOSE */
#pm88-popup .pm88-close {
  position: absolute;
  top: -15px;
  right: -12px;
  z-index: 2;
  width: 37px;
  height: 37px;
  border: 2px solid #ffd777;
  border-radius: 50%;
  background: #3A6073;
  color: #fff;
  font: 700 24px Arial,sans-serif;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 12px rgba(0,0,0,.5);
  transition: .25s;
}

#pm88-popup .pm88-close:hover {
  background: #D4AF37;
  color: #350608;
  transform: rotate(90deg);
}

/* BANNER GAMBAR */
#pm88-popup .pm88-banner {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 125px);
  height: auto;
  object-fit: contain;
  border-radius: 15px 15px 0 0;
}

/* AREA TOMBOL */
#pm88-popup .pm88-buttons {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: #350608;
  border-radius: 0 0 16px 16px;
}

/* TOMBOL LOGIN & DAFTAR */
#pm88-popup .pm88-login,
#pm88-popup .pm88-daftar {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 14px 8px;
  border-radius: 10px;
  font: 800 15px Arial,sans-serif;
  text-decoration: none !important;
  text-align: center;
  transition: transform .25s,box-shadow .25s;
}

/* LOGIN MERAH */
#pm88-popup .pm88-login {
  color: #fff !important;
  background: linear-gradient(
    135deg,#850810,#10B981
  );
  border: 1px solid #ff7b85;
  box-shadow: 0 4px 12px rgba(255,0,0,.3);
}

/* DAFTAR EMAS */
#pm88-popup .pm88-daftar {
  color: #361700 !important;
  background: linear-gradient(
    135deg,#b67c20,#10B981,#d49c33
  );
  border: 1px solid #ffe9aa;
  box-shadow: 0 4px 12px rgba(255,200,50,.3);
}

/* EFEK HOVER */
#pm88-popup .pm88-login:hover,
#pm88-popup .pm88-daftar:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255,190,50,.4);
}

/* RESPONSIVE MOBILE */
@media (max-width:480px) {
  #pm88-popup .pm88-box {
    max-width: 350px;
  }

  #pm88-popup .pm88-buttons {
    gap: 8px;
    padding: 9px;
  }

  #pm88-popup .pm88-login,
  #pm88-popup .pm88-daftar {
    font-size: 13px;
    padding: 12px 6px;
  }
}

@media (prefers-reduced-motion:reduce) {
  #pm88-popup,
  #pm88-popup * {
    transition: none !important;
  }
}
