/* ================= RESET ================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ================= BODY ================= */

body {
  font-family: "Poppins", sans-serif;
  color: #f1f5f9;

  /* background pesantren */
  background:
    linear-gradient(rgba(15, 40, 25, 0.35), rgba(15, 40, 25, 0.45)),
    url("../img/background.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  min-height: 100vh;
}

/* ================= LAYOUT ================= */

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top {
  text-align: center;
  margin-top: 28px;
}

.logo {
  width: 110px;
}

.powered {
  font-size: 13px;
  opacity: 0.85;
  color: #d4d4aa;
}

/* ================= MAIN PANEL ================= */

.panel {
  width: 100%;
  max-width: 980px;
  margin: 25px auto;
  padding: 24px;

  background: rgba(20, 60, 35, 0.22);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-radius: 22px;

  border: 1px solid rgba(212, 175, 55, 0.3);

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(212, 175, 55, 0.15);
}

.panel {
  backdrop-filter: blur(22px) saturate(140%);
}

/* ================= TITLE ================= */

.title {
  text-align: center;
  margin-bottom: 18px;
}

.t1 {
  color: #e6d08a;
  font-weight: 700;
  font-size: 20px;
}

.t2 {
  color: #f5f5dc;
  font-weight: 600;
  font-size: 15px;
}

/* ================= PACKAGE GRID ================= */

.package-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.pkg {
  background: rgba(20, 60, 35, 0.55);

  border-radius: 16px;

  padding: 22px 18px; /* tambah ruang dalam */

  backdrop-filter: blur(10px);

  text-align: center;

  border: 1px solid rgba(212, 175, 55, 0.18);

  min-height: 240px; /* <<< ini bikin box lebih panjang */

  display: flex;
  flex-direction: column;
  justify-content: space-between; /* auto space atas bawah */
}

.pkg h3 {
  color: #e6d08a;

  font-weight: 600;

  font-size: 14px; /* ukuran ideal premium */
  letter-spacing: 0.5px; /* spacing elegan */
  text-transform: uppercase; /* biar konsisten semua */

  margin-bottom: 4px;
}

.price {
  color: #ffd54f; /* GOLD lebih terang */

  font-weight: 800;

  font-size: 30px; /* 🔥 bikin harga dominan */

  margin-top: 6px;
  margin-bottom: 6px;

  letter-spacing: 1px;

  text-shadow:
    0 0 8px rgba(212, 175, 55, 0.4),
    0 0 20px rgba(212, 175, 55, 0.2);
}

.pkg small {
  color: rgba(255, 255, 255, 0.75);
}

.pkg.highlight {
  border: 2px solid #d4af37;
}

/* ================= BUTTONS ================= */

.btn-yellow {
  width: 100%;

  margin-top: 10px;

  padding: 10px;

  border: none;

  border-radius: 10px;

  font-weight: 700;

  background: linear-gradient(#e6d08a, #bfa14a);

  color: #2c2c1a;

  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.btn-red {
  width: 100%;

  max-width: 420px;

  margin: 15px auto 0;

  display: block;

  padding: 12px;

  border-radius: 10px;

  border: none;

  font-weight: 700;

  /* tombol hijau islami */

  background: linear-gradient(#2f6f46, #1e4d30);

  color: #f1f5f9;

  box-shadow: 0 0 20px rgba(47, 111, 70, 0.4);
}

/* ================= FORM BOX ================= */

.voucher-box,
.member-box {
  background: rgba(255, 255, 255, 0.06);

  border-radius: 18px;

  padding: 18px;

  margin-top: 16px;

  backdrop-filter: blur(12px);

  border: 1px solid rgba(255, 255, 255, 0.08);
}

.voucher-title,
.member-title {
  text-align: center;

  font-weight: 600;

  margin-bottom: 12px;

  color: #e6d08a;
}

/* ================= INPUT ================= */

input {
  width: 100%;

  padding: 12px;

  margin-bottom: 10px;

  border-radius: 8px;

  border: none;

  background: rgba(255, 255, 255, 0.9);

  color: #111;

  text-align: center;
}

input::placeholder {
  color: #666;
}

/* ================= NOTE ================= */

.note {
  text-align: center;
  font-size: 11px;
  margin-top: 8px;
  color: #ddd6a5;
}

/* ================= FOOTER ================= */

.footer {
  text-align: center;
  font-size: 12px;
  margin-bottom: 20px;
  color: #d4d4aa;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
  .package-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .panel {
    padding: 16px;
  }

  .logo {
    width: 95px;
  }
}

@media (max-width: 480px) {
  .price {
    font-size: 22px; /* 🔥 ukuran ideal HP */
  }

  .pkg h3 {
    font-size: 13px;
  }
}

.pkg button {
  width: 100%;

  padding: 9px;

  border-radius: 8px;
  border: none;

  font-weight: 600;
  font-size: 13px;

  color: #2c2c1a;

  background: linear-gradient(180deg, #e6d08a, #d4af37);

  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.25);
}

.pkg {
  transition: all 0.25s ease;
}

.pkg:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* ================= HOVER EFFECT FORM ================= */

.voucher-box,
.member-box {
  transition: all 0.25s ease;
}

.voucher-box:hover,
.member-box:hover {
  transform: translateY(-4px);

  box-shadow:
    0 12px 25px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(212, 175, 55, 0.15);

  border: 1px solid rgba(212, 175, 55, 0.35);
}

/* ================= TRIAL BUTTON ================= */

.trial-wrap {
  margin-top: 12px;
  text-align: center;
}

.btn-trial {
  padding: 10px 18px;

  border-radius: 10px;
  border: none;

  font-weight: 600;
  font-size: 13px;

  cursor: pointer;

  color: #2c2c1a;

  background: linear-gradient(180deg, #e6d08a, #d4af37);

  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);

  transition: all 0.25s ease;
}

/* ================= TRIAL PREMIUM BUTTON ================= */

.trial-box {
  text-align: center;
  margin-top: 12px;
}

.trial-btn {
  display: inline-block;

  padding: 10px 18px;

  border-radius: 12px;

  font-weight: 600;
  font-size: 14px;

  text-decoration: none;

  color: #e6d08a;

  border: 1px solid rgba(212, 175, 55, 0.6);

  background: rgba(255, 255, 255, 0.03);

  backdrop-filter: blur(6px);

  transition: all 0.3s ease;
}

/* Hover Premium Effect */
.trial-btn:hover {
  background: rgba(212, 175, 55, 0.08);

  box-shadow: 0 0 18px rgba(212, 175, 55, 0.35);

  transform: translateY(-2px);
}

.popup-error {
  position: fixed !important;

  top: 50% !important;
  left: 50% !important;

  transform: translate(-50%, -50%) scale(0.9);

  z-index: 999999;

  width: 100%;
  height: 100%;

  display: flex;
  justify-content: center;
  align-items: center;

  pointer-events: none;
  opacity: 0;
}

.popup-error.show {
  opacity: 1;
  pointer-events: auto;
}

.popup-error.show .popup-box {
  transform: translate(-50%, -50%) scale(1);
}

.popup-box {
  position: fixed;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%) scale(0.8);

  background: rgba(20, 60, 35, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.4);

  border-radius: 14px;
  padding: 25px;

  text-align: center;

  max-width: 320px;
  width: 90%;

  transition: 0.3s ease;
}

.popup-box button {
  all: unset; /* reset semua style bawaan */

  display: inline-block;

  background: linear-gradient(#e6d08a, #d4af37);
  color: #2c2c1a;

  padding: 10px 22px;
  border-radius: 10px;

  font-weight: 600;
  cursor: pointer;

  margin-top: 10px;

  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);

  transition: 0.25s;
}

.popup-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.45);
}
