:root {
  --bg: #f4f6f5;
  --card: #ffffff;
  --ink: #142628;
  --muted: #566b6e;
  --wa-green: #157347;
  --wa-green-hover: #115c39;
  --accent: #0b535c;
  --accent-light: #e6f0ee;
  --border: #dfe5e4;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

/* HEADER WEBSITE */
.blog-header {
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 10px 0 12px;
  margin-bottom: 28px;
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-brand-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex: 1;
}

/* Banner / Gambar Header di Bagian Atas */
.header-banner-box {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-banner-img {
  height: 80px;
  width: auto;
  max-width: 480px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.site-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.site-subtitle {
  margin: 0;
  font-size: 12.5px;
  color: #556c6f;
  max-width: 440px;
  line-height: 1.45;
  padding-left: 16px;
  border-left: 1.5px solid var(--border);
  letter-spacing: 0.01em;
}

/* Navigasi & Menu Garis 3 */
.header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.hamburger-wrap {
  position: relative;
}

/* Tombol Garis 3 */
.btn-hamburger {
  width: 40px;
  height: 40px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.15s, border-color 0.15s;
}

.btn-hamburger:hover {
  background-color: var(--bg);
  border-color: var(--accent);
}

.btn-hamburger .bar {
  width: 100%;
  height: 2.5px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Dropdown Menu Garis 3 */
.hamburger-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 210px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 50;
}

.hamburger-dropdown.is-open {
  display: flex;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.15s;
}

.dropdown-item:hover {
  background-color: var(--bg);
  color: var(--accent);
}

.dropdown-item .item-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

/* Grid Blok Game Publik */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 40px;
}

.game-block {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s, box-shadow 0.15s;
}

.game-block:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.game-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background-color: #0b535c;
  border-bottom: 1px solid var(--border);
}

.game-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  justify-content: space-between;
}

.game-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.game-price {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.game-desc {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 0;
  background-color: var(--wa-green);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
}

.btn-wa:hover {
  background-color: var(--wa-green-hover);
}

/* SECTION TAMPILAN DI BAWAH PRODUK */
.info-section {
  margin-top: 24px;
  margin-bottom: 36px;
  scroll-margin-top: 80px;
}

.section-head {
  margin-bottom: 18px;
}

.section-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  background-color: var(--accent-light);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.section-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.section-sub {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* Steps Grid (Cara Order) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-heading {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.step-text {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

/* About Card (Tentang Kami) */
.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-lead {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.feat-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.feat-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e2f3e8;
  color: #0f6636;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.feat-item strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}

.feat-item p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}

/* FOOTER */
.blog-footer {
  text-align: center;
  padding: 32px 0 44px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
  background-color: var(--card);
  margin-top: 24px;
}

.footer-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.footer-sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.5;
}

.footer-wa-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* Jendela Pesan & Bayar QRIS */
.order-dialog {
  border: 0;
  border-radius: 14px;
  padding: 0;
  width: calc(100% - 24px);
  max-width: 420px;
  max-height: calc(100dvh - 24px);
  color: var(--ink);
}

.order-dialog::backdrop {
  background: rgba(10, 25, 27, 0.55);
}

.order-body {
  position: relative;
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

.order-label {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.order-title {
  margin: -8px 0 0;
  font-size: 20px;
  padding-right: 40px;
}

.order-price {
  margin: -8px 0 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
}

#order-qris-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
}

.step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-note {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.step-note.center {
  text-align: center;
  margin-top: -4px;
}

.qris-img {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
}

.qris-name {
  margin: -6px 0 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.btn-save-qris {
  align-self: center;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* 2 Pilihan Metode QRIS (DANA vs Bank/Lainnya) */
.qris-methods-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 2px 0 6px;
}

.qris-method-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 6px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  color: var(--ink);
  outline: none;
}

.qris-method-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.qris-method-btn .method-icon {
  font-size: 20px;
  line-height: 1;
  margin-bottom: 4px;
}

.qris-method-btn .method-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.qris-method-btn .method-sub {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.2;
  margin-top: 3px;
}

/* Active State DANA (Biru DANA) */
.qris-method-btn.active.is-dana {
  border-color: #0086e6;
  background: #f0f7ff;
  box-shadow: 0 0 0 2px rgba(0, 134, 230, 0.25);
}
.qris-method-btn.active.is-dana .method-title {
  color: #0070c0;
}
.qris-method-btn.active.is-dana .method-sub {
  color: #0284c7;
  font-weight: 600;
}

/* Active State Bank Lain / Otomatis (Hijau Emerald) */
.qris-method-btn.active.is-other {
  border-color: var(--accent);
  background: #f0fdf4;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.25);
}
.qris-method-btn.active.is-other .method-title {
  color: var(--accent);
}
.qris-method-btn.active.is-other .method-sub {
  color: #15803d;
  font-weight: 600;
}

.qris-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
}

.qris-auto-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 6px;
  background-color: #e2f3e8;
  color: #0f6636;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 99px;
  margin-top: 2px;
}

.qris-manual-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1px dashed #86efac;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  color: #166534;
  margin: 0 auto;
  width: 100%;
  max-width: 280px;
  box-sizing: border-box;
}

.qris-manual-box .manual-guide-txt {
  font-size: 12px;
  font-weight: 600;
  color: #15803d;
}

.qris-price-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  color: #15803d;
}

.btn-copy-chip {
  background: #ffffff;
  border: 1px solid #86efac;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-chip:hover {
  background: #dcfce7;
  border-color: #4ade80;
}

@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-brand-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .site-subtitle {
    padding-left: 0;
    border-left: none;
    max-width: 100%;
    font-size: 11.5px;
  }
}

@media (max-width: 540px) {
  .game-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .site-banner-img {
    height: 52px;
    max-width: 260px;
  }

  .site-subtitle {
    font-size: 11px;
  }

  .header-inner {
    flex-wrap: nowrap;
  }
}
