/* ============================================================
   THEME - nur berisi aturan yang benar-benar dipakai halaman:
   reset, body/background, canvas FX, popup modal, scrollbar.

   Semua aturan layout (header, gallery, PDP, footer, FAQ) ada di
   sam-authentic.css. File ini sengaja dibuat kecil supaya:
   - tidak render-blocking berat di HP
   - "Kecilkan CSS" di Lighthouse jadi hijau
   ============================================================ */

:root {
  --primary: #3B2AC9;
  --accent:  #F83BD5;
  --cyan:    #48CAE4;
  --green:   #6A994E;
  --deep:    #1a1a1a;
  --glass:   rgba(255, 255, 255, .06);
  --glass-2: rgba(255, 255, 255, .10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(59, 42, 201, .40), transparent 62%),
    radial-gradient(ellipse 70% 45% at 8% 22%, rgba(248, 59, 213, .16), transparent 60%),
    radial-gradient(ellipse 75% 50% at 95% 78%, rgba(72, 202, 228, .14), transparent 62%),
    linear-gradient(168deg, #07060f 0%, #0d0a1c 42%, #05040c 100%);
  /* background-attachment: fixed = repaint seluruh viewport tiap scroll.
     Di HP itu mahal sekali. Gradiennya besar, jadi scroll hampir sama saja. */
  background-attachment: scroll;
  color: #f8fafc;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- Skip link (keyboard / agent) ----------
   Tersembunyi sampai difokus, lalu melompat ke konten utama. */
.sam-skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 0 0 12px 0;
  transform: translateY(-120%);
  transition: transform .2s ease;
}

.sam-skip-link:focus {
  transform: translateY(0);
}

/* ---------- Canvas FX (grid petir + hujan) ---------- */
#fxCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   POPUP MODAL - SLOT GACOR
   ============================================================ */

.login-slot-gacor {
  margin: 0;
  padding: 0;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  background: transparent;
  color: #eafcff;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    radial-gradient(circle at 20% 20%, rgba(72, 202, 228, .22), transparent 32%),
    radial-gradient(circle at 80% 85%, rgba(106, 153, 78, .25), transparent 34%),
    rgba(3, 7, 18, .72);
  /* backdrop-filter: blur() di overlay full-screen = mahal di HP (blur
     seluruh viewport tiap frame). Overlay ini diam, jadi blur di layer
     scroll lebih hemat - hasilnya hampir identik. */
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.popup-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.popup-container {
  position: relative;
  width: min(92vw, 430px);
  border-radius: 28px;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .035)),
    linear-gradient(145deg, #07111f 0%, var(--primary) 50%, #050912 100%);
  border: 1px solid rgba(72, 202, 228, .42);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, .70),
    0 0 0 1px rgba(255, 255, 255, .05) inset,
    0 0 42px rgba(72, 202, 228, .18);
  animation: popupRise .65s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes popupRise {
  0%   { opacity: 0; transform: translateY(34px) scale(.92); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.popup-container:before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .08);
  pointer-events: none;
  z-index: 4;
}

/* Border mewah */
.luxury-border {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  pointer-events: none;
  z-index: 6;
  background:
    linear-gradient(90deg, transparent, rgba(72, 202, 228, .38), transparent) top / 100% 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(106, 153, 78, .38), transparent) bottom / 100% 1px no-repeat;
}

/* Konten popup */
.popup-body {
  position: relative;
  z-index: 3;
}

/* Wrapper <picture> harus block, kalau inline ada baseline gap di bawah
   gambar yang bikin 1-2px shift saat popup muncul. */
.popup-body picture {
  display: block;
  line-height: 0;
}

.popup-image {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-bottom: 1px solid rgba(72, 202, 228, .28);
}

.clk-btn-sgp {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  padding: 18px 18px 10px;
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 900;
}

.clk-btn-sgp:before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 76%;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--accent), var(--primary), transparent);
  opacity: .85;
}

.clk-btn-sgp a {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 15px 12px;
  border-radius: 16px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 15px;
  isolation: isolate;
  transition: .28s ease;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .35);
}

.clk-btn-sgp a:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .20), transparent 70%);
  transform: translateX(-120%);
  transition: .45s ease;
  z-index: -1;
}

.clk-btn-sgp a:hover:before { transform: translateX(120%); }
.clk-btn-sgp a:hover { transform: translateY(-5px); }

.clk-btn-sgp a.login {
  color: #eafcff !important;
  background: linear-gradient(145deg, var(--accent), var(--primary));
  border: 1px solid rgba(72, 202, 228, .75);
}

.clk-btn-sgp a.login:hover {
  color: #ffffff !important;
  border-color: var(--accent);
  box-shadow: 0 16px 28px rgba(0, 0, 0, .42), 0 0 22px rgba(72, 202, 228, .30);
}

.clk-btn-sgp a.register {
  color: #061018 !important;
  background: linear-gradient(145deg, var(--accent), var(--primary));
  border: 1px solid rgba(255, 255, 255, .22);
}

.clk-btn-sgp a.register:hover {
  color: #000000 !important;
  box-shadow: 0 16px 28px rgba(0, 0, 0, .42), 0 0 24px rgba(106, 153, 78, .38);
}

/* Footer popup */
.popup-footer {
  position: relative;
  z-index: 7;
  margin: 8px 18px 20px;
  padding: 16px 14px;
  border-radius: 18px;
  color: #dff9ff;
  font-size: 13px;
  line-height: 1.65;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .20) inset;
}

.popup-footer span {
  color: #8fe36f !important;
  font-weight: 800 !important;
  text-shadow: 0 0 12px rgba(106, 153, 78, .42) !important;
}

@media (max-width: 480px) {
  .popup-overlay { padding: 12px; }
  .popup-container { width: 95vw; border-radius: 22px; }
  .popup-container:before { inset: 9px; border-radius: 18px; }
  .clk-btn-sgp { grid-template-columns: 1fr; padding: 15px 15px 8px; gap: 10px; }
  .clk-btn-sgp a { min-height: 50px; font-size: 14px; }
  .popup-footer { margin: 8px 15px 17px; font-size: 12px; }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .04);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--primary));
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent), var(--cyan));
  background-clip: padding-box;
}

/* ============================================================
   HORMATI PREFERENSI REDUCED MOTION
   Mematikan semua animasi dekoratif (popup, partikel, sheen).
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
