/* ==========================================================================
   idola88 — Tema Kasino Gelap (Merah · Cokelat · Oranye · Hijau · Kuning ·
   Ungu · Biru · Hitam)
   Berkas gaya utama. Responsif penuh, tanpa kerangka kerja eksternal.
   ========================================================================== */

:root {
  --c-bg: #120b1f;
  --c-bg-2: #1a1030;
  --c-bg-3: #221541;
  --c-surface: #1e1436;
  --c-surface-2: #271a45;
  --c-line: rgba(255, 255, 255, .09);
  --c-line-strong: rgba(255, 255, 255, .16);

  --c-text: #ece8f5;
  --c-text-soft: #b9b1cd;
  --c-text-dim: #8d84a3;

  --c-red: #e03a3a;
  --c-red-dark: #b32a2a;
  --c-brown: #7a4a2c;
  --c-orange: #f5a524;
  --c-orange-dark: #d4841a;
  --c-green: #21c87a;
  --c-green-dark: #169a5c;
  --c-yellow: #ffd24a;
  --c-violet: #7b3fe4;
  --c-blue: #2d7df6;
  --c-black: #0b0713;

  --grad-gold: linear-gradient(135deg, #ffd24a 0%, #f5a524 52%, #e0721a 100%);
  --grad-red: linear-gradient(135deg, #ff5f5f 0%, #e03a3a 55%, #a82323 100%);
  --grad-green: linear-gradient(135deg, #3ee39a 0%, #21c87a 55%, #12885290 100%);
  --grad-violet: linear-gradient(135deg, #9d6bff 0%, #7b3fe4 60%, #4c1fa8 100%);

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 20px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --shadow-gold: 0 8px 26px rgba(245, 165, 36, .32);
  --shadow-green: 0 8px 26px rgba(33, 200, 122, .30);

  --wrap: 1180px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --dock-h: 74px;
}

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

/* `overflow-x: hidden` WAJIB ada pada html, bukan hanya body. Elemen
   position:fixed memakai viewport sebagai containing block, sehingga
   pemotongan di body tidak mencegah dokumen dapat digeser horizontal. */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  max-width: 100%;
  padding-bottom: calc(var(--dock-h) + 10px);
}

/* Pemutus kata global: judul panjang, URL, dan istilah tanpa spasi tidak
   boleh memaksa lebar halaman melebihi layar ponsel. */
h1, h2, h3, h4, h5, h6, p, li, dd, dt, td, th, figcaption, blockquote, a, span {
  overflow-wrap: break-word;
  word-break: break-word;
}

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

a { color: var(--c-yellow); text-decoration: none; }
a:hover { color: var(--c-orange); text-decoration: underline; }

h1, h2, h3, h4, h5 { font-weight: 800; line-height: 1.28; margin: 0 0 .6em; color: #fff; letter-spacing: -.2px; }
h1 { font-size: clamp(1.65rem, 4.4vw, 2.6rem); }
h2 { font-size: clamp(1.32rem, 3.1vw, 1.85rem); }
h3 { font-size: clamp(1.1rem, 2.3vw, 1.28rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1.15em; }

hr { border: 0; border-top: 1px solid var(--c-line); margin: 2.2rem 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }

/* Memakai teknik clip alih-alih left:-9999px agar tautan lewati konten tidak
   menambah lebar dokumen pada perangkat mobile. */
.skip-link {
  position: absolute; left: 0; top: 0; z-index: 999;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  background: var(--c-yellow); color: #1a1030; padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus {
  width: auto; height: auto; overflow: visible;
  clip: auto; clip-path: none;
}

/* ---------------------------------------------------------------- Topbar */
.topbar {
  background: linear-gradient(90deg, var(--c-red-dark), var(--c-violet) 55%, var(--c-blue));
  color: #fff; font-size: .82rem; padding: 7px 0;
}
.topbar .wrap { display: flex; align-items: center; gap: 14px; justify-content: space-between; }
.topbar .tb-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar .badge-18 {
  background: #fff; color: var(--c-red-dark); font-weight: 900; border-radius: 999px;
  padding: 1px 9px; font-size: .78rem; flex: none;
}
.topbar .tb-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Pada layar ponsel, pesan 18+ dan pengingat anggaran adalah informasi
   kepatuhan yang tidak boleh dipotong ellipsis. Teks dibiarkan turun baris. */
@media (max-width: 900px) {
  .topbar .wrap { flex-wrap: wrap; row-gap: 4px; }
  .topbar .tb-left { align-items: flex-start; flex: 1 1 100%; }
  .topbar .tb-text { white-space: normal; overflow: visible; text-overflow: clip; }
}
.topbar a { color: #fff; font-weight: 700; text-decoration: underline; }

/* --------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(18, 11, 31, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}
/* `backdrop-filter` pada header membentuk containing block baru, sehingga
   drawer `position: fixed` di dalamnya akan terkurung setinggi header saja
   (terukur: tinggi drawer 174 px, bukan setinggi viewport). Pada lebar layar
   ponsel, efek blur dilepas agar drawer kembali mengacu ke viewport. */
@media (max-width: 900px) {
  .site-header { backdrop-filter: none; background: rgba(18, 11, 31, .97); }
}
.hd { display: flex; align-items: center; gap: 14px; min-height: 66px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand picture { display: flex; flex: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand-name { font-size: 1.32rem; font-weight: 900; color: #fff; letter-spacing: -.5px; }
.brand-name b { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-tag { display: block; font-size: .64rem; letter-spacing: 1.4px; color: var(--c-text-dim); text-transform: uppercase; font-weight: 700; }

.nav-toggle {
  margin-left: auto; display: none; background: var(--c-surface-2); color: #fff;
  border: 1px solid var(--c-line-strong); border-radius: 10px; width: 44px; height: 42px;
  font-size: 1.2rem; cursor: pointer; align-items: center; justify-content: center;
}

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.main-nav a {
  display: block; color: var(--c-text-soft); font-size: .9rem; font-weight: 700;
  padding: 9px 11px; border-radius: 9px; text-decoration: none; white-space: nowrap;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; background: var(--c-surface-2); text-decoration: none; }
.main-nav .has-sub { position: relative; }
.main-nav .sub {
  position: absolute; top: 100%; left: 0; min-width: 216px; display: none;
  background: var(--c-bg-3); border: 1px solid var(--c-line-strong); border-radius: 12px;
  padding: 8px; box-shadow: var(--shadow); flex-direction: column; gap: 2px;
}
.main-nav .has-sub:hover .sub, .main-nav .has-sub:focus-within .sub { display: flex; }

.hd-cta { display: flex; gap: 8px; flex: none; }

/* --------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; font-size: .93rem; padding: 11px 18px; border-radius: 999px;
  border: 0; cursor: pointer; text-decoration: none; line-height: 1.2; text-align: center;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-gold { background: var(--grad-gold); color: #241503; box-shadow: var(--shadow-gold); }
.btn-gold:hover { color: #241503; filter: brightness(1.05); }
.btn-green { background: var(--grad-green); color: #06281a; box-shadow: var(--shadow-green); }
.btn-green:hover { color: #06281a; }
.btn-red { background: var(--grad-red); color: #fff; box-shadow: 0 8px 26px rgba(224, 58, 58, .32); }
.btn-red:hover { color: #fff; }
.btn-violet { background: var(--grad-violet); color: #fff; }
.btn-violet:hover { color: #fff; }
.btn-ghost { background: transparent; color: var(--c-text); border: 1px solid var(--c-line-strong); }
.btn-ghost:hover { color: #fff; border-color: var(--c-yellow); }
.btn-sm { padding: 8px 14px; font-size: .84rem; }
.btn-lg { padding: 15px 30px; font-size: 1.03rem; }
/* Target sentuh minimum agar nyaman pada layar ponsel. */
.btn { min-height: 42px; }
.btn-sm { min-height: 40px; }
.btn-lg { min-height: 54px; }
.btn-block { width: 100%; }

/* ------------------------------------------------------------ Breadcrumb */
.crumbs { font-size: .82rem; color: var(--c-text-dim); padding: 14px 0 2px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0;
  max-width: 100%; min-width: 0; }
/* Judul artikel yang panjang pada item terakhir harus boleh dipatahkan di
   posisi mana pun, agar tidak melewati batas kanan pada layar 320 px. */
.crumbs li { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
.crumbs li::after { content: "/"; margin-left: 6px; color: var(--c-text-dim); opacity: .6; }
/* Item terakhir tidak memakai pemisah, jadi margin-left 6px pada pseudo
   element harus dinolkan; jika tidak, kotaknya menambah 2 px lebar pada
   layar 320 px (terukur: li right 306 vs ol content right 304). */
.crumbs li:last-child::after { content: none; margin-left: 0; }
.crumbs a { color: var(--c-text-soft); text-decoration: none; }
.crumbs a:hover { color: var(--c-yellow); }

/* ------------------------------------------------------------------ Hero */
.hero {
  position: relative; overflow: hidden;
  background: #150d24 url("../img/hero-bg.jpg") center/cover no-repeat;
  background-image: image-set(url("../img/hero-bg.webp") type("image/webp"), url("../img/hero-bg.jpg") type("image/jpeg"));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--c-line);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(18, 11, 31, .94) 0%, rgba(18, 11, 31, .78) 46%, rgba(18, 11, 31, .48) 100%);
}
.hero-in { position: relative; z-index: 2; padding: 52px 0 46px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 34px; align-items: center; }
.hero-in > * { min-width: 0; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800;
  letter-spacing: .8px; text-transform: uppercase; color: var(--c-yellow);
  background: rgba(245, 165, 36, .12); border: 1px solid rgba(245, 165, 36, .38);
  padding: 5px 13px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 { margin-bottom: .5em; }
.hero h1 span { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 1.04rem; color: var(--c-text-soft); max-width: 58ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 16px; }
.hero-note { font-size: .8rem; color: var(--c-text-dim); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.hero-stat { background: rgba(30, 20, 54, .78); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 12px 13px; }
.hero-stat b { display: block; font-size: 1.05rem; color: var(--c-yellow); }
.hero-stat span { font-size: .74rem; color: var(--c-text-dim); }

.reel-card {
  background: linear-gradient(180deg, rgba(39, 26, 69, .95), rgba(24, 15, 44, .95));
  border: 1px solid var(--c-line-strong); border-radius: var(--radius-l);
  padding: 18px; box-shadow: var(--shadow);
}
.reel-card h2 { font-size: 1.02rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.reel {
  aspect-ratio: 3/4; border-radius: 12px; border: 1px solid var(--c-line-strong);
  background: radial-gradient(circle at 50% 30%, #34215c, #190f2f);
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
  animation: reelspin 2.6s ease-in-out infinite;
}
.reel:nth-child(2) { animation-delay: .35s; }
.reel:nth-child(3) { animation-delay: .7s; }
@keyframes reelspin { 0%, 74%, 100% { transform: translateY(0); } 82% { transform: translateY(-7px); } 90% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .reel { animation: none; } }
.reel-foot { font-size: .76rem; color: var(--c-text-dim); margin-top: 12px; }

/* ------------------------------------------------------------- Marquee */
.marquee-bar {
  background: linear-gradient(90deg, #1c1033, #2a1748 50%, #1c1033);
  border-bottom: 1px solid var(--c-line); overflow: hidden; position: relative;
}
.marquee-bar .wrap { display: flex; align-items: center; gap: 12px; overflow: hidden; }
.marquee-label {
  flex: none; font-size: .74rem; font-weight: 900; letter-spacing: .6px; text-transform: uppercase;
  background: var(--grad-red); color: #fff; padding: 4px 11px; border-radius: 999px; margin: 8px 0;
}
.marquee { overflow: hidden; flex: 1; min-width: 0; max-width: 100%; }
.marquee-track { display: flex; gap: 26px; white-space: nowrap; animation: slide 38s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item { font-size: .84rem; color: var(--c-text-soft); padding: 9px 0; }
.marquee-item b { color: var(--c-yellow); }
.marquee-item i { color: var(--c-green); font-style: normal; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ------------------------------------------------------------- Sections */
.sect { padding: 46px 0; }
.sect-alt { background: linear-gradient(180deg, #150d26, #120b1f); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.sect-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.sect-head h2 { margin: 0; }
.sect-head p { margin: 6px 0 0; color: var(--c-text-soft); font-size: .93rem; max-width: 70ch; }
.eyebrow { font-size: .74rem; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; color: var(--c-green); margin-bottom: 6px; }

/* --------------------------------------------------------------- Search */
.searchbox { display: flex; gap: 8px; width: 100%; max-width: 560px; }
.searchbox input[type="search"] {
  flex: 1; min-width: 0; background: var(--c-surface); border: 1px solid var(--c-line-strong);
  color: var(--c-text); border-radius: 999px; padding: 12px 18px; font-size: .95rem; font-family: inherit;
}
.searchbox input[type="search"]:focus { outline: 2px solid var(--c-orange); outline-offset: 1px; }

.tagcloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tagcloud a {
  font-size: .82rem; font-weight: 700; color: var(--c-text-soft); text-decoration: none;
  background: var(--c-surface); border: 1px solid var(--c-line-strong); padding: 7px 13px; border-radius: 999px;
}
.tagcloud a:hover { color: #1a1030; background: var(--grad-gold); border-color: transparent; }
.tagcloud a.t-lg { font-size: .95rem; }
.tagcloud a.t-hot { border-color: rgba(224, 58, 58, .5); color: #ffb8b8; }

/* ---------------------------------------------------------------- Cards */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(245, 165, 36, .45); }
.card-thumb { position: relative; aspect-ratio: 4/3; background: #1a1030; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-badge {
  position: absolute; top: 9px; left: 9px; font-size: .68rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: .5px; padding: 4px 9px; border-radius: 999px; background: rgba(11, 7, 19, .82);
  color: var(--c-yellow); border: 1px solid rgba(245, 165, 36, .5);
}
.card-badge.b-green { color: #b7f5d6; border-color: rgba(33, 200, 122, .55); }
.card-badge.b-violet { color: #d9c7ff; border-color: rgba(123, 63, 228, .6); }
.card-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h2,
.card-body h3,
.card-body .card-h { margin: 0; font-size: 1.02rem; }
.card-body h2 a,
.card-body h3 a,
.card-body .card-h a { color: #fff; text-decoration: none; }
.card-body h2 a:hover,
.card-body h3 a:hover,
.card-body .card-h a:hover { color: var(--c-yellow); }
.card-meta { font-size: .76rem; color: var(--c-text-dim); display: flex; flex-wrap: wrap; gap: 10px; }
.card-desc { font-size: .87rem; color: var(--c-text-soft); margin: 0; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chip { font-size: .7rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--c-surface-2); color: var(--c-text-soft); border: 1px solid var(--c-line); }
.chip-v-tinggi { color: #ffc9c9; border-color: rgba(224, 58, 58, .45); }
.chip-v-sedang { color: #ffe4a8; border-color: rgba(245, 165, 36, .45); }
.chip-v-rendah { color: #b7f5d6; border-color: rgba(33, 200, 122, .45); }

/* ------------------------------------------------------------ Leaderboard */
.board { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-l); overflow: hidden; }
.board-head { padding: 15px 18px; border-bottom: 1px solid var(--c-line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: linear-gradient(90deg, rgba(123, 63, 228, .18), transparent); }
.board-head h2 { margin: 0; font-size: 1.12rem; }
.board-head .board-note { font-size: .76rem; color: var(--c-text-dim); }
.table-scroll { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 540px; }
table.tbl th, table.tbl td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--c-line); vertical-align: top; }
table.tbl th { background: var(--c-bg-3); color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl td b { color: #fff; }
.rank { font-weight: 900; color: var(--c-text-dim); width: 46px; }
.rank-1 { color: var(--c-yellow); }
.rank-2 { color: #d8d8e6; }
.rank-3 { color: #e3a06a; }
.pct { font-weight: 800; color: var(--c-green); }

/* ---------------------------------------------------------------- Prose */
.prose { font-size: 1.005rem; color: #ded8ea; }
.prose h2 { margin-top: 2.1em; padding-top: .2em; }
.prose h3 { margin-top: 1.6em; color: var(--c-yellow); }
.prose h2::after { content: ""; display: block; width: 54px; height: 3px; border-radius: 3px; background: var(--grad-gold); margin-top: .5em; }
.prose ul, .prose ol { padding-left: 1.35em; margin: 0 0 1.15em; }
.prose li { margin-bottom: .4em; }
.prose blockquote {
  margin: 1.5em 0; padding: 14px 18px; border-left: 4px solid var(--c-orange);
  background: rgba(245, 165, 36, .08); border-radius: 0 var(--radius) var(--radius) 0; color: #f0e7d6;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 1.5em 0; }
.prose table th, .prose table td { border: 1px solid var(--c-line-strong); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose table th { background: var(--c-bg-3); color: #fff; }
.prose table tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }
.prose .table-scroll { margin: 1.5em 0; }
.prose .table-scroll table { margin: 0; min-width: 520px; }
.prose strong { color: #fff; }
.prose code { background: var(--c-bg-3); padding: 2px 6px; border-radius: 6px; font-size: .88em; }
.prose hr { margin: 2.4rem 0; }

.article-head { padding: 26px 0 6px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .82rem; color: var(--c-text-dim); margin-bottom: 8px; }
.article-lead { font-size: 1.08rem; color: var(--c-text-soft); }

/* `minmax(0, ...)` pada kedua kolom mencegah min-width tabel di dalamnya
   (min-width: 520px) merambat ke atas dan melebarkan grid. Tanpa ini, kolom
   grid mengambil lebar konten terlebar, bukan lebar yang tersedia. */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; padding: 8px 0 46px; }
.layout > * { min-width: 0; }
.sidebar { position: sticky; top: 82px; display: flex; flex-direction: column; gap: 16px; }
.widget { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 16px; }
.widget h3 { font-size: .95rem; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.widget ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.widget ul a { font-size: .88rem; color: var(--c-text-soft); text-decoration: none; }
.widget ul a:hover { color: var(--c-yellow); }
.widget-cta { background: linear-gradient(160deg, rgba(123, 63, 228, .22), rgba(224, 58, 58, .14)); border-color: rgba(245, 165, 36, .3); }

.toc { background: var(--c-bg-3); border: 1px solid var(--c-line-strong); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 26px; }
.toc h2 { font-size: .96rem; margin: 0 0 10px; }
.toc h2::after { display: none; }
.toc ol { margin: 0; padding-left: 1.2em; font-size: .89rem; }
.toc li { margin-bottom: .35em; }
.toc a { color: var(--c-text-soft); text-decoration: none; }
.toc a:hover { color: var(--c-yellow); }

/* ----------------------------------------------------------------- FAQ */
.faq-item { border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); margin-bottom: 10px; overflow: hidden; }
.faq-item > summary {
  cursor: pointer; padding: 14px 16px; font-weight: 800; color: #fff; font-size: .98rem;
  display: flex; align-items: flex-start; gap: 10px; list-style: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::before { content: "?"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--grad-gold); color: #241503; font-size: .78rem; display: flex; align-items: center; justify-content: center; font-weight: 900; margin-top: 2px; }
.faq-item[open] > summary { border-bottom: 1px solid var(--c-line); }
.faq-body { padding: 12px 16px 16px; color: var(--c-text-soft); font-size: .93rem; }
.faq-body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- Notice */
.notice { border-radius: var(--radius); padding: 15px 17px; font-size: .9rem; border: 1px solid; margin: 1.6em 0; }
.notice-18 { background: rgba(224, 58, 58, .1); border-color: rgba(224, 58, 58, .42); color: #ffd9d9; }
.notice-info { background: rgba(45, 125, 246, .1); border-color: rgba(45, 125, 246, .4); color: #d5e6ff; }
.notice-warn { background: rgba(245, 165, 36, .1); border-color: rgba(245, 165, 36, .42); color: #ffeccb; }
.notice-ok { background: rgba(33, 200, 122, .1); border-color: rgba(33, 200, 122, .4); color: #d3ffe9; }
.notice strong { color: #fff; }
.notice p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- Steps */
.steps { counter-reset: st; display: grid; gap: 14px; }
.step { position: relative; padding: 16px 18px 16px 62px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); }
.step::before {
  counter-increment: st; content: counter(st); position: absolute; left: 16px; top: 15px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--grad-violet); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: .95rem;
}
.step h3 { margin: 0 0 6px; font-size: 1rem; }
.step p { margin: 0; font-size: .9rem; color: var(--c-text-soft); }

/* --------------------------------------------------------------- Promos */
.promo { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-l); overflow: hidden; }
.promo-top { padding: 16px 18px; background: linear-gradient(120deg, rgba(224, 58, 58, .2), rgba(123, 63, 228, .16)); border-bottom: 1px solid var(--c-line); }
.promo-top h3 { margin: 0 0 4px; font-size: 1.05rem; }
.promo-top .promo-val { font-size: .84rem; color: var(--c-yellow); font-weight: 800; }
.promo-body { padding: 16px 18px; }
.promo-body dl { margin: 0; display: grid; grid-template-columns: 152px 1fr; gap: 8px 14px; font-size: .87rem; }
.promo-body dt { color: var(--c-text-dim); font-weight: 700; }
.promo-body dd { margin: 0; color: var(--c-text); }

/* --------------------------------------------------------------- Forms */
.form-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-l); padding: 22px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: .85rem; font-weight: 700; color: var(--c-text-soft); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--c-bg-3); border: 1px solid var(--c-line-strong); color: var(--c-text);
  border-radius: 10px; padding: 12px 14px; font-size: .95rem; font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--c-orange); outline-offset: 1px; }
.field .hint { font-size: .76rem; color: var(--c-text-dim); margin-top: 5px; }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--c-text-soft); margin-bottom: 14px; }
.checkline input { margin-top: 4px; flex: none; }

/* --------------------------------------------------------------- Footer */
.site-footer { background: linear-gradient(180deg, #150d26, #0b0713); border-top: 1px solid var(--c-line); padding: 40px 0 26px; font-size: .9rem; }
.foot-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid h3,
.foot-grid .foot-h { font-size: .92rem; margin-bottom: 12px; color: #fff; font-weight: 800; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-grid a { color: var(--c-text-soft); text-decoration: none; }
.foot-grid a:hover { color: var(--c-yellow); }
.foot-about p { color: var(--c-text-dim); font-size: .86rem; }
.foot-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.foot-badge { font-size: .72rem; font-weight: 800; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--c-line-strong); color: var(--c-text-soft); }
.foot-badge.b18 { color: #ffd9d9; border-color: rgba(224, 58, 58, .5); }
.foot-legal { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--c-line); color: var(--c-text-dim); font-size: .8rem; }
.foot-legal p { margin: 0 0 .7em; }

/* ------------------------------------------------------- Sticky CTA dock */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  width: 100%; max-width: 100vw; overflow-x: hidden;
  background: linear-gradient(180deg, rgba(20, 12, 34, .93), rgba(11, 7, 19, .99));
  border-top: 1px solid rgba(245, 165, 36, .34);
  backdrop-filter: blur(12px);
  box-shadow: 0 -8px 26px rgba(0, 0, 0, .5);
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
}
.dock-in { display: flex; align-items: center; gap: 12px; }
.dock-brand { display: flex; align-items: center; gap: 10px; flex: none; }
.dock-brand picture { display: flex; flex: none; }
.dock-brand img { width: 40px; height: 40px; border-radius: 10px; }
.dock-brand .dock-txt { line-height: 1.25; }
.dock-brand b { display: block; color: #fff; font-size: .95rem; }
.dock-brand span { font-size: .74rem; color: var(--c-text-dim); }
.dock-actions { margin-left: auto; display: flex; gap: 10px; flex: 1; justify-content: flex-end; max-width: 620px; }

/* Label panjang dipakai pada layar lebar, label pendek pada layar sempit,
   sehingga teks tombol tidak pernah terpotong atau turun baris. */
.cta-short { display: none; }
.cta-slot > span:not(.coin):not(.ic) { white-space: nowrap; }
.cta-slot {
  position: relative; overflow: hidden; flex: 1; min-width: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 54px; padding: 0 20px; border-radius: 14px; border: 0; cursor: pointer;
  font-weight: 900; font-size: 1.02rem; letter-spacing: .3px; text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .16s ease, box-shadow .16s ease;
}
.cta-slot:hover { transform: translateY(-3px); text-decoration: none; }
.cta-slot .ic { font-size: 1.15rem; line-height: 1; }
.cta-daftar {
  background: var(--grad-gold); color: #2a1804;
  box-shadow: 0 6px 0 #a5620d, 0 12px 28px rgba(245, 165, 36, .42);
  border: 1px solid rgba(255, 255, 255, .38);
}
.cta-daftar:hover { color: #2a1804; box-shadow: 0 4px 0 #a5620d, 0 16px 34px rgba(245, 165, 36, .52); }
.cta-login {
  background: var(--grad-green); color: #04281a;
  box-shadow: 0 6px 0 #0e7048, 0 12px 28px rgba(33, 200, 122, .38);
  border: 1px solid rgba(255, 255, 255, .34);
}
.cta-login:hover { color: #04281a; box-shadow: 0 4px 0 #0e7048, 0 16px 34px rgba(33, 200, 122, .5); }
.cta-slot::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 42%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .58), transparent);
  transform: skewX(-18deg); animation: shine 3.6s ease-in-out infinite;
}
@keyframes shine { 0%, 62% { left: -60%; } 88%, 100% { left: 118%; } }

.coin {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff3c4, #f5a524 62%, #b9750f);
  box-shadow: 0 0 6px rgba(255, 210, 74, .85); pointer-events: none; opacity: 0;
  animation: coinfall 2.9s linear infinite;
}
.cta-slot .coin:nth-of-type(1) { left: 14%; animation-delay: .1s; }
.cta-slot .coin:nth-of-type(2) { left: 38%; animation-delay: .9s; }
.cta-slot .coin:nth-of-type(3) { left: 62%; animation-delay: 1.6s; }
.cta-slot .coin:nth-of-type(4) { left: 84%; animation-delay: 2.3s; }
@keyframes coinfall {
  0% { transform: translateY(-14px) scale(.7); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: translateY(58px) scale(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .cta-slot::after, .coin { animation: none; } .coin { display: none; } }

.dock-tg {
  flex: none; width: 54px; height: 54px; border-radius: 14px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 1.35rem;
  background: linear-gradient(135deg, #4aa8f5, #2d7df6); color: #fff;
  border: 1px solid rgba(255, 255, 255, .3); box-shadow: 0 6px 0 #1a56ad;
  text-decoration: none;
}
.dock-tg:hover { color: #fff; transform: translateY(-3px); text-decoration: none; }

/* ----------------------------------------------------------- Pagination */
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 28px; }
.pager a, .pager span { padding: 9px 14px; border-radius: 10px; border: 1px solid var(--c-line-strong); color: var(--c-text-soft); text-decoration: none; font-size: .88rem; font-weight: 700; }
.pager .is-cur { background: var(--grad-gold); color: #241503; border-color: transparent; }

/* -------------------------------------------------------------- Utility */
.center { text-align: center; }
.mt0 { margin-top: 0; }
.mt24 { margin-top: 24px; }
.mb0 { margin-bottom: 0; }
.muted { color: var(--c-text-dim); }
.small { font-size: .84rem; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.divider-gold { height: 3px; border-radius: 3px; background: var(--grad-gold); width: 68px; margin: 0 0 18px; }
/* Ditambah clip-path dan margin negatif sehingga elemen benar-benar keluar dari
   alur tata letak dan tidak menyumbang lebar pada perangkat mobile. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

/* --------------------------------------------------------- Responsive */
@media (max-width: 1080px) {
  .main-nav a { padding: 9px 8px; font-size: .85rem; }
  .g4 { grid-template-columns: repeat(3, 1fr); }
  .layout { grid-template-columns: minmax(0, 1fr) minmax(0, 288px); gap: 24px; }
}

@media (max-width: 900px) {
  /* Pada satu kolom, minmax(0, 1fr) tetap diperlukan agar tabel dengan
     min-width tidak memaksa lebar grid melebihi layar. */
  .nav-toggle { display: inline-flex; }
  /* Saat tertutup, drawer tidak boleh menambah lebar kotak tata letak.
     `translateX(100%)` menggeser kotak visual ke luar viewport, namun
     `scrollWidth` induk tetap ikut membesar. Karena itu, keadaan tertutup
     memakai `width: 0` dan konten dipotong; lebar penuh baru diberikan pada
     keadaan `.is-open`. */
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto;
    width: 0; max-width: 100vw; background: var(--c-bg-2);
    border-left: 1px solid var(--c-line-strong); padding: 74px 0 100px;
    overflow: hidden;
    visibility: hidden; opacity: 0;
    transition: width .24s ease, padding .24s ease, opacity .24s ease, visibility .24s;
    z-index: 95; margin: 0;
  }
  .main-nav.is-open {
    width: min(320px, 86vw); padding: 74px 16px 100px;
    overflow-y: auto; overflow-x: hidden;
    visibility: visible; opacity: 1;
    box-shadow: -14px 0 40px rgba(0, 0, 0, .5);
  }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 3px; }
  .main-nav a { padding: 12px 14px; font-size: .95rem; }
  .main-nav .sub { position: static; display: flex; background: transparent; border: 0; box-shadow: none; padding: 0 0 6px 14px; }
  .main-nav .sub a { font-size: .88rem; color: var(--c-text-dim); }
  /* Drawer berada di dalam `header.site-header` yang punya `z-index: 80`,
     sehingga `z-index: 95` pada drawer hanya berlaku di dalam konteks
     penumpukan header itu. Backdrop dengan `z-index: 92` yang berada di luar
     header akhirnya menutupi drawer (terukur: elementFromPoint pada tautan
     drawer mengembalikan .nav-backdrop). Backdrop diberi nilai lebih rendah
     dari header agar drawer tetap berada di atasnya. */
  .nav-backdrop { position: fixed; inset: 0; background: rgba(6, 4, 12, .62); z-index: 70; display: none; }
  .nav-backdrop.is-on { display: block; }
  .hd-cta { display: none; }
  .hero-in { grid-template-columns: minmax(0, 1fr); padding: 38px 0 34px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .promo-body dl { grid-template-columns: 1fr; gap: 3px 0; }
  .promo-body dd { margin-bottom: 8px; }
}

@media (max-width: 680px) {
  body { font-size: 15.5px; }
  /* Breadcrumb dengan judul artikel panjang harus dapat turun baris. */
  .crumbs ol { flex-wrap: wrap; }
  .crumbs li, .crumbs a, .crumbs span { min-width: 0; overflow-wrap: break-word; }
  .g4, .g3, .g2 { grid-template-columns: repeat(2, 1fr); }
  .sect { padding: 34px 0; }
  .hero-stats { grid-template-columns: 1fr; }
  .topbar { font-size: .76rem; line-height: 1.5; padding: 5px 0; }
  .topbar .tb-right { display: none; }
  .dock-brand { display: none; }
  .dock-actions { max-width: none; }
  .cta-slot { height: 52px; font-size: .96rem; padding: 0 10px; }
  .dock-tg { width: 52px; height: 52px; flex: none; }
  .prose table { font-size: .84rem; }
  .card-body { padding: 12px 12px 14px; }
  .card-body h3 { font-size: .95rem; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  /* Di bawah 480px, ruang untuk dua tombol plus tombol Telegram terlalu sempit
     bagi label "DAFTAR SEKARANG" (terukur: butuh 108px, tersedia 110px pada
     320px sehingga teks turun baris dan terpotong). Label pendek dipakai. */
  .cta-full { display: none; }
  .cta-short { display: inline; }
  .cta-slot { font-size: .95rem; letter-spacing: .2px; }
}

@media (max-width: 420px) {
  .g4, .g3, .g2 { grid-template-columns: 1fr; }
  .cta-slot .ic { display: none; }
  .brand-tag { display: none; }
  .cta-slot { padding: 0 8px; font-size: .92rem; }
  .dock-actions { gap: 8px; }
  .dock-tg { width: 48px; height: 48px; }
  /* Pada layar 320-420px tabel enam kolom perlu font dan padding lebih ringkas
     agar tidak menekan batas layar meskipun sudah berada di dalam
     pembungkus .table-scroll yang dapat digeser. */
  .tbl, .prose table { font-size: .78rem; }
  .tbl th, .tbl td, .prose table th, .prose table td { padding: 7px 8px; }
  .wrap { padding: 0 14px; }
  /* Path URL pada hasil pencarian adalah token tanpa spasi yang panjang. */
  .search-hit .muted, .card-body .muted { overflow-wrap: anywhere; }
}
