/* Popup HOPENGTOTO mandiri — tidak mengubah layout toko lama */
#hgt-popup-overlay,
#hgt-popup-overlay * { box-sizing: border-box; }

#hgt-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 8, 15, .82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s ease, visibility .24s ease;
}

#hgt-popup-overlay.hgt-popup-show {
  opacity: 1;
  visibility: visible;
}

#hgt-popup-overlay.hgt-popup-hide { display: none; }

.hgt-popup-card {
  position: relative;
  width: min(94vw, 430px);
  max-height: calc(100vh - 28px);
  overflow: auto;
  border: 1px solid #d8a83d;
  border-radius: 18px;
  background: #05070b;
  box-shadow: 0 24px 80px rgba(0,0,0,.72), 0 0 32px rgba(242,190,73,.20);
  transform: scale(.94) translateY(14px);
  transition: transform .28s ease;
  scrollbar-width: thin;
}

#hgt-popup-overlay.hgt-popup-show .hgt-popup-card {
  transform: scale(1) translateY(0);
}

.hgt-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 50%;
  background: rgba(4,6,10,.86);
  color: #fff;
  font: 400 26px/31px Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,.45);
}

.hgt-popup-close:hover { background: #bd2626; }

.hgt-popup-banner {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 17px 17px 0 0;
  background: #111;
}

.hgt-popup-body {
  padding: 22px 20px 20px;
  background: linear-gradient(180deg, #07090e 0%, #040508 100%);
}

.hgt-popup-buttons {
  display: grid;
  gap: 14px;
}

.hgt-popup-btn {
  display: flex;
  min-height: 59px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8a83d;
  border-radius: 999px;
  text-decoration: none;
  font: 800 17px/1 Arial, sans-serif;
  letter-spacing: 2px;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.hgt-popup-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.hgt-popup-login {
  color: #f4c75b;
  background: #07101a;
  box-shadow: inset 0 0 0 1px rgba(244,199,91,.10);
}

.hgt-popup-register {
  color: #07101a;
  background: linear-gradient(135deg, #ffe28a, #d99e27);
  box-shadow: 0 8px 24px rgba(217,158,39,.24);
}

.hgt-popup-note {
  margin: 17px 4px 0;
  color: #aeb7c4;
  font: 12px/1.55 Arial, sans-serif;
  text-align: center;
}

.hgt-popup-footer {
  margin: 10px 0 0;
  color: #d8a83d;
  font: 700 11px/1.4 Arial, sans-serif;
  letter-spacing: .5px;
  text-align: center;
}

body.hgt-popup-lock { overflow: hidden !important; }

@media (max-width: 480px) {
  #hgt-popup-overlay { padding: 10px; align-items: center; }
  .hgt-popup-card { width: min(96vw, 410px); max-height: calc(100vh - 20px); border-radius: 15px; }
  .hgt-popup-banner { border-radius: 14px 14px 0 0; }
  .hgt-popup-body { padding: 18px 15px 17px; }
  .hgt-popup-btn { min-height: 55px; font-size: 16px; }
}
