/*
Theme Name: Ahha4d
Theme URI: https://ahha4d.games/
Author: Ahha4d Redaksi
Description: Tema portal informasi hiburan Ahha4d — slot, live casino, poker, sportsbook. Prarender statis, responsif, SEO-ready.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: ahha4d
*/

/* ===== 1. Desain dasar ===== */
:root {
  --ink: #0d0a10;
  --bg: #140e18;
  --bg2: #1b1322;
  --surface: #241a2e;
  --gold: #f5b301;
  --gold2: #ffd34d;
  --red: #e22637;
  --red2: #b3121f;
  --green: #17a563;
  --green2: #2fd08a;
  --blue: #2f6df6;
  --paper: #ffffff;
  --paper2: #f8f5ef;
  --line: #e9e2d6;
  --mut: #6f6675;
  --txt: #262031;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(13, 10, 16, .12);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--txt);
  background: var(--paper);
  padding-bottom: 72px; /* ruang bilah melayang tanpa menambah blok kosong besar */
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: .4em; }
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 28px); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 300; }

/* ===== 2. Utilitas ===== */
.section { padding: clamp(44px, 7vw, 84px) 0; }
.section-dark { background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%); color: #efeaf2; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-paper { background: var(--paper); }
.section-tint { background: var(--paper2); }
.section-green { background: linear-gradient(135deg, #0c2b1e 0%, #103a27 100%); color: #e7f6ee; }
.section-green h2, .section-green h3 { color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 12px;
}
.section-dark .eyebrow, .section-green .eyebrow { color: var(--gold); }
.lead { font-size: 1.06rem; color: var(--mut); max-width: 720px; }
.section-dark .lead, .section-green .lead { color: #cfc7d6; }
.section-head { max-width: 780px; margin-bottom: clamp(24px, 4vw, 44px); }
.center { text-align: center; margin-inline: auto; }
.grid { display: grid; gap: clamp(14px, 2.4vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.auto-fit { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.note { font-size: .86rem; color: var(--mut); }
.badge {
  display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase;
}
.badge-18 { background: var(--red); color: #fff; }
.badge-gold { background: rgba(245, 179, 1, .16); color: #8a6200; }
.section-dark .badge-gold { background: rgba(245, 179, 1, .18); color: var(--gold2); }

/* Tombol */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 800; font-size: .95rem;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #231500; box-shadow: 0 6px 18px rgba(245, 179, 1, .35); }
.btn-gold:hover { filter: brightness(1.06); }
.btn-red { background: linear-gradient(180deg, #ef2c3e, var(--red2)); color: #fff; box-shadow: 0 6px 18px rgba(226, 38, 55, .35); }
.btn-ghost { border-color: rgba(245, 179, 1, .55); color: var(--gold2); }
.btn-ghost:hover { background: rgba(245, 179, 1, .1); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-lg { font-size: 1.05rem; padding: 15px 32px; }

/* ===== 3. Topbar & header ===== */
.topbar { background: #0b070d; color: #cfc7d6; font-size: .8rem; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 7px; min-height: 34px; }
.topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-left .badge-18 { flex: none; }
.topbar-left span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar a { color: var(--gold2); font-weight: 700; white-space: nowrap; }
.site-header { position: sticky; top: 0; z-index: 120; background: rgba(16, 10, 20, .96); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(245, 179, 1, .25); }
.header-in { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff !important; font-weight: 800; font-size: 1.35rem; text-decoration: none !important; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand b { color: var(--gold); font-weight: 800; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a { color: #efeaf2; font-weight: 600; font-size: .92rem; padding: 9px 12px; border-radius: 10px; }
.main-nav a:hover { color: var(--gold2); background: rgba(245, 179, 1, .1); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(245, 179, 1, .4); background: transparent; color: var(--gold2); cursor: pointer; }
.icon-btn:hover { background: rgba(245, 179, 1, .12); }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.nav-toggle { display: none; }

/* ===== 4. Hero ===== */
.hero { position: relative; background: radial-gradient(1100px 500px at 80% -10%, rgba(245, 179, 1, .16), transparent 60%), linear-gradient(180deg, #170e1c 0%, #1e1226 70%, #2a1023 100%); color: #f4eef6; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(180deg, transparent, rgba(13, 10, 16, .35)); pointer-events: none; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 56px); align-items: center; padding: clamp(44px, 7vw, 92px) 0; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.6vw, 3.3rem); margin-bottom: 18px; }
.hero h1 .hl { color: var(--gold); }
.hero p { color: #d8d0e0; font-size: 1.08rem; max-width: 560px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.hero-chip { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 700; color: #e9e2f0; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); padding: 6px 12px; border-radius: 999px; }
.hero-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-media { position: relative; }
.hero-media img { border-radius: 20px; border: 1px solid rgba(245, 179, 1, .5); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.hero-float { position: absolute; background: rgba(16, 10, 20, .92); border: 1px solid rgba(245, 179, 1, .45); color: #fff; border-radius: 14px; padding: 10px 14px; font-size: .82rem; font-weight: 700; box-shadow: 0 10px 26px rgba(0, 0, 0, .4); }
.hero-float b { color: var(--gold); display: block; font-size: .92rem; }
.hf-1 { top: -14px; left: -10px; }
.hf-2 { bottom: -14px; right: -6px; }

/* ===== 5. Langkah / kartu umum ===== */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 20px); }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; position: relative; counter-increment: step; box-shadow: var(--shadow); }
.step-card::before { content: "0" counter(step); font-size: 2.1rem; font-weight: 800; color: rgba(245, 179, 1, .85); line-height: 1; display: block; margin-bottom: 10px; }
.step-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step-card p { font-size: .9rem; color: var(--mut); margin: 0; }
.step-card .step-link { display: inline-block; margin-top: 10px; font-size: .84rem; font-weight: 700; color: var(--red); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 1.08rem; margin: 0; }
.card-body p { font-size: .9rem; color: var(--mut); margin: 0; flex: 1; }
.card-link { font-size: .86rem; font-weight: 800; color: var(--red); }
.card-img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.game-card .card-img { aspect-ratio: 4 / 3; }

/* kartu gelap */
.glass-card { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 22px; backdrop-filter: blur(6px); }
.glass-card h3 { font-size: 1.02rem; margin-bottom: 6px; color: #fff; display: flex; align-items: center; gap: 10px; }
.glass-card p { font-size: .88rem; color: #cfc7d6; margin: 0; }
.ico { width: 38px; height: 38px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(245, 179, 1, .15); color: var(--gold); }
.ico svg { width: 20px; height: 20px; }

/* ===== 6. Mengapa memilih / statistik ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
.check-list { list-style: none; padding: 0; margin: 0 0 18px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.check-list .ck { flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(23, 165, 99, .14); color: var(--green); display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.check-list .ck svg { width: 14px; height: 14px; }
.check-list b { display: block; }
.check-list span { color: var(--mut); font-size: .92rem; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-align: center; }
.stat b { display: block; font-size: 1.7rem; color: var(--red); line-height: 1.2; }
.stat span { font-size: .82rem; color: var(--mut); font-weight: 600; }

/* ===== 7. Telepon (bagian seluler) ===== */
.phone { width: min(280px, 78%); margin-inline: auto; border: 10px solid #120d16; border-radius: 34px; background: #fff; box-shadow: 0 30px 60px rgba(13, 10, 16, .35); overflow: hidden; }
.phone-notch { width: 90px; height: 16px; background: #120d16; border-radius: 0 0 12px 12px; margin: 0 auto; }
.phone-screen { padding: 12px; }
.phone-bar { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(180deg, var(--gold2), var(--gold)); border-radius: 10px; padding: 8px 12px; font-weight: 800; font-size: .85rem; color: #231500; margin-bottom: 10px; }
.phone-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.phone-tile { border-radius: 10px; padding: 10px 8px; font-size: .7rem; font-weight: 700; text-align: center; }
.phone-tile small { display: block; font-weight: 600; opacity: .75; font-size: .62rem; }
.pt-red { background: #fde8ea; color: var(--red2); }
.pt-green { background: #e3f7ee; color: #0d7a49; }
.pt-blue { background: #e8effe; color: #1d4fd7; }
.pt-gold { background: #fff4d6; color: #8a6200; }
.phone-cta { display: block; margin-top: 10px; background: var(--red); color: #fff; border-radius: 10px; text-align: center; padding: 9px; font-size: .78rem; font-weight: 800; }

/* ===== 8. Tag populer / pencarian ===== */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag-pill { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--line); color: var(--txt); border-radius: 999px; padding: 8px 16px; font-size: .86rem; font-weight: 700; box-shadow: 0 3px 10px rgba(13, 10, 16, .06); }
.tag-pill:hover { border-color: var(--gold); color: var(--ink); text-decoration: none; transform: translateY(-1px); }
.tag-pill .fire { color: var(--red); font-size: .8rem; }

/* ===== 9. Kalkulator ===== */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 30px); align-items: stretch; }
.calc-form { background: #fff; border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow); }
.calc-form label { display: block; font-weight: 700; font-size: .9rem; margin: 14px 0 6px; }
.calc-form label:first-child { margin-top: 0; }
.calc-form input[type="number"], .calc-form select {
  width: 100%; font-family: var(--font); font-size: 1rem; padding: 12px 14px;
  border: 2px solid var(--line); border-radius: 12px; background: var(--paper2); color: var(--txt);
}
.calc-form input:focus, .calc-form select:focus { outline: none; border-color: var(--gold); }
.calc-result { background: rgba(13, 10, 16, .55); border: 1px solid rgba(245, 179, 1, .4); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); color: #fff; display: flex; flex-direction: column; gap: 14px; }
.calc-result h3 { margin: 0; font-size: 1.05rem; color: var(--gold2); }
.calc-big { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; color: #fff; line-height: 1.2; }
.calc-big small { display: block; font-size: .82rem; font-weight: 600; color: #cfc7d6; }
.calc-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed rgba(255, 255, 255, .2); font-size: .92rem; }
.calc-row b { color: var(--gold2); }
.calc-note { font-size: .82rem; color: #cfc7d6; margin: 0; }

/* ===== 10. Testimoni ===== */
.testi { position: relative; }
.testi .card-body { gap: 10px; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: .9rem; }
.testi q { quotes: none; font-size: .92rem; color: var(--txt); }
.testi-user { display: flex; align-items: center; gap: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem; color: #fff; }
.av-1 { background: linear-gradient(135deg, #e22637, #f5b301); }
.av-2 { background: linear-gradient(135deg, #17a563, #2fd08a); }
.av-3 { background: linear-gradient(135deg, #2f6df6, #6ea8ff); }
.av-4 { background: linear-gradient(135deg, #7a3ff2, #b28cff); }
.testi-user b { display: block; font-size: .9rem; line-height: 1.3; }
.testi-user span { font-size: .78rem; color: var(--mut); }

/* ===== 11. Keamanan & RG ===== */
.tip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tip { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.tip .ico { background: #fde8ea; color: var(--red); }
.tip b { display: block; font-size: .94rem; }
.tip span { font-size: .84rem; color: var(--mut); }
.rg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rg-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 22px; }
.rg-card h3 { color: #fff; font-size: 1.02rem; display: flex; align-items: center; gap: 10px; }
.rg-card .ico { background: rgba(47, 208, 138, .16); color: var(--green2); }
.rg-card p, .rg-card li { color: #d9efe3; font-size: .9rem; }

/* ===== 12. FAQ ===== */
.faq-wrap { max-width: 820px; margin-inline: auto; }
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; box-shadow: 0 4px 14px rgba(13, 10, 16, .05); }
details.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 20px; font-weight: 800; font-size: .98rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .plus { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #231500; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; transition: transform .2s ease; }
details.faq[open] summary .plus { transform: rotate(45deg); }
details.faq .faq-a { padding: 0 20px 18px; color: var(--mut); font-size: .93rem; }
details.faq .faq-a a { font-weight: 700; }

/* ===== 13. Pita CTA ===== */
.cta-band { background: linear-gradient(120deg, #8f1020 0%, #c1172b 55%, #e22637 100%); color: #fff; border-block: 4px solid var(--gold); }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.cta-band p { color: #ffe3e7; max-width: 640px; margin-inline: auto; }
.cta-band .btn-gold { margin-top: 6px; }
.cta-band .note { color: #ffd9de; margin-top: 14px; }

/* ===== 14. Footer ===== */
.site-footer { background: #0d0a10; color: #cfc7d6; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(20px, 4vw, 44px); padding: clamp(36px, 6vw, 60px) 0 30px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; letter-spacing: .04em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #cfc7d6; }
.site-footer a:hover { color: var(--gold2); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.3rem; margin-bottom: 12px; }
.footer-brand b { color: var(--gold); }
.footer-brand svg { width: 34px; height: 34px; }
.footer-pay { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; }
.pay-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #9a91a3; margin-bottom: 10px; font-weight: 700; }
.pay-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-chip { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: #e9e2f0; border-radius: 8px; padding: 5px 12px; font-size: .8rem; font-weight: 700; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0 26px; font-size: .8rem; color: #9a91a3; }
.footer-legal p { margin: 0 0 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0; font-size: .82rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== 15. Breadcrumb ===== */
.breadcrumb { background: var(--paper2); border-bottom: 1px solid var(--line); font-size: .82rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0; margin: 0; }
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--mut); }
.breadcrumb li + li::before { content: "›"; color: var(--gold); font-weight: 800; }
.breadcrumb a { color: var(--mut); font-weight: 600; }
.breadcrumb b { color: var(--ink); font-weight: 700; }

/* ===== 16. Halaman artikel ===== */
.page-hero { background: linear-gradient(120deg, #170e1c, #2a1023); color: #fff; padding: clamp(36px, 6vw, 64px) 0; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 240px at 85% 0%, rgba(245, 179, 1, .18), transparent 65%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.6rem); max-width: 840px; }
.page-hero .desc { color: #d8d0e0; max-width: 760px; font-size: 1.02rem; }
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; font-size: .82rem; color: #bfb6ca; }
.meta-line .badge { font-size: .7rem; }
.entry-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 48px); padding: clamp(32px, 5vw, 60px) 0; align-items: start; }
.entry { max-width: 760px; }
.entry img.rounded { border-radius: 16px; box-shadow: var(--shadow); margin: 6px 0 18px; }
.entry h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 1.6em 0 .6em; }
.entry h2:first-child { margin-top: 0; }
.entry h3 { font-size: 1.12rem; margin: 1.4em 0 .5em; }
.entry p { color: #3c3546; }
.entry ul li, .entry ol li { color: #3c3546; }
.entry .fig-cap { font-size: .82rem; color: var(--mut); margin: -10px 0 18px; }
.entry table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 0 0 1.4em; }
.entry table th { background: var(--ink); color: #fff; text-align: left; padding: 10px 12px; font-size: .84rem; }
.entry table td { border: 1px solid var(--line); padding: 10px 12px; vertical-align: top; background: #fff; }
.entry table tr:nth-child(even) td { background: var(--paper2); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.4em; }
.table-scroll table { margin-bottom: 0; min-width: 560px; }
.callout { border-left: 4px solid var(--gold); background: var(--paper2); border-radius: 0 14px 14px 0; padding: 16px 18px; margin: 0 0 1.4em; font-size: .95rem; }
.callout.green { border-left-color: var(--green); }
.callout.red { border-left-color: var(--red); }
.callout b { display: block; margin-bottom: 4px; }
.info-box { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 1.4em; }
.info-box .ib { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; }
.info-box .ib b { display: block; color: var(--red); font-size: 1.15rem; }
.info-box .ib span { font-size: .78rem; color: var(--mut); font-weight: 600; }
.kicker-list { counter-reset: kb; list-style: none; padding: 0; }
.kicker-list li { counter-increment: kb; position: relative; padding-left: 44px; margin-bottom: 12px; }
.kicker-list li::before { content: counter(kb); position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 10px; background: rgba(245, 179, 1, .18); color: #8a6200; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .9rem; }

/* Sidebar */
.sidebar { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.side-card h3 { font-size: .98rem; margin-bottom: 12px; }
.side-card ul { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.side-card li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.side-card li:last-child { border-bottom: 0; }
.side-cta { background: linear-gradient(150deg, #1e1226, #2a1023); color: #fff; text-align: center; }
.side-cta h3 { color: var(--gold2); }
.side-cta p { font-size: .86rem; color: #d8d0e0; }
.side-cta .btn { width: 100%; margin-top: 6px; }

/* Promo cards */
.promo-card { display: flex; flex-direction: column; }
.promo-tag { position: absolute; }
.promo-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.promo-val { font-size: 1.5rem; font-weight: 800; color: var(--red); }
.promo-mini li { font-size: .84rem; color: var(--mut); }
.toc { background: var(--paper2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 1.6em; }
.toc b { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mut); margin-bottom: 8px; }
.toc ul { list-style: none; padding: 0; margin: 0; font-size: .9rem; columns: 2; column-gap: 20px; }
.toc ul li { margin-bottom: 5px; }
@media (max-width: 640px) { .toc ul { columns: 1; } }

/* Formulir auth */
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(32px, 5vw, 64px) 0; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--mut); font-size: .93rem; margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
.field input { width: 100%; font-family: var(--font); font-size: 1rem; padding: 13px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--paper2); color: var(--txt); }
.field input:focus { outline: none; border-color: var(--gold); }
.field .hint { font-size: .78rem; color: var(--mut); margin-top: 5px; }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--mut); margin: 4px 0 18px; }
.check-line input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--red); }
.auth-alt { text-align: center; font-size: .88rem; color: var(--mut); margin-top: 16px; }
.auth-note { display: flex; gap: 10px; background: #fff4d6; border: 1px solid #ecd28a; color: #6b5410; border-radius: 12px; padding: 12px 14px; font-size: .8rem; margin-top: 18px; }
.auth-visual { position: relative; }
.auth-visual img { border-radius: 20px; box-shadow: 0 24px 60px rgba(13, 10, 16, .35); }

/* ===== 17. Bilah melayang (slot) ===== */
.float-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: linear-gradient(180deg, rgba(16, 10, 20, .97), rgba(9, 5, 12, .99)); border-top: 2px solid var(--gold); box-shadow: 0 -12px 34px rgba(0, 0, 0, .5); }
.float-in { display: flex; align-items: center; gap: 14px; min-height: 64px; padding-block: 8px; }
.fb-reels { display: flex; gap: 6px; flex: none; }
.reel { width: 34px; height: 40px; overflow: hidden; background: linear-gradient(180deg, #2a1f33, #171019); border: 1px solid rgba(245, 179, 1, .55); border-radius: 8px; position: relative; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 35%, transparent 65%, rgba(0, 0, 0, .55)); pointer-events: none; }
.reel-strip { display: flex; flex-direction: column; align-items: center; font-size: 17px; line-height: 40px; animation: reelSpin 2.4s linear infinite; will-change: transform; }
.reel-strip span { height: 40px; }
.reel:nth-child(2) .reel-strip { animation-duration: 3.1s; }
.reel:nth-child(3) .reel-strip { animation-duration: 2.7s; }
@keyframes reelSpin { 0% { transform: translateY(0); } 100% { transform: translateY(-240px); } }
.fb-text { display: flex; flex-direction: column; line-height: 1.25; margin-right: auto; min-width: 0; }
.fb-text b { color: var(--gold2); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-text span { color: #bfb6ca; font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-cta { display: flex; gap: 10px; flex: none; position: relative; }
.fb-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 108px; padding: 11px 20px; border-radius: 999px; font-weight: 800; font-size: .92rem; letter-spacing: .04em; text-decoration: none !important; overflow: visible; }
.fb-daftar { background: linear-gradient(180deg, var(--gold2), #e09e00); color: #231500; box-shadow: 0 0 0 3px rgba(245, 179, 1, .28), 0 8px 20px rgba(245, 179, 1, .45); animation: fbPulse 1.8s ease-in-out infinite; }
.fb-masuk { background: linear-gradient(180deg, #ef2c3e, var(--red2)); color: #fff; box-shadow: 0 0 0 3px rgba(226, 38, 55, .25), 0 8px 20px rgba(226, 38, 55, .4); }
@keyframes fbPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.fb-coin { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe9a8, var(--gold) 55%, #b57e00); border: 1px solid #8a6200; opacity: 0; pointer-events: none; }
.fb-cta .fb-coin:nth-child(1) { left: 8%; bottom: 30px; animation: coinUp 2.2s ease-in .1s infinite; }
.fb-cta .fb-coin:nth-child(2) { left: 30%; bottom: 34px; width: 10px; height: 10px; animation: coinUp 2.6s ease-in .8s infinite; }
.fb-cta .fb-coin:nth-child(3) { right: 26%; bottom: 32px; animation: coinUp 2.4s ease-in .4s infinite; }
.fb-cta .fb-coin:nth-child(4) { right: 6%; bottom: 36px; width: 11px; height: 11px; animation: coinUp 2.8s ease-in 1.2s infinite; }
@keyframes coinUp { 0% { opacity: 0; transform: translateY(0) rotate(0deg); } 15% { opacity: 1; } 80% { opacity: .9; } 100% { opacity: 0; transform: translateY(-56px) rotate(140deg); } }

/* ===== 18. Pencarian ===== */
.search-overlay { position: fixed; inset: 0; z-index: 260; background: rgba(10, 6, 14, .82); backdrop-filter: blur(8px); display: none; align-items: flex-start; justify-content: center; padding: clamp(60px, 12vh, 120px) 16px 30px; }
.search-overlay.open { display: flex; }
.search-panel { width: min(680px, 100%); background: #fff; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); overflow: hidden; }
.search-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.search-head svg { width: 20px; height: 20px; color: var(--mut); flex: none; }
#searchInput { flex: 1; border: 0; outline: none; font-family: var(--font); font-size: 1.05rem; color: var(--txt); background: transparent; min-width: 0; }
.search-close { border: 0; background: var(--paper2); color: var(--ink); border-radius: 10px; width: 34px; height: 34px; font-size: 1rem; cursor: pointer; flex: none; font-weight: 800; }
.search-results { max-height: min(52vh, 460px); overflow-y: auto; padding: 8px; }
.sr-item { display: block; padding: 12px 14px; border-radius: 12px; }
.sr-item:hover { background: var(--paper2); text-decoration: none; }
.sr-item b { display: block; font-size: .95rem; color: var(--ink); }
.sr-item span { font-size: .8rem; color: var(--mut); display: block; }
.sr-tag { display: inline-block; background: #fde8ea; color: var(--red2); font-size: .68rem; font-weight: 800; border-radius: 6px; padding: 2px 7px; margin-top: 5px; }
.sr-empty { padding: 26px 16px; text-align: center; color: var(--mut); font-size: .9rem; }
.search-page-results .sr-item { border: 1px solid var(--line); margin-bottom: 10px; border-radius: 14px; }

/* ===== 19. Responsif ===== */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-drawer { position: fixed; inset: 0; z-index: 250; display: none; }
  .nav-drawer.open { display: block; }
  .nav-drawer-bg { position: absolute; inset: 0; background: rgba(10, 6, 14, .7); }
  .nav-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); background: var(--bg2); padding: 22px 20px; overflow-y: auto; border-left: 1px solid rgba(245, 179, 1, .3); }
  .nav-drawer-panel .brand { margin-bottom: 20px; }
  .nav-drawer-panel nav { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }
  .nav-drawer-panel nav a { color: #efeaf2; font-weight: 700; padding: 12px 12px; border-radius: 12px; font-size: 1rem; }
  .nav-drawer-panel nav a:hover { background: rgba(245, 179, 1, .12); color: var(--gold2); text-decoration: none; }
  .nav-drawer-panel .btn { width: 100%; margin-bottom: 10px; }
  .entry-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar .side-card { flex: 1 1 260px; }
}
@media (min-width: 1025px) {
  .nav-drawer { display: none !important; }
}
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rg-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-layout { grid-template-columns: 1fr; }
  .info-box { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .tip-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .fb-text span { display: none; }
  .fb-btn { min-width: 92px; padding: 10px 14px; font-size: .85rem; }
  .reel { width: 28px; height: 34px; }
  .reel-strip { font-size: 14px; line-height: 34px; }
  .reel-strip span { height: 34px; }
  @keyframes reelSpin { 0% { transform: translateY(0); } 100% { transform: translateY(-204px); } }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .info-box { grid-template-columns: 1fr 1fr; }
  .auth-visual { display: none; }
}
@media (max-width: 400px) {
  .grid-4 { grid-template-columns: 1fr; }
  .info-box { grid-template-columns: 1fr; }
  .fb-reels .reel:nth-child(3) { display: none; }
  .topbar-left span { display: none; }
}

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

/* Cetak */
@media print {
  .float-bar, .site-header, .topbar, .search-overlay, .nav-drawer, .fb-coin { display: none !important; }
  body { padding-bottom: 0; }
}
