/* ============================================================
   Koko5000 — style.css (WordPress-style markup)
   Tema: malam kasino biru-tinta + emas, aksen merah/hijau.
   ============================================================ */

:root {
  --ink: #0b1226;
  --ink-2: #101b3a;
  --ink-3: #16224a;
  --blue: #3f79ff;
  --blue-deep: #2c59d8;
  --gold: #ffc93c;
  --gold-deep: #d99a06;
  --red: #e6394b;
  --red-deep: #c22436;
  --green: #27c47a;
  --green-deep: #159a5e;
  --paper: #f6f8ff;
  --white: #ffffff;
  --text: #232a3f;
  --muted: #5b6478;
  --line: #e3e8f4;
  --line-dark: #26325c;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 18, 38, .10);
  --shadow-lg: 0 18px 44px rgba(11, 18, 38, .18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---------- Reset & dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--text);
  background: var(--paper);
  overflow-x: clip; /* clip (bukan hidden) agar position:sticky header tetap bekerja */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.28; color: var(--ink); margin: 0 0 .55em; font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
table { border-collapse: collapse; }
::selection { background: var(--gold); color: var(--ink); }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  background: var(--gold); color: var(--ink); padding: 10px 18px; font-weight: 700; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.grid > * { min-width: 0; max-width: 100%; }

/* ---------- Tombol & lencana ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 800; font-size: .95rem; cursor: pointer; text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--gold { background: linear-gradient(180deg, #ffd76a, var(--gold) 45%, var(--gold-deep)); color: #241a00; box-shadow: 0 6px 18px rgba(255, 201, 60, .35); }
.btn--gold:hover { box-shadow: 0 10px 24px rgba(255, 201, 60, .5); }
.btn--red { background: linear-gradient(180deg, #f4637a, var(--red) 50%, var(--red-deep)); color: #fff; box-shadow: 0 6px 18px rgba(230, 57, 75, .35); }
.btn--blue { background: linear-gradient(180deg, #6f9aff, var(--blue) 50%, var(--blue-deep)); color: #fff; box-shadow: 0 6px 18px rgba(63, 121, 255, .3); }
.btn--green { background: linear-gradient(180deg, #4dd99b, var(--green) 50%, var(--green-deep)); color: #05301e; box-shadow: 0 6px 18px rgba(39, 196, 122, .3); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--outline { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .06); }
.btn--outline:hover { background: rgba(255, 255, 255, .14); }
.btn--sm { padding: 8px 16px; font-size: .86rem; }
.btn--lg { padding: 15px 30px; font-size: 1.02rem; }

.badge--18 {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; padding: 2px 8px; border-radius: 8px;
  background: var(--red); color: #fff; font-weight: 900; font-size: .82rem;
  border: 1.5px solid rgba(255, 255, 255, .35);
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700;
}
.pill--green { background: rgba(39, 196, 122, .14); color: var(--green-deep); }
.pill--blue { background: rgba(63, 121, 255, .12); color: var(--blue-deep); }
.pill--red { background: rgba(230, 57, 75, .12); color: var(--red-deep); }
.pill--gold { background: rgba(255, 201, 60, .18); color: #8a6400; }

/* ---------- Topbar ---------- */
.topbar { background: #070d1d; color: #b9c4e2; font-size: .8rem; border-bottom: 1px solid var(--line-dark); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.topbar__left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.topbar__left > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; box-shadow: 0 0 0 4px rgba(39, 196, 122, .18); }
.topbar__right { display: flex; align-items: center; gap: 8px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(11, 18, 38, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .container { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; flex: none; }
.brand svg { width: 44px; height: 44px; flex: none; }
.brand__name { display: block; font-size: 1.32rem; font-weight: 900; letter-spacing: .4px; color: #fff; }
.brand__name b { color: var(--gold); }
.brand__tag { display: block; font-size: .68rem; color: #8fa0cc; letter-spacing: .2px; }

.main-navigation { margin-left: auto; }
.menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu > .menu-item > a {
  display: block; padding: 9px 9px; border-radius: 10px;
  color: #ccd6f2; font-weight: 700; font-size: .86rem; white-space: nowrap;
}
.menu > .menu-item > a:hover { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
.current-menu-item > a { color: var(--gold) !important; }
.menu-item-has-children { position: relative; }
.menu-item-has-children > a::after { content: " ▾"; font-size: .7em; opacity: .7; }
.sub-menu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 950;
  min-width: 262px; padding: 8px; margin: 0; list-style: none;
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu,
.menu-item-has-children.is-open > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a {
  display: block; padding: 10px 12px; border-radius: 10px; color: #dbe3fa; font-weight: 700; font-size: .9rem;
}
.sub-menu a:hover { background: rgba(63, 121, 255, .18); color: #fff; text-decoration: none; }
.sub-menu .menu-desc { display: block; font-size: .74rem; font-weight: 500; color: #8fa0cc; }
.menu-item--m-search { display: none; }

.hdr-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.hdr-search { display: flex; align-items: center; gap: 6px; }
.hdr-search input[type="search"] {
  width: 150px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-dark); background: #0e1730; color: #e7ecfb; font-size: .86rem; font-family: var(--font);
}
.hdr-search input[type="search"]::placeholder { color: #7488b8; }
.hdr-search input[type="search"]:focus { outline: 2px solid var(--blue); }

.nav-toggle {
  display: none; position: relative; width: 44px; height: 44px; flex: none;
  background: transparent; border: 1.5px solid var(--line-dark); border-radius: 10px; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 11px; width: 20px; height: 2.4px;
  background: var(--gold); border-radius: 2px; transition: transform .2s ease, top .2s ease, opacity .2s;
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Breadcrumb & hero halaman dalam ---------- */
.page-hero {
  background:
    radial-gradient(900px 340px at 85% -40%, rgba(63, 121, 255, .35), transparent 65%),
    radial-gradient(600px 300px at 8% 120%, rgba(255, 201, 60, .16), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #dbe3fa; padding: 34px 0 30px;
}
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 14px; padding: 0; font-size: .82rem; }
.breadcrumb li { display: flex; align-items: center; gap: 4px; color: #8fa0cc; }
.breadcrumb li + li::before { content: "›"; color: var(--gold); font-weight: 900; }
.breadcrumb a { color: #c2cdf0; }
.breadcrumb a:hover { color: var(--gold); }
.page-hero h1 { color: #fff; font-size: clamp(1.55rem, 3.4vw, 2.35rem); max-width: 21ch; }
.page-hero .lead { color: #b9c4e2; max-width: 62ch; margin: 0; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 16px; font-size: .8rem; color: #8fa0cc; }
.page-hero__meta .pill { background: rgba(255, 255, 255, .07); color: #cfd9f5; }

/* ---------- Tata letak artikel ---------- */
.site-main { display: block; }
.article-wrap { padding: 34px 0 56px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 34px; }
.entry-content { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3.4vw, 40px); box-shadow: var(--shadow); }
.article-featured { margin: 0 0 22px; }
.article-featured img { width: 100%; border-radius: 12px; }
.article-featured figcaption { font-size: .78rem; color: var(--muted); margin-top: 8px; }
.entry-content h2 { font-size: clamp(1.3rem, 2.6vw, 1.62rem); margin-top: 1.6em; padding-left: 14px; border-left: 5px solid var(--gold); }
.entry-content h2:first-child { margin-top: .2em; }
.entry-content h3 { font-size: 1.16rem; margin-top: 1.35em; color: var(--ink-3); }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul li, .entry-content ol li { margin-bottom: .4em; }
.entry-content strong { color: var(--ink); }

.article-table { width: 100%; margin: 1.2em 0; font-size: .92rem; }
.article-table th { background: var(--ink); color: #ffd76a; text-align: left; padding: 10px 12px; }
.article-table th:first-child { border-radius: 10px 0 0 0; }
.article-table th:last-child { border-radius: 0 10px 0 0; }
.article-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-table tr:nth-child(even) td { background: #f2f5fd; }

.callout {
  display: flex; gap: 12px; align-items: flex-start;
  border-radius: 12px; padding: 14px 16px; margin: 1.2em 0; font-size: .93rem;
}
.callout__icon { font-size: 1.3rem; line-height: 1.4; flex: none; }
.callout--info { background: rgba(63, 121, 255, .08); border: 1px solid rgba(63, 121, 255, .3); }
.callout--warn { background: rgba(255, 201, 60, .12); border: 1px solid rgba(217, 154, 6, .4); }
.callout--risk { background: rgba(230, 57, 75, .08); border: 1px solid rgba(230, 57, 75, .3); }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Sidebar ---------- */
.sidebar { display: grid; gap: 20px; align-content: start; }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.side-card h2 { font-size: 1.02rem; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); display: block; }
.side-card ul { list-style: none; margin: 0; padding: 0; }
.side-card li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.side-card li:last-child { border-bottom: 0; }
.side-card li a { display: flex; gap: 8px; align-items: baseline; font-weight: 700; }
.side-cta { background: linear-gradient(160deg, var(--ink-2), var(--ink)); color: #dbe3fa; text-align: center; }
.side-cta h2 { color: var(--gold); border-bottom-color: rgba(255, 201, 60, .4); }
.side-cta p { font-size: .86rem; color: #b9c4e2; }

/* ---------- Beranda: hero ---------- */
.home-hero {
  position: relative; overflow: hidden; color: #e7ecfb;
  background:
    radial-gradient(1000px 480px at 78% -10%, rgba(63, 121, 255, .38), transparent 62%),
    radial-gradient(760px 420px at 12% 112%, rgba(255, 201, 60, .14), transparent 58%),
    radial-gradient(560px 360px at 96% 88%, rgba(230, 57, 75, .16), transparent 55%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  padding: 58px 0 50px;
}
.home-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.6px);
  background-size: 26px 26px;
}
.home-hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 34px; align-items: center; }
.home-hero h1 { color: #fff; font-size: clamp(1.85rem, 4.2vw, 3rem); letter-spacing: -.4px; margin-bottom: .5em; }
.home-hero h1 .accent { color: var(--gold); }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  padding: 6px 14px; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .6px;
  background: rgba(255, 201, 60, .13); color: var(--gold); border: 1px solid rgba(255, 201, 60, .4); text-transform: uppercase;
}
.home-hero .lead { color: #c2cdf0; font-size: 1.03rem; max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: .78rem; color: #9fb0dd; }
.hero-chips .pill { background: rgba(255, 255, 255, .07); color: #cfd9f5; border: 1px solid rgba(255, 255, 255, .12); }

.hero-visual { position: relative; min-width: 0; }
.hero-visual img { border-radius: 18px; border: 1px solid rgba(255, 255, 255, .14); box-shadow: var(--shadow-lg); }
.hero-card {
  position: absolute; left: -12px; bottom: 18px; max-width: 240px;
  background: rgba(11, 18, 38, .92); border: 1px solid rgba(255, 201, 60, .45); border-radius: 14px;
  padding: 12px 14px; font-size: .8rem; color: #dbe3fa; box-shadow: var(--shadow-lg);
}
.hero-card strong { color: var(--gold); display: block; font-size: .86rem; }

/* ---------- Awan tag pencarian populer ---------- */
.tagcloud-sec { background: var(--ink-3); padding: 18px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.tagcloud { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tagcloud__title { color: var(--gold); font-size: .8rem; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; margin-right: 6px; }
.tag {
  display: inline-block; padding: 5px 13px; border-radius: 999px; font-size: .8rem; font-weight: 700;
  color: #cfd9f5; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  transition: background .15s, color .15s;
}
.tag:hover { background: var(--gold); color: #241a00; text-decoration: none; }
.tag--hot { border-color: rgba(230, 57, 75, .55); color: #ffb3bb; }
.tag--hot:hover { background: var(--red); color: #fff; }

/* ---------- Seksi generik ---------- */
.section { padding: 52px 0; }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); border-block: 1px solid var(--line); }
.section--ink {
  background:
    radial-gradient(800px 300px at 15% 0%, rgba(63, 121, 255, .2), transparent 60%),
    radial-gradient(700px 320px at 92% 100%, rgba(255, 201, 60, .12), transparent 55%),
    var(--ink-2);
  color: #c2cdf0;
}
.section--ink h2, .section--ink h3 { color: #fff; }
.sec-head { max-width: 760px; margin-bottom: 30px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin-bottom: .35em; }
.sec-head .sec-kicker { color: var(--blue-deep); font-weight: 900; font-size: .78rem; letter-spacing: 1.2px; text-transform: uppercase; display: block; margin-bottom: 8px; }
.section--ink .sec-head .sec-kicker { color: var(--gold); }
.sec-head p { color: var(--muted); margin: 0; }
.section--ink .sec-head p { color: #9fb0dd; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* ---------- Kartu umum ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); position: relative;
}
.card h3 { font-size: 1.05rem; margin-bottom: .4em; }
.card p { margin: 0; font-size: .92rem; color: var(--muted); }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 14px; font-size: 1.5rem; margin-bottom: 12px; background: rgba(63, 121, 255, .1);
}
.card--gold-top::before {
  content: ""; position: absolute; top: 0; left: 22px; right: 22px; height: 4px;
  border-radius: 0 0 6px 6px; background: linear-gradient(90deg, var(--gold), var(--red));
}

/* ---------- Langkah 4 (pemula) ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.step-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px 20px; box-shadow: var(--shadow); counter-increment: step; position: relative; }
.step-card::before {
  content: "0" counter(step); position: absolute; top: -14px; left: 18px;
  font-size: 1.05rem; font-weight: 900; color: #241a00;
  background: linear-gradient(180deg, #ffd76a, var(--gold-deep)); border-radius: 10px; padding: 2px 12px;
  box-shadow: 0 4px 12px rgba(255, 201, 60, .45);
}
.step-card h3 { margin-top: 12px; font-size: 1.02rem; }
.step-card p { font-size: .9rem; color: var(--muted); margin-bottom: 0; }
.step-card .step-link { display: inline-block; margin-top: 10px; font-size: .84rem; font-weight: 800; }

/* ---------- Kartu promosi ---------- */
.promo-card { display: flex; flex-direction: column; gap: 10px; overflow: hidden; padding: 0; }
.promo-card__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px 0; }
.promo-card__emoji { font-size: 1.7rem; flex: none; }
.promo-card h3 { margin: 0; font-size: 1.02rem; }
.promo-card__body { padding: 0 20px 4px; font-size: .9rem; color: var(--muted); margin: 0; }
.promo-card__terms { list-style: none; margin: 0; padding: 0 20px 8px; font-size: .8rem; color: var(--muted); }
.promo-card__terms li { display: flex; gap: 6px; padding: 3px 0; }
.promo-card__terms li::before { content: "✔"; color: var(--green-deep); font-weight: 900; flex: none; }
.promo-card__foot { margin-top: auto; padding: 12px 20px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.promo-card__foot .more { font-weight: 800; font-size: .88rem; }

/* ---------- Sorotan merek ---------- */
.hl-card { text-align: left; }
.hl-card .badge-num {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--ink); color: var(--gold); font-weight: 900; font-size: .85rem; margin-bottom: 8px;
}

/* ---------- Bagian mobile ---------- */
.mobile-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 34px; align-items: center; }
.mobile-grid .mobile-img img { border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: "✅"; flex: none; }
.checklist li b { color: var(--ink); }

/* ---------- Testimoni pembaca ---------- */
.testi-card { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 22px; color: #cfd9f5; box-shadow: none; }
.testi-card .stars { color: var(--gold); letter-spacing: 2px; font-size: .9rem; margin-bottom: 8px; }
.testi-card blockquote { margin: 0 0 14px; font-size: .93rem; }
.testi-card figcaption { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: #9fb0dd; }
.testi-card .avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 900; color: #241a00;
  background: linear-gradient(180deg, #ffd76a, var(--gold-deep));
}
.testi-note { font-size: .76rem; color: #7488b8; margin-top: 18px; text-align: center; }

/* ---------- Laboratorium Anggaran (inovasi) ---------- */
.lab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: stretch; }
.lab-form-card { background: var(--ink-2); color: #dbe3fa; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line-dark); }
.lab-form-card h3 { color: var(--gold); }
.lab-form-card label { display: block; font-weight: 800; font-size: .86rem; margin: 14px 0 6px; }
.lab-form-card input {
  width: 100%; padding: 12px 14px; border-radius: 10px; font-family: var(--font); font-size: 1rem;
  border: 1px solid var(--line-dark); background: #0e1730; color: #fff;
}
.lab-form-card input:focus { outline: 2px solid var(--blue); }
.lab-form-card .hint { font-size: .76rem; color: #8fa0cc; margin-top: 4px; }
.lab-out { display: grid; gap: 12px; align-content: start; }
.lab-stat { background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--blue); border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow); }
.lab-stat:nth-child(2) { border-left-color: var(--gold); }
.lab-stat:nth-child(3) { border-left-color: var(--green); }
.lab-stat dt { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.lab-stat dd { margin: 2px 0 0; font-size: 1.3rem; font-weight: 900; color: var(--ink); }
.lab-note { font-size: .78rem; color: var(--muted); background: #fff7e2; border: 1px solid rgba(217, 154, 6, .35); border-radius: 10px; padding: 10px 14px; }

/* ---------- Keamanan & RG ---------- */
.rg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.rg-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.rg-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.03rem; }
.rg-card ul { font-size: .9rem; color: var(--muted); margin-bottom: 0; }
.rg-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(120deg, rgba(230, 57, 75, .16), rgba(255, 201, 60, .12));
  border: 1.5px solid rgba(230, 57, 75, .4); border-radius: var(--radius); padding: 20px 24px;
}
.rg-banner p { margin: 0; font-size: .95rem; }
.rg-banner strong { color: var(--red-deep); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq-list details {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); overflow: hidden;
}
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 18px; font-weight: 800; color: var(--ink); font-size: .98rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.3rem; color: var(--blue-deep); font-weight: 900; flex: none; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details[open] summary { border-bottom: 1px dashed var(--line); color: var(--blue-deep); }
.faq-list .faq-a { padding: 14px 18px; font-size: .93rem; color: var(--muted); margin: 0; }

/* ---------- Pita CTA ---------- */
.cta-band { padding: 46px 0; background: linear-gradient(120deg, var(--ink) 0%, var(--ink-3) 55%, var(--ink-2) 100%); position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px 200px at 88% 20%, rgba(255, 201, 60, .2), transparent 60%);
}
.cta-band .container { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band h2 { color: #fff; font-size: clamp(1.3rem, 2.6vw, 1.75rem); margin: 0 0 6px; }
.cta-band p { color: #9fb0dd; margin: 0; font-size: .95rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* ---------- Formir (daftar/masuk) ---------- */
.form-wrap { padding: 40px 0 60px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 30px; align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
.form-card h2 { margin-bottom: 6px; }
.form-card .form-sub { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 800; font-size: .88rem; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line);
  background: #fbfcff; font-size: 1rem; font-family: var(--font); color: var(--text);
}
.field input:focus { outline: 2.5px solid var(--blue); border-color: var(--blue); }
.field .hint { font-size: .76rem; color: var(--muted); margin-top: 4px; }
.field--check { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--muted); }
.field--check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--blue-deep); }
.form-note { font-size: .78rem; color: var(--muted); background: #f2f5fd; border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 16px; }

/* ---------- Pencarian ---------- */
.searchbar { display: flex; gap: 8px; margin-bottom: 8px; }
.searchbar input {
  flex: 1; min-width: 0; padding: 13px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); font-size: 1rem; font-family: var(--font); background: #fff;
}
.searchbar input:focus { outline: 2.5px solid var(--blue); }
.search-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.search-tags .tag { background: var(--white); border-color: var(--line); color: var(--blue-deep); }
.search-tags .tag:hover { background: var(--blue-deep); color: #fff; }
.result-card {
  display: flex; gap: 14px; align-items: flex-start; background: var(--white);
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow);
}
.result-card:hover { text-decoration: none; border-color: var(--blue); }
.result-card__icon { font-size: 1.4rem; flex: none; }
.result-card__body { display: grid; gap: 4px; min-width: 0; }
.result-card__body strong { color: var(--ink); font-size: .96rem; }
.result-card__body span { font-size: .84rem; color: var(--muted); }
.result-grid { display: grid; gap: 12px; margin-top: 20px; }

/* ---------- Hub promosi ---------- */
.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.hub-card { display: flex; gap: 18px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.hub-card__emoji { font-size: 2rem; flex: none; }
.hub-card h3 { font-size: 1.06rem; margin-bottom: .35em; }
.hub-card p { font-size: .9rem; color: var(--muted); }
.hub-card .more { font-weight: 800; font-size: .88rem; }

/* ---------- Footer ---------- */
.site-footer { background: #070d1d; color: #aab6d8; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 2.1fr 1fr 1fr 1.6fr; gap: 34px; padding: 48px 0 34px; }
.footer-col .brand { margin-bottom: 14px; }
.footer-col p { font-size: .84rem; color: #8fa0cc; }
.footer-title { font-size: .86rem; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.footer-col ul li { padding: 5px 0; }
.footer-col ul a { color: #c2cdf0; }
.footer-col ul a:hover { color: var(--gold); }
.footer-rg { font-size: .82rem !important; }
.footer-legal-line { font-size: .78rem !important; color: #7488b8 !important; }
.footer-region { font-size: .76rem; color: #7488b8; border-top: 1px dashed var(--line-dark); padding-top: 12px; margin-top: 12px; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 18px 0 112px; }
.footer-bottom p { font-size: .78rem; color: #7488b8; margin: 0 0 6px; text-align: center; }
.footer-disclaim { font-style: italic; }

/* ---------- Floatbar (tombol slot + koin) ---------- */
.floatbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; pointer-events: none; }
.floatbar__inner {
  pointer-events: auto; display: flex; align-items: center; justify-content: center; gap: 8px;
  width: max-content; max-width: calc(100% - 16px); margin: 0 auto 10px;
  padding: 7px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(22, 34, 74, .97), rgba(11, 18, 38, .97));
  border: 1.5px solid rgba(255, 201, 60, .55);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .3);
  animation: fabglow 2.6s ease-in-out infinite;
}
@keyframes fabglow {
  0%, 100% { box-shadow: 0 10px 34px rgba(0, 0, 0, .55), 0 0 14px rgba(255, 201, 60, .25); }
  50% { box-shadow: 0 10px 34px rgba(0, 0, 0, .55), 0 0 30px rgba(255, 201, 60, .55); }
}
.fbtn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; font-weight: 900; letter-spacing: .6px;
  font-size: 1rem; color: #fff; text-decoration: none !important; overflow: hidden;
}
.fbtn--daftar { background: linear-gradient(180deg, #f4637a, var(--red-deep)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 14px rgba(230, 57, 75, .5); }
.fbtn--masuk { background: linear-gradient(180deg, #6f9aff, var(--blue-deep)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 4px 14px rgba(63, 121, 255, .45); }
.fbtn:active { transform: scale(.97); }
.fbtn__reel { width: 20px; height: 20px; overflow: hidden; flex: none; border-radius: 5px; background: rgba(0, 0, 0, .28); }
.fbtn__reel i { display: block; font-style: normal; line-height: 20px; font-size: 14px; text-align: center; animation: reelroll 1.9s linear infinite; }
@keyframes reelroll { from { transform: translateY(0); } to { transform: translateY(-75%); } }
.floatbar__jackpot {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  font-size: .66rem; font-weight: 900; letter-spacing: 1.4px; color: var(--gold);
  padding: 0 4px; animation: blinkjack 1.6s ease-in-out infinite;
}
.floatbar__jackpot i { font-style: normal; }
@keyframes blinkjack { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.fbtn__coins, .floatbar__coins { pointer-events: none; }
.fbtn__coins i, .floatbar__coins i {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffe9a3, var(--gold-deep) 72%);
  box-shadow: 0 0 6px rgba(255, 201, 60, .8);
}
.fbtn__coins i { left: 12%; bottom: 4px; opacity: 0; animation: coinup 1.7s ease-out infinite; }
.fbtn__coins i:nth-child(2) { left: 46%; animation-delay: .45s; }
.fbtn__coins i:nth-child(3) { left: 74%; animation-delay: .9s; }
@keyframes coinup {
  0% { transform: translateY(0) scale(.6); opacity: 0; }
  22% { opacity: 1; }
  100% { transform: translateY(-46px) scale(1.05); opacity: 0; }
}
.floatbar__coins { position: absolute; inset: 0; overflow: hidden; border-radius: 999px; }
.floatbar__coins i { top: -12px; animation: coinfall 3.2s linear infinite; opacity: 0; }
.floatbar__coins i:nth-child(1) { left: 6%; animation-delay: 0s; }
.floatbar__coins i:nth-child(2) { left: 22%; animation-delay: 1.1s; }
.floatbar__coins i:nth-child(3) { left: 41%; animation-delay: 2.2s; }
.floatbar__coins i:nth-child(4) { left: 58%; animation-delay: .6s; }
.floatbar__coins i:nth-child(5) { left: 74%; animation-delay: 1.7s; }
.floatbar__coins i:nth-child(6) { left: 90%; animation-delay: 2.7s; }
@keyframes coinfall {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: .95; }
  82% { opacity: .8; }
  100% { transform: translateY(66px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ============ Responsif ============ */
@media (max-width: 1100px) {
  .menu > .menu-item > a { padding: 9px 8px; font-size: .88rem; }
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer-col:nth-child(4) { grid-column: 1 / -1; }
}

@media (max-width: 1280px) {
  .hdr-actions { margin-left: auto; }
  .main-navigation {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); z-index: 980;
    background: var(--ink-2); border-left: 1px solid var(--line-dark);
    margin: 0; padding: 86px 18px 30px; overflow-y: auto;
    display: none; /* display:none (bukan translateX) agar tidak menambah scrollWidth */
  }
  body.nav-open .main-navigation { display: block; animation: navin .22s ease; }
  @keyframes navin { from { opacity: .3; } to { opacity: 1; } }
  .menu { display: block; }
  .menu > .menu-item > a { padding: 12px 14px; font-size: 1rem; border-bottom: 1px solid rgba(255, 255, 255, .06); border-radius: 10px; }
  .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    display: none; box-shadow: none; background: rgba(0, 0, 0, .25); border: 0; margin: 2px 0 6px; min-width: 0;
  }
  .menu-item-has-children.is-open > .sub-menu { display: block; }
  .nav-toggle { display: block; }
  .menu-item--m-search { display: block; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .mobile-grid { grid-template-columns: 1fr; }
  .mobile-grid .mobile-img { order: -1; }
  .lab { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2, .rg-grid, .hub-grid, .form-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-col:nth-child(1) { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .hdr-search { display: none; }
  .topbar__right span:not(.badge--18) { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .section { padding: 38px 0; }
  .site-header .container { gap: 10px; min-height: 58px; }
  .brand { gap: 8px; }
  .brand svg { width: 36px; height: 36px; }
  .brand__name { font-size: 1.08rem; }
  .brand__tag { display: none; }
  .hdr-actions { gap: 7px; }
  .hdr-actions .btn--sm { padding: 7px 12px; font-size: .8rem; }
  .nav-toggle { width: 40px; height: 40px; }
  .steps, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .home-hero { padding: 40px 0 36px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-card { position: static; max-width: none; margin-top: 12px; }
  .article-table { display: block; overflow-x: auto; white-space: nowrap; }
  .hub-card { flex-direction: column; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; padding-top: 34px; }
  .footer-bottom { padding-bottom: 118px; }
  .fbtn { padding: 10px 16px; font-size: .95rem; }
  .floatbar__jackpot { display: none; }
  .tag { font-size: .76rem; padding: 4px 11px; }
}

@media (max-width: 400px) {
  .container { width: min(1180px, 100% - 20px); }
  .site-header .container { gap: 6px; min-height: 52px; }
  .brand { gap: 5px; }
  .brand svg { width: 30px; height: 30px; }
  .brand__name { font-size: .96rem; }
  .brand__tag { display: none; }
  .hdr-actions { gap: 5px; }
  .hdr-actions .btn--sm { padding: 5px 9px; font-size: .74rem; }
  .nav-toggle { width: 36px; height: 36px; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .cta-band__actions { flex-wrap: wrap; }
  .fbtn { padding: 9px 12px; font-size: .9rem; gap: 6px; }
  .fbtn__reel { display: none; }
}

/* ---------- Cetak ---------- */
@media print {
  .site-header, .topbar, .floatbar, .site-footer, .cta-band, .hdr-actions, .breadcrumb { display: none !important; }
  body { background: #fff; color: #000; }
}
