/* Modal login / daftar SafarPedia — dipakai di semua halaman (inject + popup) */
body.auth-modal-open {
  overflow: hidden;
}
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 1.25rem 1rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}
.auth-modal-backdrop.hidden {
  display: none !important;
}
.auth-modal-shell {
  width: 100%;
  max-width: 28rem;
  max-height: min(92vh, 720px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, rgba(28, 26, 24, 0.98), rgba(12, 11, 10, 0.99));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.55) rgba(0, 0, 0, 0.35);
}
.auth-modal-shell::-webkit-scrollbar {
  width: 7px;
}
.auth-modal-shell::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 9999px;
  margin: 10px 0;
}
.auth-modal-shell::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(232, 197, 71, 0.65), rgba(184, 150, 12, 0.55));
  border-radius: 9999px;
}
.auth-modal-shell::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(244, 228, 188, 0.75), rgba(212, 175, 55, 0.65));
}
.auth-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 248, 230, 0.85);
  cursor: pointer;
  transition: background 0.15s;
}
.auth-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
}
