/* ============================================================
   MASJAYA — Voucher Game & Top Up Instan
   style.css | Tema: Kuning Tua (Dark Gold)
   Layout referensi: marketplace voucher game modern
   ============================================================ */

/* ---------- 1. RESET & TOKEN ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--mj-bg);
  color: var(--mj-text);
  line-height: 1.65;
  font-size: 15px;
  overflow-x: hidden;
}

:root {
  /* Warna dominan: KUNING TUA */
  --mj-gold-900: #7A5A00;
  --mj-gold-800: #96700A;
  --mj-gold-700: #B8860B;   /* dark goldenrod — warna utama */
  --mj-gold-600: #C9930B;
  --mj-gold-500: #E0A800;
  --mj-gold-400: #F2B705;
  --mj-gold-300: #FFCC29;
  --mj-gold-200: #FFE08A;
  --mj-gold-100: #FFF2C9;
  --mj-gold-050: #FFFAE8;

  --mj-ink-900: #17130A;
  --mj-ink-800: #221B0C;
  --mj-ink-700: #2E2511;
  --mj-text: #2A2410;
  --mj-muted: #6E6650;
  --mj-line: #EDE3C6;

  --mj-bg: #FFFDF6;
  --mj-card: #FFFFFF;
  --mj-success: #16A34A;
  --mj-danger: #DC2626;

  --mj-radius: 14px;
  --mj-radius-lg: 22px;
  --mj-shadow: 0 6px 22px rgba(122, 90, 0, .10);
  --mj-shadow-lg: 0 16px 44px rgba(122, 90, 0, .18);
  --mj-grad: linear-gradient(135deg, var(--mj-gold-700) 0%, var(--mj-gold-400) 55%, var(--mj-gold-300) 100%);
  --mj-grad-dark: linear-gradient(135deg, #1B1607 0%, #3A2C06 55%, #6B4E02 100%);
  --mj-max: 1200px;
}

img { max-width: 100%; display: block; }
a { color: var(--mj-gold-800); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--mj-gold-600); }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.22;
  color: var(--mj-ink-900);
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.75rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.12rem, 2.2vw, 1.4rem); }

p { margin: 0 0 1.05em; }

.container {
  width: 100%;
  max-width: var(--mj-max);
  margin-inline: auto;
  padding-inline: 18px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 2. TOMBOL ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  font-size: .95rem;
  padding: 12px 24px;
  border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  text-align: center;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--mj-grad);
  color: #17130A;
  box-shadow: 0 8px 20px rgba(184, 134, 11, .35);
}
.btn-primary:hover { color: #17130A; box-shadow: 0 12px 28px rgba(184, 134, 11, .45); transform: translateY(-2px); }
.btn-dark { background: var(--mj-ink-900); color: var(--mj-gold-300); }
.btn-dark:hover { color: #fff; background: var(--mj-ink-700); }
.btn-ghost {
  background: transparent;
  color: var(--mj-gold-200);
  border: 1.5px solid rgba(255, 204, 41, .5);
}
.btn-ghost:hover { background: rgba(255, 204, 41, .12); color: #fff; }
.btn-outline {
  background: #fff;
  color: var(--mj-gold-800);
  border: 1.5px solid var(--mj-gold-400);
}
.btn-outline:hover { background: var(--mj-gold-050); }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { color: #fff; background: #1FB855; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-lg { padding: 15px 34px; font-size: 1.02rem; }

/* ---------- 3. TOPBAR ---------- */
.topbar {
  background: var(--mj-ink-900);
  color: var(--mj-gold-200);
  font-size: .78rem;
  border-bottom: 1px solid rgba(255, 204, 41, .13);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 36px;
  flex-wrap: wrap;
}
.topbar a { color: var(--mj-gold-200); }
.topbar a:hover { color: var(--mj-gold-300); }
.topbar-left { display: flex; align-items: center; gap: 7px; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.dot-live {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3DDC84; display: inline-block;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, .7);
  animation: mjPulse 2s infinite;
}
@keyframes mjPulse {
  0%   { box-shadow: 0 0 0 0 rgba(61, 220, 132, .7); }
  70%  { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

/* ---------- 4. HEADER / NAVBAR ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--mj-ink-900);
  box-shadow: 0 2px 16px rgba(0, 0, 0, .28);
}
.site-header::after {
  content: "";
  display: block;
  height: 3px;
  background: var(--mj-grad);
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 38px; width: auto; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-weight: 900;
  font-size: 1.18rem;
  color: var(--mj-gold-300);
  letter-spacing: .5px;
}
.brand-tag { font-size: .62rem; color: #A99B72; letter-spacing: 1.6px; text-transform: uppercase; }

.nav-search { flex: 1; position: relative; max-width: 430px; }
.nav-search input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 204, 41, .22);
  background: rgba(255, 255, 255, .07);
  color: #FFF6D8;
  font-size: .9rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.nav-search input::placeholder { color: #9B8F6B; }
.nav-search input:focus { border-color: var(--mj-gold-400); background: rgba(255, 255, 255, .12); }
.nav-search .ico {
  position: absolute;
  left: 15px; top: 50%;
  transform: translateY(-50%);
  color: var(--mj-gold-400);
  font-size: .95rem;
  pointer-events: none;
}
.search-result {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--mj-shadow-lg);
  padding: 6px;
  display: none;
  max-height: 320px;
  overflow-y: auto;
  z-index: 120;
}
.search-result.show { display: block; }
.search-result a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  color: var(--mj-text); font-size: .88rem; font-weight: 600;
}
.search-result a:hover { background: var(--mj-gold-050); }
.search-result img { width: 34px; height: 34px; object-fit: cover; border-radius: 7px; }
.search-empty { padding: 14px; color: var(--mj-muted); font-size: .85rem; text-align: center; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: auto;
}
.nav-menu a {
  display: block;
  padding: 9px 13px;
  color: #E8DEBE;
  font-weight: 700;
  font-size: .88rem;
  border-radius: 9px;
}
.nav-menu a:hover { color: var(--mj-gold-300); background: rgba(255, 204, 41, .10); }
.nav-menu a.active { color: var(--mj-ink-900); background: var(--mj-gold-400); }
.nav-cta { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid rgba(255, 204, 41, .35);
  color: var(--mj-gold-300);
  width: 42px; height: 40px;
  border-radius: 10px;
  font-size: 1.15rem;
  cursor: pointer;
}

/* ---------- 5. HERO / CAROUSEL ---------- */
.hero {
  position: relative;
  background: var(--mj-grad-dark);
  padding: 48px 0 62px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(680px 300px at 12% 12%, rgba(242, 183, 5, .22), transparent 62%),
    radial-gradient(560px 280px at 88% 82%, rgba(184, 134, 11, .26), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 42px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 204, 41, .14);
  border: 1px solid rgba(255, 204, 41, .34);
  color: var(--mj-gold-300);
  padding: 6px 15px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 { color: #FFF8E2; margin-bottom: 14px; }
.hero h1 .hl {
  background: var(--mj-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { color: #D9CDA6; font-size: 1.03rem; max-width: 54ch; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-stats {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 204, 41, .18);
  padding-top: 20px;
}
.hero-stats .st b {
  display: block;
  font-size: 1.5rem;
  color: var(--mj-gold-300);
  font-weight: 900;
  line-height: 1.1;
}
.hero-stats .st span { font-size: .78rem; color: #B3A780; }

/* Carousel */
.carousel {
  position: relative;
  border-radius: var(--mj-radius-lg);
  overflow: hidden;
  box-shadow: var(--mj-shadow-lg);
  border: 2px solid rgba(255, 204, 41, .25);
  background: #120E05;
}
.carousel-track { display: flex; transition: transform .55s cubic-bezier(.22, .61, .36, 1); }
.carousel-slide { min-width: 100%; position: relative; }
.carousel-slide img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.carousel-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 22px 18px;
  background: linear-gradient(to top, rgba(10, 8, 2, .94), transparent);
  color: #FFF3D2;
}
.carousel-cap b { display: block; font-size: 1.02rem; color: var(--mj-gold-300); }
.carousel-cap span { font-size: .8rem; color: #C9BC94; }
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(23, 19, 10, .72);
  color: var(--mj-gold-300);
  font-size: 1.05rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s ease;
}
.carousel-nav:hover { background: var(--mj-gold-700); color: #fff; }
.carousel-nav.prev { left: 12px; }
.carousel-nav.next { right: 12px; }
.carousel-dots {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 7px;
}
.carousel-dots button {
  width: 8px; height: 8px; padding: 0;
  border-radius: 999px; border: 0;
  background: rgba(255, 255, 255, .4);
  cursor: pointer; transition: all .25s ease;
}
.carousel-dots button.active { width: 22px; background: var(--mj-gold-400); }

/* ---------- 6. FLOATING IMAGES ---------- */
.float-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.float-img {
  position: absolute;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  border: 2px solid rgba(255, 204, 41, .35);
  object-fit: cover;
  opacity: .92;
  will-change: transform;
  animation: mjFloat 7s ease-in-out infinite;
}
.float-img.f1 { width: 104px; height: 104px; top: 8%;  left: 3%;  animation-delay: 0s; }
.float-img.f2 { width: 84px;  height: 84px;  top: 62%; left: 8%;  animation-delay: .9s; }
.float-img.f3 { width: 96px;  height: 96px;  top: 14%; right: 4%; animation-delay: 1.7s; }
.float-img.f4 { width: 76px;  height: 76px;  bottom: 8%; right: 9%; animation-delay: 2.4s; }
/* Hero: geser float agar tidak menutupi statistik */
.hero .float-img.f1 { top: 4%; left: 1%; }
.hero .float-img.f2 { top: auto; bottom: 4%; left: 2%; opacity: .7; }
.hero .float-img.f3 { top: 6%; right: 2%; }
.hero .float-img.f4 { bottom: 4%; right: 3%; opacity: .7; }

@keyframes mjFloat {
  0%   { transform: translateY(0)      rotate(-3deg); }
  50%  { transform: translateY(-20px)  rotate(3deg); }
  100% { transform: translateY(0)      rotate(-3deg); }
}

/* Floating widget (WhatsApp + to top) */
.float-widget {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.float-wa {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #25D366;
  color: #fff;
  padding: 11px 17px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .86rem;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .42);
  animation: mjBob 3s ease-in-out infinite;
}
.float-wa:hover { color: #fff; background: #1FB855; }
.float-wa img { width: 22px; height: 22px; border-radius: 6px; }
@keyframes mjBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
.to-top {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--mj-ink-900);
  color: var(--mj-gold-300);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--mj-shadow);
  display: none;
  place-items: center;
}
.to-top.show { display: grid; }

/* ---------- 7. SECTION UMUM ---------- */
.section { padding: 58px 0; position: relative; }
.section.alt { background: var(--mj-gold-050); }
.section.dark { background: var(--mj-ink-900); color: #E6DCBB; }
.section.dark h2, .section.dark h3 { color: #FFF3D2; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.section-head p { color: var(--mj-muted); margin: 0; max-width: 60ch; }
.section.dark .section-head p { color: #B7AB86; }
.eyebrow {
  display: inline-block;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--mj-gold-700);
  margin-bottom: 7px;
}
.section.dark .eyebrow { color: var(--mj-gold-300); }
.title-bar { display: flex; align-items: center; gap: 11px; }
.title-bar::before {
  content: "";
  width: 5px; height: 26px;
  border-radius: 4px;
  background: var(--mj-grad);
  flex-shrink: 0;
}

/* ---------- 8. KARTU GAME ---------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 16px;
}
.game-card {
  background: var(--mj-card);
  border-radius: var(--mj-radius);
  overflow: hidden;
  border: 1px solid var(--mj-line);
  box-shadow: 0 2px 10px rgba(122, 90, 0, .06);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  position: relative;
  display: block;
  color: inherit;
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--mj-shadow-lg);
  border-color: var(--mj-gold-400);
  color: inherit;
}
.game-card .thumb { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #EFE7CE; }
.game-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.game-card:hover .thumb img { transform: scale(1.07); }
.game-card .tag {
  position: absolute;
  top: 9px; left: 9px;
  background: var(--mj-gold-400);
  color: #17130A;
  font-size: .64rem;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.game-card .tag.hot { background: #E23D28; color: #fff; }
.game-card .body { padding: 11px 13px 14px; }
.game-card .body b { display: block; font-size: .92rem; color: var(--mj-ink-900); line-height: 1.3; }
.game-card .body span { font-size: .75rem; color: var(--mj-muted); }
.game-card .price { margin-top: 7px; font-size: .82rem; font-weight: 800; color: var(--mj-gold-800); }

/* ---------- 9. KATEGORI PILL ---------- */
.pills { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 22px; }
.pill {
  padding: 8px 17px;
  border-radius: 999px;
  border: 1.5px solid var(--mj-line);
  background: #fff;
  color: var(--mj-muted);
  font-weight: 700;
  font-size: .84rem;
  cursor: pointer;
  font-family: inherit;
  transition: all .18s ease;
}
.pill:hover { border-color: var(--mj-gold-400); color: var(--mj-gold-800); }
.pill.active { background: var(--mj-grad); border-color: transparent; color: #17130A; }

/* ---------- 10. FITUR / KEUNGGULAN ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.feature {
  background: var(--mj-card);
  border: 1px solid var(--mj-line);
  border-radius: var(--mj-radius);
  padding: 24px 22px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--mj-shadow); }
.feature .ic {
  width: 48px; height: 48px;
  border-radius: 13px;
  background: var(--mj-grad);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 13px;
}
.feature h3 { font-size: 1.03rem; margin-bottom: 6px; }
.feature p { color: var(--mj-muted); font-size: .89rem; margin: 0; }
.section.dark .feature {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 204, 41, .18);
}
.section.dark .feature p { color: #B7AB86; }

/* ---------- 11. LANGKAH / STEP ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: mjstep; }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--mj-line);
  border-radius: var(--mj-radius);
  padding: 28px 22px 22px;
}
.step::before {
  counter-increment: mjstep;
  content: counter(mjstep);
  position: absolute;
  top: -16px; left: 22px;
  width: 36px; height: 36px;
  border-radius: 11px;
  background: var(--mj-grad);
  color: #17130A;
  font-weight: 900;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(184, 134, 11, .35);
}
.step h3 { font-size: 1rem; margin: 6px 0 6px; }
.step p { color: var(--mj-muted); font-size: .88rem; margin: 0; }

/* ---------- 12. TABEL ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--mj-radius); border: 1px solid var(--mj-line); background: #fff; }
table.mj {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: .9rem;
}
table.mj thead th {
  background: var(--mj-ink-900);
  color: var(--mj-gold-300);
  text-align: left;
  padding: 13px 16px;
  font-size: .82rem;
  letter-spacing: .4px;
  text-transform: uppercase;
}
table.mj td { padding: 12px 16px; border-top: 1px solid var(--mj-line); }
table.mj tbody tr:nth-child(even) { background: var(--mj-gold-050); }
table.mj tbody tr:hover { background: var(--mj-gold-100); }

/* ---------- 13. ARTIKEL ---------- */
.article {
  background: #fff;
  border: 1px solid var(--mj-line);
  border-radius: var(--mj-radius-lg);
  padding: 38px clamp(20px, 4vw, 46px);
  box-shadow: var(--mj-shadow);
}
.article-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: .8rem; color: var(--mj-muted);
  margin-bottom: 18px; padding-bottom: 16px;
  border-bottom: 1px solid var(--mj-line);
}
.article h2 { margin-top: 1.7em; }
.article h2:first-of-type { margin-top: .4em; }
.article h3 { margin-top: 1.4em; }
.article ul, .article ol { padding-left: 1.25em; margin: 0 0 1.1em; }
.article li { margin-bottom: .5em; }
.article strong { color: var(--mj-gold-900); }
.article blockquote {
  margin: 1.4em 0;
  padding: 16px 22px;
  border-left: 5px solid var(--mj-gold-400);
  background: var(--mj-gold-050);
  border-radius: 0 12px 12px 0;
  color: var(--mj-ink-700);
  font-style: italic;
}
.toc {
  background: var(--mj-gold-050);
  border: 1px solid var(--mj-gold-200);
  border-radius: var(--mj-radius);
  padding: 18px 22px;
  margin-bottom: 26px;
}
.toc b { display: block; margin-bottom: 8px; color: var(--mj-gold-900); }
.toc ol { margin: 0; padding-left: 1.15em; }
.toc li { margin-bottom: .3em; font-size: .9rem; }

/* ---------- 14. FAQ ---------- */
.faq { display: grid; gap: 11px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--mj-line);
  border-radius: var(--mj-radius);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 17px 50px 17px 20px;
  font-weight: 800;
  font-size: .96rem;
  color: var(--mj-ink-900);
  cursor: pointer;
  position: relative;
  font-family: inherit;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  color: var(--mj-gold-700);
  font-weight: 700;
  transition: transform .25s ease;
}
.faq-item.open .faq-q::after { content: "−"; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .3s ease;
  padding: 0 20px;
  color: var(--mj-muted);
  font-size: .92rem;
}
.faq-item.open .faq-a { max-height: 520px; padding: 0 20px 18px; }

/* ---------- 15. FORM ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--mj-line);
  border-radius: var(--mj-radius-lg);
  padding: clamp(22px, 4vw, 38px);
  box-shadow: var(--mj-shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-weight: 800;
  font-size: .85rem;
  margin-bottom: 6px;
  color: var(--mj-ink-800);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--mj-line);
  border-radius: 11px;
  font-size: .93rem;
  font-family: inherit;
  color: var(--mj-text);
  background: #FFFDF6;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--mj-gold-400);
  box-shadow: 0 0 0 4px rgba(242, 183, 5, .16);
}
.field small { display: block; margin-top: 5px; color: var(--mj-muted); font-size: .78rem; }
.field .err { color: var(--mj-danger); font-size: .78rem; margin-top: 5px; display: none; }
.field.invalid input, .field.invalid select { border-color: var(--mj-danger); }
.field.invalid .err { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--mj-muted); }
.check input { width: auto; margin-top: 3px; }
.form-alert {
  display: none;
  padding: 13px 17px;
  border-radius: 11px;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.form-alert.ok { display: block; background: #E8F8EE; color: #10682F; border: 1px solid #A9E3BF; }

/* Nominal picker */
.nominal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 11px; }
.nominal {
  border: 1.5px solid var(--mj-line);
  border-radius: 12px;
  background: #fff;
  padding: 13px 12px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all .18s ease;
}
.nominal:hover { border-color: var(--mj-gold-400); }
.nominal.active { border-color: var(--mj-gold-600); background: var(--mj-gold-050); box-shadow: 0 0 0 3px rgba(242, 183, 5, .18); }
.nominal b { display: block; font-size: .9rem; color: var(--mj-ink-900); }
.nominal span { font-size: .82rem; color: var(--mj-gold-800); font-weight: 800; }

/* ---------- 16. TESTIMONI ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.testi {
  background: #fff;
  border: 1px solid var(--mj-line);
  border-radius: var(--mj-radius);
  padding: 22px;
}
.testi .stars { color: var(--mj-gold-500); font-size: .95rem; margin-bottom: 9px; letter-spacing: 2px; }
.testi p { font-size: .92rem; color: var(--mj-muted); }
.testi .who { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.testi .av {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--mj-grad);
  display: grid; place-items: center;
  font-weight: 900; color: #17130A;
}
.testi .who b { display: block; font-size: .87rem; color: var(--mj-ink-900); }
.testi .who span { font-size: .76rem; color: var(--mj-muted); }

/* ---------- 17. CTA BANNER ---------- */
.cta-banner {
  background: var(--mj-grad);
  border-radius: var(--mj-radius-lg);
  padding: clamp(26px, 5vw, 46px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--mj-shadow-lg);
}
.cta-banner h2 { margin-bottom: 6px; color: #17130A; }
.cta-banner p { margin: 0; color: #4A3A05; font-weight: 600; }

/* ---------- 18. BREADCRUMB ---------- */
.crumb {
  background: var(--mj-gold-050);
  border-bottom: 1px solid var(--mj-line);
  padding: 12px 0;
  font-size: .84rem;
  color: var(--mj-muted);
}
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; }
.crumb li + li::before { content: "›"; margin-right: 7px; color: var(--mj-gold-600); }

/* ---------- 19. PAGE HEADER ---------- */
.page-head {
  position: relative;
  background: var(--mj-grad-dark);
  color: #FFF6DC;
  padding: 52px 0 56px;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(620px 280px at 82% 18%, rgba(242, 183, 5, .24), transparent 62%);
}
.page-head .container { position: relative; z-index: 2; max-width: 860px; }
.page-head h1 { color: #FFF8E2; }
.page-head p { color: #D5C9A2; font-size: 1.02rem; margin: 0; max-width: 62ch; }

/* ---------- 20. FOOTER ---------- */
.site-footer { background: var(--mj-ink-900); color: #B9AD87; padding: 52px 0 0; font-size: .89rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 30px;
  padding-bottom: 34px;
}
.site-footer h4 {
  color: var(--mj-gold-300);
  font-size: .88rem;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #B9AD87; }
.site-footer a:hover { color: var(--mj-gold-300); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.footer-brand img { height: 40px; border-radius: 8px; }
.pay-badges { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.pay-badges span {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 204, 41, .18);
  padding: 5px 11px;
  border-radius: 7px;
  font-size: .72rem;
  color: var(--mj-gold-200);
  font-weight: 700;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 204, 41, .13);
  padding: 18px 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .8rem;
  color: #8D835F;
}

/* ---------- 21. REVEAL ANIMASI ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 22. RESPONSIF ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .float-img.f2, .float-img.f4 { display: none; }
}

@media (max-width: 900px) {
  .nav-search { order: 3; flex-basis: 100%; max-width: none; }
  .nav { flex-wrap: wrap; padding-bottom: 12px; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-menu {
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    display: none;
    padding-bottom: 8px;
  }
  .nav-menu.open { display: flex; }
  .nav-cta { display: none; }
  .nav-menu a { padding: 12px 14px; }
}

@media (max-width: 640px) {
  .section { padding: 42px 0; }
  .form-row { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .float-img.f1, .float-img.f3 { width: 66px; height: 66px; opacity: .55; }
  /* Hindari tumpang tindih dengan teks pada layar kecil */
  .hero .float-img.f1 { top: 1%; left: auto; right: 2%; }
  .hero .float-img.f3 { display: none; }
  .page-head .float-img.f1 { top: 2%; left: 1%; }
  .page-head .float-img.f3 { top: auto; bottom: 3%; right: 2%; }
  .hero-stats { gap: 18px; }
  .float-wa span { display: none; }
  .float-wa { padding: 13px; }
  .article { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
