:root {
  --bg-main: #0b0610;
  --bg-card: #150a21;
  --bg-card-hover: #1e0d30;
  --border-color: #3b2559;
  --primary: #d946ef;
  --primary-hover: #c026d3;
  --text-main: #ffffff;
  --text-muted: #9ca3af;
  --green: #22c55e;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

/* Navbar */
.navbar {
  background: rgba(11, 6, 16, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-main);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* Features Section (3 Kotak Baru) */
.features-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 14px rgba(217, 70, 239, 0.3);
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  color: #fff;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

.tab {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.tab.active, .tab:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  padding: 0 4px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.card-image {
  height: 150px;
  background: linear-gradient(135deg, #1a0a2e, #2d0a3a);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-image.has-img {
  background: #000;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
}

.platform {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 6px;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.card-stats {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.star {
  color: #f59e0b;
}

.card-price {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  margin-top: auto;
}

.card-price strong {
  color: var(--text-main);
  font-size: 1rem;
}

.btn-beli {
  background: rgba(217, 70, 239, 0.1);
  border: 1px solid rgba(217, 70, 239, 0.3);
  color: var(--primary);
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.2s;
}

.btn-beli:hover {
  background: var(--primary);
  color: #fff;
}

/* Detail View */
.back-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 20px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

@media (max-width: 768px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

.detail-left {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
}

.detail-image {
  height: 220px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 20px;
}

.detail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-name {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.detail-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.platform-badge {
  background: rgba(217, 70, 239, 0.15);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
}

.detail-desc h3 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.detail-desc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}

.detail-desc li {
  display: flex;
  gap: 8px;
}

/* Order Box */
.order-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
}

.order-section {
  margin-bottom: 20px;
}

.section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.num {
  background: var(--primary);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.voucher-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.voucher-item {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: 0.2s;
}

.voucher-item:hover {
  border-color: var(--primary);
}

.voucher-item.selected {
  background: rgba(217, 70, 239, 0.1);
  border-color: var(--primary);
}

.voucher-item .duration {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.voucher-item .price {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.payment-option {
  background: var(--bg-main);
  border: 1px solid var(--primary);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pay-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pay-icon {
  font-size: 1.25rem;
}

.payment-option strong {
  display: block;
  font-size: 0.9rem;
}

.payment-option small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.pay-check {
  color: var(--primary);
  font-weight: bold;
}

.payment-sub {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.gratis b {
  color: var(--green);
}

.btn-buy-now {
  background: var(--primary);
  color: #fff;
  border: none;
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s;
}

.btn-buy-now:hover {
  background: var(--primary-hover);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
/* Styling Clean untuk Tampilan QRIS */
.qris-container, .payment-modal-content {
  background: #121214 !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Sembunyikan teks/tombol Buka Pembayaran yang mengganggu */
a[href*="payment"], .buka-pembayaran,-link-buka {
  display: none !important;
}

/* Mempercantik teks status menunggu */
.payment-status-text {
  font-size: 13px;
  color: #a1a1aa;
  margin-top: 12px;
  letter-spacing: -0.2px;
}

/* Tombol Tutup / Aksi yang lebih minimalis */
.btn-close-modal, .btn-tutup {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f4f4f5;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.12);
}
