/* RESET DEFAULT STYLES */

* {
  margin: 0;

  padding: 0;

  box-sizing: border-box;

  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #0b0e14; /* Dark blue/black gaming background */

  color: #ffffff;

  min-height: 100vh;
}

/* NAVBAR */

nav {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 20px 8%;

  background-color: #111622;

  border-bottom: 1px solid #1f2638;
}

.logo {
  font-size: 24px;

  font-weight: 800;

  letter-spacing: 1px;

  color: #ffffff;
}

.logo span {
  color: #00d2ff; /* Cyan accent for .APPS */
}

nav ul {
  display: flex;

  list-style: none;

  gap: 25px;
}

nav ul li a {
  color: #8b949e;

  text-decoration: none;

  font-weight: 600;

  font-size: 15px;

  transition: 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  color: #00d2ff;
}

/* CONTAINER UTAMA */

.container {
  max-width: 1200px;

  margin: 40px auto;

  padding: 0 20px;
}

/* HERO SLIDER BANNER */

.hero-slider {
  background: transparent !important;

  border: none !important;

  padding: 0px;

  margin-bottom: 30px;

  position: relative;

  aspect-ratio: 16 / 5;

  min-height: 280px;

  display: flex;

  align-items: center;
}

.hero-slider h1 {
  display: none !important;
}

.hero-slider p {
  display: none !important;
}

.btn-promo {
  display: none !important;
}

.slider-dots {
  display: none !important;
}

.slider-dots .dot,
.hero-slider .slider-dots .dot,
.hero-slider .slider-dots .dot.active {
  display: none !important;
}

.hero-slider .slide {
  opacity: 0;

  transition: opacity 1s ease-in-out;

  background-size: 100% 100% !important;

  background-repeat: no-repeat !important;

  background-position: center !important;
}

.hero-slider .slide.active {
  opacity: 1;
}

.hero-slider .slide::before {
  content: "";

  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  background: transparent !important;
}

/* SPLIT LAYOUT DESKTOP (Default 3 Kolom) */

.split-layout {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

  gap: 25px;

  margin-bottom: 30px;
}

.card-panel {
  background-color: #111622;

  border: 1px solid #1f2638;

  border-radius: 16px;

  padding: 25px;

  display: flex;

  flex-direction: column;
}

/* HIGHLIGHT BORDERS */

.title-left-blue {
  border-left: 4px solid #0076ff;

  padding-left: 10px;

  font-size: 18px;

  margin-bottom: 20px;
}

.title-left-green {
  border-left: 4px solid #2ea043;

  padding-left: 10px;

  font-size: 18px;

  margin-bottom: 20px;
}

.title-left-orange {
  border-left: 4px solid #ff7b00;

  padding-left: 10px;

  font-size: 18px;

  margin-bottom: 20px;
}

/* MINI GRID PRODUK */

.mini-grid-produk {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 12px;

  margin: 15px 0;

  flex-grow: 1;
}

.card-mini-link {
  text-decoration: none;

  transition: transform 0.2s ease;

  width: 100%;
}

.card-mini-link:hover {
  transform: translateY(-3px);
}

.card-mini {
  background-color: #0b0e14;

  border: 1px solid #1f2638;

  padding: 0px;

  border-radius: 12px;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  align-items: center;

  height: 110px;

  overflow: hidden;

  transition: border-color 0.2s;
}

.card-mini-link:hover .card-mini {
  border-color: #00d2ff;
}

.img-produk-mini {
  width: 100%;

  height: 75px;

  object-fit: cover;

  object-position: center;

  border-top-left-radius: 11px;

  border-top-right-radius: 11px;

  background-color: #111622;

  display: block;
}

.nama-produk-mini {
  font-size: 11px;

  font-weight: 600;

  color: #ffffff;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

  width: 100%;

  text-align: center;

  padding: 4px 8px 8px 8px;
}

.desc-card {
  font-size: 13px;

  color: #8b949e;

  margin-bottom: 20px;
}

.btn-lihat-semua {
  display: block;

  text-align: center;

  color: white;

  text-decoration: none;

  padding: 11px 24px;

  border-radius: 8px;

  font-weight: 600;

  font-size: 13px;

  border: 1px solid rgba(255, 255, 255, 0.1);

  margin-top: auto;
}

.card-panel:nth-child(1) .btn-lihat-semua {
  background-color: #0076ff;
}

.card-panel:nth-child(2) .btn-lihat-semua {
  background-color: #2ea043;
}

/* STATUS SERVER */

.card-promo-diskon {
  background: linear-gradient(135deg, #161f32 0%, #0b0e14 100%);

  display: flex;

  flex-direction: column;

  justify-content: space-between;
}

.desc-card-promo {
  font-size: 14px;

  color: #8b949e;

  line-height: 1.6;
}

.status-server-container {
  display: flex;

  flex-direction: column;

  gap: 12px;

  margin-top: 15px;
}

.status-item {
  background-color: #0b0e14;

  border: 1px solid #1f2638;

  border-radius: 10px;

  padding: 12px 16px;

  display: flex;

  justify-content: space-between;

  align-items: center;

  transition: 0.2s ease;
}

.status-item:hover {
  border-color: #2a354d;
}

.status-info {
  display: flex;

  flex-direction: column;

  gap: 2px;
}

.status-label {
  font-size: 14px;

  font-weight: 600;

  color: #ffffff;
}

.status-desc {
  font-size: 11px;

  color: #8b949e;
}

.status-indicator {
  display: flex;

  align-items: center;

  gap: 8px;
}

.status-text {
  font-size: 12px;

  font-weight: 700;

  letter-spacing: 0.5px;
}

.status-text.green {
  color: #2ea043;
}

.pulse-dot {
  width: 8px;

  height: 8px;

  border-radius: 50%;

  position: relative;
}

.pulse-dot.green {
  background-color: #2ea043;
}

.pulse-dot.green::after {
  content: "";

  width: 100%;

  height: 100%;

  border-radius: 50%;

  background-color: #2ea043;

  position: absolute;

  top: 0;

  left: 0;

  animation: statusPulse 1.8s infinite ease-in-out;
}

@keyframes statusPulse {
  0% {
    transform: scale(1);

    opacity: 0.8;
  }

  100% {
    transform: scale(2.8);

    opacity: 0;
  }
}

/* GRID PRODUK HALAMAN SUB-MENU */

.grid-produk {
  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));

  gap: 20px;
}

.card-produk {
  background: #111622;

  border: 1px solid #1f2638;

  border-radius: 14px;

  padding: 20px;

  text-align: center;

  transition: 0.3s;
}

.card-produk:hover {
  border-color: #00d2ff;

  box-shadow: 0 0 15px rgba(0, 210, 255, 0.15);
}

.card-produk img {
  width: 100%;

  height: 120px;

  object-fit: cover;

  object-position: center;

  border-radius: 12px;

  margin-bottom: 15px;

  background-color: #0b0e14;

  padding: 0px;
}

.card-produk h3 {
  font-size: 15px;

  margin-bottom: 8px;

  font-weight: 600;
}

.card-produk .harga {
  color: #00d2ff;

  font-weight: 700;

  margin-bottom: 15px;

  font-size: 14px;
}

.btn-beli {
  display: block;

  background-color: #1f2638;

  color: #00d2ff;

  text-decoration: none;

  padding: 10px;

  border-radius: 8px;

  font-weight: 600;

  font-size: 13px;

  border: 1px solid #2a354d;

  transition: 0.3s;
}

.btn-beli:hover {
  background-color: #00d2ff;

  color: #0b0e14;

  border-color: #00d2ff;
}

/* FAQ STYLES */

.title-blue-neon {
  font-size: 20px;

  margin-bottom: 15px;
}

.faq-item {
  border-bottom: 1px solid #1f2638;

  padding: 15px 0;
}

.faq-toggle {
  width: 100%;

  background: none;

  border: none;

  color: white;

  text-align: left;

  font-size: 15px;

  font-weight: 600;

  cursor: pointer;

  display: flex;

  justify-content: space-between;

  align-items: center;
}

.faq-answer {
  display: none;

  padding-top: 12px;

  color: #8b949e;

  font-size: 13.5px;

  line-height: 1.6;
}

.btn-wa-faq {
  display: inline-block;

  background: linear-gradient(135deg, #25d366, #1cbd55);

  color: white;

  text-decoration: none;

  padding: 12px 24px;

  border-radius: 8px;

  font-weight: bold;

  margin-top: 25px;

  font-size: 14px;
}

/* PAYMENT BADGES */

.payment-grid {
  display: flex;

  flex-wrap: wrap;

  gap: 12px;

  margin-top: 20px;
}

.badge-pay {
  background-color: #1a2233;

  border: 1px solid #2a354d;

  padding: 10px 18px;

  border-radius: 8px;

  font-size: 12px;

  font-weight: bold;

  letter-spacing: 0.5px;

  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

  cursor: pointer;
}

.badge-pay[data-pay="dana"] {
  color: #ffffff;

  background-color: #0086e6;

  border-color: #00a2ff;

  box-shadow: 0 0 18px rgba(0, 134, 230, 0.7);
}

.badge-pay[data-pay="gopay"] {
  color: #ffffff;

  background-color: #00b14f;

  border-color: #10e069;

  box-shadow: 0 0 18px rgba(0, 177, 79, 0.7);
}

.badge-pay[data-pay="ovo"] {
  color: #ffffff;

  background-color: #4c2a86;

  border-color: #8d53eb;

  box-shadow: 0 0 18px rgba(141, 83, 235, 0.7);
}

.badge-pay[data-pay="spay"] {
  color: #ffffff;

  background-color: #ee4d2d;

  border-color: #ff6d4e;

  box-shadow: 0 0 18px rgba(238, 77, 45, 0.7);
}

.badge-pay[data-pay="bca"] {
  color: #ffffff;

  background-color: #0056a3;

  border-color: #218fff;

  box-shadow: 0 0 18px rgba(33, 143, 255, 0.7);
}

.badge-pay[data-pay="bri"] {
  color: #ffffff;

  background-color: #00529b;

  border-color: #3897ff;

  box-shadow: 0 0 18px rgba(56, 151, 255, 0.7);
}

.badge-pay:hover {
  transform: translateY(-3px);

  filter: brightness(1.15);
}

.pay-note {
  font-size: 13px;

  color: #8b949e;

  margin-top: 20px;

  line-height: 1.5;
}

/* FORM CHECKOUT STYLES */

input,
textarea {
  width: 100%;

  background-color: #0b0e14;

  border: 1px solid #1f2638;

  color: white;

  padding: 14px;

  border-radius: 8px;

  margin-bottom: 15px;

  font-size: 14px;
}

input:focus,
textarea:focus {
  outline: none;

  border-color: #00d2ff;
}

.btn-submit {
  width: 100%;

  background-color: #ff4a5a;

  color: white;

  border: none;

  padding: 14px;

  border-radius: 8px;

  font-weight: bold;

  font-size: 15px;

  cursor: pointer;

  transition: 0.3s;
}

.btn-submit:hover {
  background-color: #e03e4d;
}

.loading-text {
  grid-column: span 2;

  text-align: center;

  color: #8b949e;

  font-size: 13px;

  padding: 20px 0;
}

/* ==========================================================================

   PERBAIKAN FINAL MOBILE RESPONSIVE

   ========================================================================== */

@media (max-width: 992px) {
  nav {
    flex-direction: column;

    gap: 8px;

    padding: 12px;

    text-align: center;
  }

  nav ul {
    gap: 12px;
  }

  nav ul li a {
    font-size: 13px;
  }

  .logo {
    font-size: 20px;
  }

  .container {
    margin: 15px auto;

    padding: 0 10px;
  }

  .hero-slider {
    aspect-ratio: 16 / 6;

    min-height: 110px;

    margin-bottom: 15px;
  }

  /* Susunan Panel Berdampingan di Mobile */

  .split-layout {
    display: grid !important;

    grid-template-columns: repeat(2, 1fr) !important;

    align-items: stretch !important;

    gap: 10px;

    margin-bottom: 15px;
  }

  /* Kotak ke-3 (Status Layanan) turun ke bawah penuh */

  .card-panel:nth-child(3) {
    grid-column: span 2;
  }

  .card-panel {
    padding: 12px;

    border-radius: 12px;

    display: flex;

    flex-direction: column;
  }

  /* Penyeimbang Judul Panel */

  .title-left-blue,
  .title-left-green,
  .title-left-orange {
    font-size: 13.5px;

    margin-bottom: 8px;

    padding-left: 6px;

    border-left-width: 3px;

    min-height: 38px !important;

    display: flex;

    align-items: center;
  }

  .mini-grid-produk {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 8px;

    margin: 10px 0;

    flex-grow: 1;
  }

  /* ==========================================================================

     KUNCI UTAMA: MEMAKSA KARTU PRODUK SAMA RATA DAN SIMETRIS INDEPENDEN

     ========================================================================== */

  .card-mini {
    position: relative !important;

    width: 100% !important;

    height: 105px !important; /* Mengunci tinggi total semua kartu tanpa ampun */

    aspect-ratio: unset !important; /* Reset aspect ratio agar patuh pada height */

    border-radius: 8px;

    overflow: hidden;

    display: block !important; /* Lepas dari aturan flex pembawa masalah */
  }

  .img-produk-mini {
    position: absolute !important;

    top: 0;

    left: 0;

    width: 100% !important;

    height: 75px !important; /* Mengunci ruang gambar persis 75px untuk semua kartu */

    object-fit: cover !important;

    object-position: center !important;

    border-top-left-radius: 7px;

    border-top-right-radius: 7px;

    background-color: #111622;

    padding: 0px !important;
  }

  .nama-produk-mini {
    position: absolute !important;

    bottom: 0 !important;

    left: 0 !important;

    width: 100% !important;

    height: 30px !important; /* Sisa ruang 30px mutlak untuk text area */

    font-size: 9px !important;

    font-weight: 700;

    color: #ffffff;

    background-color: #0b0e14; /* Memberikan warna background gelap solid di area teks */

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    padding: 0 4px !important;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

    text-align: center;
  }

  /* ========================================================================== */

  .desc-card {
    font-size: 11px;

    margin-bottom: 10px;

    line-height: 1.4;

    min-height: 32px;
  }

  .btn-lihat-semua {
    padding: 9px 16px;

    font-size: 11px;

    border-radius: 6px;

    margin-top: auto;
  }

  /* Status Server List di HP */

  .status-server-container {
    gap: 8px;

    margin-top: 10px;
  }

  .status-item {
    padding: 8px 12px;

    border-radius: 8px;
  }

  .status-label {
    font-size: 12px;
  }

  .status-desc {
    font-size: 10px;
  }

  .status-text {
    font-size: 11px;
  }

  .grid-produk {
    grid-template-columns: repeat(2, 1fr);

    gap: 10px;
  }

  .card-produk {
    padding: 12px;

    border-radius: 10px;
  }

  .card-produk img {
    height: 85px;

    margin-bottom: 10px;
  }

  .card-produk h3 {
    font-size: 13px;
  }

  .card-produk .harga {
    font-size: 12px;

    margin-bottom: 10px;
  }

  .btn-beli {
    padding: 8px;

    font-size: 11px;

    border-radius: 6px;
  }

  /* FAQ & Metode Pembayaran */

  .container > .split-layout:last-of-type,
  main > .split-layout:last-of-type,
  .split-layout:has(.faq-item) {
    grid-template-columns: 1fr !important;

    gap: 15px;
  }

  .card-panel:has(.faq-item),
  .card-panel:has(.payment-grid) {
    grid-column: span 2 !important;

    padding: 14px;

    border-radius: 12px;
  }

  .title-blue-neon {
    font-size: 14px;

    margin-bottom: 8px;
  }

  .faq-item {
    padding: 8px 0;
  }

  .faq-toggle {
    font-size: 11.5px;

    line-height: 1.4;
  }

  .faq-answer {
    font-size: 10.5px;

    padding-top: 8px;
  }

  .btn-wa-faq {
    display: block;

    width: 100%;

    text-align: center;

    padding: 10px;

    font-size: 11.5px;

    margin-top: 12px;

    border-radius: 6px;
  }

  .payment-grid {
    display: grid !important;

    grid-template-columns: repeat(3, 1fr) !important;

    gap: 6px;

    margin-top: 10px;

    width: 100%;
  }

  .badge-pay {
    padding: 6px 4px;

    font-size: 9.5px;

    border-radius: 6px;

    width: 100%;

    min-height: 32px;

    display: flex;

    align-items: center;

    justify-content: center;

    box-shadow: none !important;
  }

  .pay-note {
    font-size: 10.5px;

    margin-top: 10px;

    line-height: 1.4;
  }

  /* FORM CHECKOUT PESANAN */

  .container:has(input) .split-layout,
  .container:has(textarea) .split-layout,
  main:has(.btn-submit) .split-layout {
    grid-template-columns: 1fr !important;

    gap: 15px;
  }

  .container:has(input) .card-panel,
  .container:has(textarea) .card-panel {
    grid-column: span 2 !important;

    padding: 16px;

    width: 100% !important;

    height: auto !important;
  }

  input,
  textarea {
    padding: 12px;

    font-size: 13.5px;

    margin-bottom: 12px;

    border-radius: 6px;
  }

  textarea {
    min-height: 140px;

    line-height: 1.5;
  }

  .btn-submit {
    padding: 12px;

    font-size: 14px;

    border-radius: 6px;
  }
}

/* OPTIMASI TINGGI HALAMAN DI MOBILE */

html,
body {
  height: auto !important;

  min-height: 100% !important;
}

.container {
  margin-bottom: 50px;
}
