/* ================= MAKARIOS GAMING — STYLE ================= */
:root {
  --bg: #0b0d17;
  --bg2: #11142a;
  --card: #161a33;
  --line: #262b4d;
  --text: #eef0ff;
  --muted: #a3a8cc;
  --accent: #7c5cff;
  --accent2: #22d3ee;
  --gold: #fbbf24;
  --danger: #f87171;
  --radius: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", Tahoma, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body { line-height: 1.8; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.h3 { font-size: 1.2rem; }
.h4 { font-size: 1.05rem; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.wrap { width: min(1160px, 92%); margin-inline: auto; }
.narrow { width: min(820px, 92%); }
.mt { margin-top: 20px; }

/* ---------- topbar / menu atas ---------- */
.topbar { position: sticky; top: 0; z-index: 50; padding-top: 12px; }
.topbar-inner {
  display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 8px 10px 8px 16px;
  background: rgba(13, 11, 30, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
[dir="rtl"] .topbar-inner { padding: 8px 16px 8px 10px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); font-weight: 900; font-size: 1.2rem; color: #fff;
}
.logo-text { font-weight: 900; letter-spacing: .06em; font-size: .95rem; white-space: nowrap; }
.logo-text span { color: var(--accent2); margin-inline-start: 4px; }

.nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav-link, .sub a {
  text-decoration: none; color: var(--muted); font-size: .92rem; font-weight: 600; white-space: nowrap;
  padding: 9px 13px; border-radius: 12px; display: inline-flex; align-items: center; gap: 4px; transition: color .15s, background .15s;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-link.active { color: var(--text); background: rgba(255, 255, 255, .1); }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item .nav-link { padding-inline-end: 4px; }
.sub-toggle { font: inherit; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 9px 8px 9px 2px; border-radius: 10px; }
[dir="rtl"] .sub-toggle { padding: 9px 2px 9px 8px; }
.sub-toggle:hover { color: var(--text); }
.caret { display: inline-block; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.sub {
  position: absolute; top: calc(100% + 6px); inset-inline-start: 0; min-width: 210px; padding: 6px;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  display: grid; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.sub::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; } /* jembatan hover */
.sub a { display: flex; padding: 9px 12px; border-radius: 10px; }
.sub a:hover, .sub a:focus-visible { color: var(--text); background: rgba(255, 255, 255, .07); }
.sub a.active { color: var(--text); }
@media (hover: hover) and (min-width: 1251px) {
  .nav-item:hover .sub { opacity: 1; visibility: visible; transform: none; }
  .nav-item:hover .caret { transform: translateY(1px) rotate(225deg); }
}
.nav-item.open .sub, .nav-item:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav-item.open .caret { transform: translateY(1px) rotate(225deg); }

.tb-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  color: var(--text); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); transition: border-color .15s, background .15s;
}
.icon-btn:hover { border-color: var(--accent); background: rgba(255, 255, 255, .08); }
.prefs { position: relative; }
.pref-btn {
  font: inherit; font-size: .95rem; font-weight: 800; letter-spacing: .02em; color: var(--text); cursor: pointer; height: 44px; padding: 0 14px 0 12px; white-space: nowrap; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); border: 1.5px solid color-mix(in srgb, var(--accent) 55%, var(--line));
}
.pref-globe { color: var(--accent2); flex-shrink: 0; }
.pref-caret { opacity: .8; flex-shrink: 0; transition: transform .15s; }
.pref-btn[aria-expanded="true"] .pref-caret { transform: rotate(180deg); }
.pref-btn:hover, .pref-btn[aria-expanded="true"] { border-color: var(--accent); }
.pref-pop {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; width: 270px; padding: 14px; z-index: 5;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.pref-title { margin: 0 0 6px; font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pref-pop .seg { width: 100%; margin-bottom: 14px; }
.pref-pop .seg:last-child { margin-bottom: 0; }
.pref-pop .seg button { flex: 1; }
.menu-btn { display: none; }
.burger { display: grid; gap: 4px; width: 18px; }
.burger i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* menu HP & tablet */
@media (max-width: 1250px) {
  .menu-btn { display: grid; }
  .tb-actions { margin-inline-start: auto; }
  .nav {
    position: absolute; top: calc(100% + 8px); inset-inline: 0; margin: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px;
    max-height: calc(100vh - 110px); overflow-y: auto; padding: 10px;
    background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  }
  .nav.open { display: flex; }
  .topbar .wrap { position: relative; }
  .nav-link { padding: 12px 14px; font-size: 1rem; }
  .nav-item { flex-wrap: wrap; }
  .nav-item .nav-link { flex: 1; }
  .sub-toggle { padding: 12px 14px; }
  .sub {
    position: static; width: 100%; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-inline-start: 2px solid var(--line); border-radius: 0; margin: 0 0 6px 16px; padding: 0 0 0 6px; background: none; display: none;
  }
  [dir="rtl"] .sub { margin: 0 16px 6px 0; padding: 0 6px 0 0; }
  .sub::before { display: none; }
  .nav-item.open .sub { display: grid; }
}
@media (max-width: 520px) {
  .topbar { padding-top: 8px; }
  .topbar-inner { gap: 8px; padding: 6px 6px 6px 10px; border-radius: 16px; }
  .logo-text { font-size: .8rem; }
  .logo-img { height: 36px !important; }
  .pref-btn { padding: 0 9px; height: 38px; font-size: .85rem; gap: 4px; }
  .pref-btn .pref-globe { width: 18px; height: 18px; }
  .icon-btn { width: 38px; height: 38px; }
  .tb-actions { gap: 6px; }
}
@media (max-width: 400px) { .logo-text { display: none; } }

/* segmented buttons */
.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button {
  font: inherit; font-size: .82rem; font-weight: 600; color: var(--muted); background: transparent;
  border: 0; padding: 6px 10px; border-radius: 7px; cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent; transition: transform .15s, filter .15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.1); }
.btn-primary { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--accent2))); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-sm { padding: 8px 14px; font-size: .85rem; border-radius: 9px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 80px 0 60px;
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(124, 92, 255, .35), transparent 70%),
    radial-gradient(500px 300px at 90% 20%, rgba(34, 211, 238, .2), transparent 70%);
}
.hero-inner { max-width: 860px; position: relative; z-index: 1; }
/* banner paling atas (config.js -> theme.topBanner) */
.top-banner { padding-top: 22px; }
.top-banner-img {
  display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: center 45%;
  border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 20px 60px color-mix(in srgb, var(--accent) 30%, transparent);
}
.has-top-banner .hero {
  padding-top: 48px;
  background:
    radial-gradient(520px 220px at 15% 45%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 70%),
    radial-gradient(460px 220px at 90% 55%, color-mix(in srgb, var(--accent2) 15%, transparent), transparent 70%);
}
@media (max-width: 700px) { .top-banner { padding-top: 14px; } .top-banner-img { aspect-ratio: 2 / 1; border-radius: 14px; } }

/* gambar banner (diatur di config.js -> theme.heroImage) */
.has-hero-img .hero { background: var(--bg) var(--hero-img) center / cover no-repeat; }
.has-hero-img .hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .45) 60%, rgba(0, 0, 0, .25) 100%);
}
[dir="rtl"].has-hero-img .hero::before, [dir="rtl"] .has-hero-img .hero::before { background: linear-gradient(270deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .45) 60%, rgba(0, 0, 0, .25) 100%); }
/* gambar latar seluruh halaman (config.js -> theme.pageBackground) */
.has-page-img { background: var(--bg) var(--page-img) center top / cover fixed no-repeat; }
.has-page-img .section.alt { background: color-mix(in srgb, var(--bg2) 85%, transparent); }
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: rgba(124, 92, 255, .15); border: 1px solid rgba(124, 92, 255, .4); color: #c9bcff; margin: 0 0 18px;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 680px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 40px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0; }
.stats div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stats dt { color: var(--muted); font-size: .82rem; }
.stats dd { margin: 4px 0 0; font-size: 1.6rem; font-weight: 800; direction: ltr; unicode-bidi: isolate; text-align: start; }
[dir="rtl"] .stats dd { text-align: right; }
.star { color: var(--gold); margin-inline-start: 4px; }

/* ---------- proof ---------- */
.proof { border-block: 1px solid var(--line); background: var(--bg2); padding: 22px 0; }
.proof-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.proof h2, .proof p { margin: 0; }
.proof-links { display: flex; gap: 10px; flex-wrap: wrap; }
.mk { text-decoration: none; font-weight: 700; padding: 10px 18px; border-radius: 10px; color: #fff; }
.mk-shopee { background: #ee4d2d; }
.mk-tokped { background: #03ac0e; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--bg2); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.tools { display: flex; gap: 10px; flex-wrap: wrap; }
.input {
  font: inherit; background: var(--bg2); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 14px; min-width: 220px;
}
.input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.price-note { color: var(--muted); font-size: .9rem; margin: 6px 0 20px; }

/* ---------- catalog grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.game { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.cover {
  --c: #6d28d9;
  position: relative; aspect-ratio: 1 / 1; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, .22), transparent 45%),
    linear-gradient(140deg, var(--c), #0b0d17 120%);
}
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.cover.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent 32%); }
.cover > *:not(.cover-img) { position: relative; z-index: 1; }
.cover > .hot { position: absolute; z-index: 2; }
.logo-img { height: 44px; width: auto; display: block; border-radius: 10px; }
.cover-title { font-weight: 800; font-size: 1.15rem; line-height: 1.2; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.plats { display: flex; gap: 6px; margin-top: 8px; }
.plat { font-size: .7rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .45); letter-spacing: .04em; }
.hot {
  position: absolute; top: 12px; inset-inline-end: 12px; font-size: .72rem; font-weight: 800;
  background: var(--gold); color: #1a1200; padding: 4px 9px; border-radius: 999px;
}
.game-body { padding: 14px 16px 16px; display: grid; gap: 10px; }
.slot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.slot-info { display: flex; flex-direction: column; }
.slot-name { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.slot-price { font-weight: 800; font-size: 1.05rem; direction: ltr; unicode-bidi: isolate; }
.slot-price.na { color: var(--muted); font-weight: 600; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
/* kategori */
.cats { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 4px; }
.tab {
  font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; color: var(--muted);
  background: var(--bg2); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px;
}
.tab:hover { color: var(--text); }
.tab[aria-pressed="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }
.tab-baru[aria-pressed="true"] { background: #16a34a; border-color: #16a34a; }
.tab-terlaris[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #1a1200; }
.tab-promo[aria-pressed="true"] { background: #e11d48; border-color: #e11d48; }

/* label di kartu */
.badges { position: absolute; top: 12px; inset-inline-end: 12px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; z-index: 2; }
.cover > .badges { position: absolute; }
.badge-cat { font-size: .72rem; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: var(--accent); color: #fff; }
.badge-baru { background: #16a34a; }
.badge-terlaris { background: var(--gold); color: #1a1200; }
.badge-promo { background: #e11d48; }

/* nomor halaman */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 30px; }
.pg {
  font: inherit; font-weight: 700; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; cursor: pointer;
  background: var(--card); color: var(--text); border: 1px solid var(--line);
}
.pg:hover:not(:disabled) { border-color: var(--accent); }
.pg[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.pg:disabled { opacity: .4; cursor: default; }
.pg-gap { color: var(--muted); padding: 0 4px; }

/* ---------- cards & lists ---------- */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check li { position: relative; padding-inline-start: 30px; }
.check li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: .75rem; font-weight: 900; background: rgba(34, 211, 238, .15); color: var(--accent2);
}
.check.big li { font-size: 1.05rem; }
.list { margin: 10px 0 0; padding-inline-start: 22px; display: grid; gap: 8px; }
.notice {
  margin-top: 20px; padding: 14px 16px; border-radius: 12px; font-size: .93rem;
  background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .35); color: #fecaca;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips span { font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); }
.flag { font-size: 1.1rem; }

/* steps */
.steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.num {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); font-weight: 900; color: #fff;
}
.steps p { margin: 0; font-size: .93rem; }

/* wallet */
.wallet { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 12px; display: grid; gap: 10px; }
.wallet-net { font-weight: 700; font-size: .9rem; color: var(--accent2); }
.wallet-addr { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; word-break: break-all; direction: ltr; text-align: left; background: var(--bg); padding: 10px; border-radius: 8px; }
.wallet .btn { justify-self: start; }

/* channels */
.channels { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.channels li { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.ch-name { font-weight: 700; }
.ch-link { color: var(--accent2); text-decoration: none; font-size: .92rem; word-break: break-all; }

/* faq */
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin-top: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
details p { margin: 0 0 14px; color: var(--muted); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 30px 0 90px; }
.footer p { margin: 4px 0; }

/* ---------- kartu: link ke detail ---------- */
.cover-link { display: block; text-decoration: none; color: inherit; }
.cover-link:hover .cover { filter: brightness(1.12); }
.cover-link:focus-visible { outline: 2px solid var(--accent2); outline-offset: -2px; }
.slots { display: grid; gap: 10px; }
.detail-link { font-size: .85rem; font-weight: 700; color: var(--accent2); text-decoration: none; justify-self: start; }
.detail-link:hover { text-decoration: underline; }
[dir="rtl"] .detail-link { direction: rtl; }

/* ---------- halaman detail produk ---------- */
.detail { position: fixed; inset: 0; z-index: 80; overflow-y: auto; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); }
.detail-open { overflow: hidden; }
.detail-open .topbar { z-index: 85; }
.detail { padding-top: 84px; }
@media (max-width: 520px) { .detail { padding-top: 70px; } }
.detail-open .fab { z-index: 90; }
.detail-panel { width: min(1100px, 94%); margin: 24px auto 60px; background: var(--bg2); border: 1px solid var(--line); border-radius: 22px; padding: 22px 26px 30px; }
.detail-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
.detail-back { color: var(--muted); text-decoration: none; font-weight: 700; }
.detail-back:hover { color: var(--text); }
.detail-head { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
.detail-head .cover { border-radius: 16px; overflow: hidden; }
.detail-title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; }
.detail-side .chips { margin: 0 0 16px; }
.detail-side .slots { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; gap: 14px; }
.detail-side .slot-price { font-size: 1.3rem; }
.normal-price { margin: 0 0 12px; color: var(--muted); font-size: .92rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.normal-price .save { background: #16a34a; color: #fff; font-weight: 800; font-size: .75rem; padding: 3px 8px; border-radius: 999px; }
.mini-list { margin: 14px 0 8px; padding-inline-start: 18px; color: var(--muted); font-size: .9rem; display: grid; gap: 4px; }
.detail-block { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.spec { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 0 0 16px; }
.spec div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.spec dt { color: var(--muted); font-size: .78rem; }
.spec dd { margin: 2px 0 0; font-weight: 700; }
.desc { color: var(--muted); margin: 0 0 12px; white-space: pre-line; }
.related { grid-template-columns: repeat(4, 1fr); }
.related .game-body { padding: 10px 14px; }
@media (max-width: 800px) {
  .detail-head { grid-template-columns: 1fr; }
  .related { grid-template-columns: repeat(2, 1fr); }
  .detail-panel { width: 100%; margin: 0; border-radius: 0; border: 0; padding: 16px 16px 90px; min-height: 100%; }
}

/* floating WhatsApp */
.fab {
  position: fixed; bottom: 20px; inset-inline-end: 20px; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); z-index: 60;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .two { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hero { padding-top: 50px; }
  .grid { gap: 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cover { padding: 10px; }
  .game-body { padding: 10px 10px 12px; gap: 8px; }
  .game .slot { flex-direction: column; align-items: stretch; gap: 6px; }
  .game .slot .btn { width: 100%; padding: 8px 10px; font-size: .85rem; }
  .game .slot-price { font-size: .95rem; white-space: nowrap; }
  .game .plat-switch button { padding: 5px 10px; }
  .game .cover-title { font-size: .92rem; }
  .shelf-row { grid-auto-columns: 168px; }
  .cover-title { font-size: 1.02rem; }
  .plats { margin-top: 6px; }
  .hot { top: 10px; }
  .slot-price { font-size: .98rem; }
  .section { padding: 52px 0; }
  .steps { grid-template-columns: 1fr; }
  .input { min-width: 0; width: 100%; }
  .tools { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* pilihan platform di kartu & detail */
.pricing { display: grid; gap: 10px; }
.plat-switch { display: inline-flex; justify-self: start; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 3px; gap: 2px; }
.plat-switch button { font: inherit; font-size: .75rem; font-weight: 800; letter-spacing: .03em; color: var(--muted); background: transparent; border: 0; padding: 5px 12px; border-radius: 6px; cursor: pointer; }
.plat-switch button[aria-pressed="true"] { background: var(--accent2); color: #04131c; }
.detail-side .pricing { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; gap: 14px; }
.detail-side .slots { background: none; border: 0; padding: 0; }
.detail-side .plat-switch button { font-size: .9rem; padding: 7px 18px; }

/* ================= RAK PRODUK (Flash Sale, Terlaris, Baru, PS5, PS4) ================= */
.shelves { display: grid; gap: 34px; padding-top: 56px; }
.shelves:empty { display: none; }
.shelf { position: relative; background: var(--bg2); border: 1px solid var(--line); border-radius: 22px; padding: 22px 0 22px 22px; overflow: hidden; }
[dir="rtl"] .shelf { padding: 22px 22px 22px 0; }
.shelf-flash { background: linear-gradient(120deg, color-mix(in srgb, #e11d48 28%, var(--bg2)), var(--bg2) 55%); border-color: color-mix(in srgb, #e11d48 45%, var(--line)); }
.shelf-best { background: linear-gradient(120deg, color-mix(in srgb, var(--gold) 18%, var(--bg2)), var(--bg2) 55%); }
.shelf-new { background: linear-gradient(120deg, color-mix(in srgb, #16a34a 20%, var(--bg2)), var(--bg2) 55%); }
.shelf-ps5 { background: linear-gradient(120deg, color-mix(in srgb, var(--accent2) 16%, var(--bg2)), var(--bg2) 55%); }
.shelf-ps4 { background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 18%, var(--bg2)), var(--bg2) 55%); }
.shelf-head { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; padding-inline-end: 22px; margin-bottom: 16px; }
.shelf-title h2 { margin: 0 0 2px; font-size: 1.35rem; }
.shelf-title p { margin: 0; }
.shelf-nav { display: flex; gap: 8px; align-items: center; margin-inline-start: auto; }
.see-all { font: inherit; font-weight: 700; font-size: .88rem; color: var(--accent2); background: none; border: 0; cursor: pointer; padding: 6px 8px; }
.see-all:hover { text-decoration: underline; }
/* tombol geser di sisi kiri & kanan baris produk */
.shelf-track { position: relative; }
.shelf-side { position: absolute; top: 36%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: inherit; font-size: 1.7rem; font-weight: 700; line-height: 1; padding: 0 0 3px; cursor: pointer; color: #fff; background: color-mix(in srgb, var(--bg) 72%, transparent); border: 1px solid color-mix(in srgb, #fff 22%, transparent); box-shadow: 0 6px 20px rgba(0,0,0,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: opacity .2s, background .15s, border-color .15s; }
.shelf-side:hover { background: var(--accent); border-color: var(--accent); }
.shelf-side:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
.shelf-prev { inset-inline-start: 6px; }
.shelf-next { inset-inline-end: 12px; }
.shelf-side.is-off { opacity: 0; pointer-events: none; }
.shelf-row { display: grid; grid-auto-flow: column; grid-auto-columns: 230px; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; padding-inline-end: 22px; scrollbar-width: thin; }
.mini { scroll-snap-align: start; display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform .15s, border-color .15s; }
.mini:hover { transform: translateY(-3px); border-color: var(--accent); }
.mini .cover { aspect-ratio: 1 / 1; padding: 12px; }
.mini .cover-title { font-size: .98rem; }
.mini .plats { margin-top: 6px; }
.mini-body { padding: 10px 12px 12px; display: grid; gap: 2px; }
.mini-from { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.mini-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mini-price strong { font-size: 1.05rem; direction: ltr; unicode-bidi: isolate; }
.mini-price s, .slot-old { color: var(--muted); font-size: .8rem; }
.mini-sold { font-size: .78rem; color: var(--gold); font-weight: 600; }
.game-body .mini-sold { margin-top: -2px; }
.rank { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; background: var(--gold); color: #1a1200; font-weight: 900; font-size: .85rem; padding: 3px 9px; border-radius: 8px; }
.disc { position: absolute; bottom: 10px; inset-inline-end: 10px; z-index: 2; background: #e11d48; color: #fff; font-weight: 900; font-size: .8rem; padding: 4px 9px; border-radius: 8px; }
.countdown { display: inline-flex; align-items: center; gap: 8px; background: #e11d48; color: #fff; border-radius: 10px; padding: 6px 12px; font-weight: 800; }
.cd-label { font-size: .78rem; opacity: .9; }
.cd-val { font-variant-numeric: tabular-nums; letter-spacing: .03em; }

/* tab kategori: ikon + jumlah */
.tab { display: inline-flex; align-items: center; gap: 6px; }
.tab-ico { font-size: .95rem; }
.tab-count { font-size: .72rem; font-weight: 800; background: color-mix(in srgb, var(--text) 12%, transparent); padding: 1px 7px; border-radius: 999px; }
.tab-ps5[aria-pressed="true"] { background: var(--accent2); border-color: var(--accent2); color: #04131c; }
.tab-ps4[aria-pressed="true"] { background: #6366f1; border-color: #6366f1; }
.slot-info .slot-old { margin-top: 1px; }
@media (max-width: 700px) {
  .shelves { padding-top: 40px; gap: 24px; }
  .shelf { padding: 16px 0 16px 16px; border-radius: 16px; }
  [dir="rtl"] .shelf { padding: 16px 16px 16px 0; }
  .shelf-head { padding-inline-end: 16px; }
  .shelf-side { width: 38px; height: 38px; font-size: 1.4rem; }
  .shelf-prev { inset-inline-start: 4px; }
  .shelf-next { inset-inline-end: 8px; }
  .shelf-nav { margin-inline-start: 0; }
  .shelf-row { grid-auto-columns: 62%; padding-inline-end: 16px; }
  .cats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .tab { flex: 0 0 auto; }
}
.cover > .disc, .cover > .rank { position: absolute; }
.mini .badges { display: none; }               /* rak sudah menunjukkan kategorinya */
.mini .cover { justify-content: flex-end; }
.mini-date { font-size: .76rem; color: #4ade80; font-weight: 600; }

/* ---------- deals, ps plus ---------- */
.shelf-deals { background: linear-gradient(120deg, color-mix(in srgb, #e11d48 20%, var(--bg2)), var(--bg2) 55%); }
.tab-deals[aria-pressed="true"] { background: #e11d48; border-color: #e11d48; }
.tab-psplus[aria-pressed="true"] { background: #ca8a04; border-color: #ca8a04; color: #111; }

/* ---------- ulasan ---------- */
.rev-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 1.4fr; gap: 14px; align-items: stretch; margin-top: 8px; }
.rev-score { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: grid; gap: 2px; }
.rev-score strong { font-size: 1.7rem; line-height: 1.2; }
.rev-score .star { color: var(--gold); margin-inline-start: 4px; font-size: 1.3rem; }
.rev-links { display: grid; gap: 10px; align-content: center; }
.rev-links .mk { text-align: center; }
.rev-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 18px; }
.rev-card { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: grid; gap: 10px; align-content: start; }
.rev-stars { color: var(--gold); letter-spacing: 2px; }
.rev-text { margin: 0; line-height: 1.6; }
.rev-by { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.rev-src { font-size: .75rem; color: var(--accent2); font-weight: 700; }
.contact-cta { margin: 6px 0 4px; }
@media (max-width: 900px) { .rev-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rev-links { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .rev-summary { grid-template-columns: 1fr 1fr; } .rev-score strong { font-size: 1.35rem; } .rev-links { grid-template-columns: 1fr; } }

/* ---------- trailer ---------- */
.video-facade { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; padding: 0; border: 0; cursor: pointer; color: #fff; text-decoration: none;
  background: radial-gradient(circle at 70% 20%, rgba(255, 255, 255, .18), transparent 50%), linear-gradient(140deg, var(--c, #6d28d9), #0b0d17 120%); }
.video-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-thumb.blur { filter: blur(18px) brightness(.55); transform: scale(1.15); }
.video-facade::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .18); transition: background .15s; }
.video-facade:hover::after { background: rgba(0, 0, 0, .05); }
.play-ico { position: relative; z-index: 1; transition: transform .15s; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .5)); }
.video-facade:hover .play-ico { transform: scale(1.08); }
.video-yt { align-content: center; gap: 14px; }
.video-cap { position: relative; z-index: 1; display: grid; gap: 2px; text-align: center; padding: 0 16px; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.video-cap strong { font-size: 1.15rem; }
.video-cap span { font-size: .88rem; opacity: .85; }

/* ---------- pencarian di kanan atas (cari semua game) ---------- */
.tb-search {
  position: relative; display: flex; align-items: center; height: 42px; width: 230px; margin: 0;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 999px; transition: border-color .15s, width .2s;
}
.tb-search:focus-within { border-color: var(--accent); width: 280px; }
.tb-search-ico { position: absolute; inset-inline-start: 14px; color: var(--muted); pointer-events: none; }
.tb-search-input {
  font: inherit; font-size: .9rem; color: var(--text); background: none; border: 0; outline: 0;
  width: 100%; height: 100%; padding: 0 34px 0 40px; border-radius: 999px; min-width: 0;
}
[dir="rtl"] .tb-search-input { padding: 0 40px 0 34px; }
.tb-search-input::placeholder { color: var(--muted); }
.tb-search-input::-webkit-search-cancel-button { display: none; }
.tb-search-close {
  position: absolute; inset-inline-end: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer;
  font-size: 1.2rem; line-height: 1; color: var(--muted); background: none; display: none;
}
.tb-search-close:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
.tb-search:has(.tb-search-input:not(:placeholder-shown)) .tb-search-close { display: block; }
.js-search-btn { display: none; }
/* layar laptop: menu atas dibuat lebih rapat agar muat bersama kolom cari */
@media (min-width: 1251px) {
  .tb-search { width: auto; flex: 1 1 220px; min-width: 150px; max-width: 240px; }
  .tb-search:focus-within { width: auto; max-width: 300px; flex-basis: 300px; }
  .tb-actions { flex-shrink: 1; min-width: 0; }
}
@media (min-width: 1251px) and (max-width: 1560px) {
  .topbar-inner { gap: 10px; }
  .nav-link { padding: 9px 10px; font-size: .9rem; }
  .pref-btn { padding: 0 10px; gap: 5px; font-size: .88rem; }
}
@media (min-width: 1251px) and (max-width: 1300px) {
  .logo-text { font-size: .85rem; }
  .nav-link { padding: 9px 8px; }
}
/* HP: hanya ikon; dipencet -> kolom pencarian menutupi bar atas */
@media (max-width: 760px) {
  .js-search-btn { display: grid; }
  .tb-search {
    display: none; position: absolute; inset: 0; width: auto !important; height: auto; z-index: 6;
    background: var(--bg2); border-color: var(--accent); border-radius: inherit;
  }
  .topbar-inner { position: relative; }
  .topbar.search-open .tb-search { display: flex; }
  .topbar.search-open .tb-search-close { display: block; }
  .tb-search-input { font-size: 16px; } /* cegah zoom otomatis di iPhone */
}
.search-info {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 4px 0 8px; padding: 12px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--accent);
}
.search-info p { margin: 0; }
.search-info strong { word-break: break-word; }

/* ---------- judul game di bawah cover ---------- */
.game-title, .mini-title {
  margin: 0; font-weight: 700; line-height: 1.3; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.game-title { font-size: 1rem; min-height: 2.6em; }
.game-title a { color: inherit; text-decoration: none; }
.game-title a:hover { color: var(--accent2); }
.mini-title { font-size: .92rem; min-height: 2.6em; margin-bottom: 4px; }
.related .game-title { font-size: .9rem; }
@media (max-width: 520px) {
  .game-title { font-size: .88rem; }
  .mini-title { font-size: .85rem; }
}

/* ---------- metode pembayaran yang bisa dipencet ---------- */
.pay-click { margin: 10px 0 0; }
.pay-chips { gap: 10px; }
.pay-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 700; text-decoration: none;
  padding: 9px 16px; border-radius: 999px; color: var(--text); background: var(--bg2); border: 1px solid var(--line);
  transition: transform .12s, border-color .15s, background .15s;
}
.pay-chip:hover { transform: translateY(-1px); border-color: var(--accent); }
.pay-chip.pc-wa::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #25d366; }
.pay-chip.pc-shopee:hover { border-color: #ee4d2d; }
.pay-chip.pc-tokped:hover { border-color: #03ac0e; }

/* ---------- peringatan merah di halaman produk ---------- */
.notice-danger {
  margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; font-size: .88rem; font-weight: 600; line-height: 1.45;
  color: #ffd7d7; background: rgba(239, 68, 68, .14); border: 1px solid rgba(239, 68, 68, .55);
}
