/* ==========================================================================
   Kapten69 — style.css (struktur kelas meniru tema WordPress)
   Tema: merah / putih / hijau / kuning / biru / hitam — kasino yang rapi
   Responsif penuh: 360px → 1920px, dengan pengaman anti-overflow.
   ========================================================================== */

:root {
  --red: #c8102e;
  --red-dark: #9c0b22;
  --red-soft: #fdecef;
  --gold: #f5b301;
  --gold-2: #ffd166;
  --gold-soft: #fff7e0;
  --green: #0e9f6e;
  --green-dark: #0a7a53;
  --green-soft: #e6f7f0;
  --blue: #1d6ff2;
  --blue-soft: #eaf1fe;
  --ink: #12121c;
  --ink-2: #1a1a2e;
  --ink-3: #23233a;
  --bg: #f7f7fb;
  --white: #ffffff;
  --text: #23222b;
  --muted: #5f5e6e;
  --line: #e6e5ee;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(18, 18, 28, 0.09);
  --shadow-lg: 0 14px 40px rgba(18, 18, 28, 0.16);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); margin: 0 0 0.6em; font-weight: 800; }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 2.4vw, 1.3rem); }
p { margin: 0 0 1em; overflow-wrap: break-word; }

ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: 0.4em; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--gold);
  color: var(--ink); padding: 8px 16px; border-radius: 0 0 8px 0; z-index: 2000; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 800; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer; text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  line-height: 1.2; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--ink); box-shadow: 0 6px 18px rgba(245, 179, 1, 0.35); }
.btn-gold:hover { box-shadow: 0 10px 24px rgba(245, 179, 1, 0.5); }
.btn-red { background: linear-gradient(180deg, var(--red), var(--red-dark)); color: #fff; box-shadow: 0 6px 18px rgba(200, 16, 46, 0.32); }
.btn-green { background: linear-gradient(180deg, #12b37d, var(--green-dark)); color: #fff; box-shadow: 0 6px 18px rgba(14, 159, 110, 0.32); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-outline-gold { background: rgba(245, 179, 1, 0.08); color: var(--gold); border-color: var(--gold); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-lg { padding: 15px 34px; font-size: 1.05rem; }

/* ---------- topbar ---------- */
.topbar { background: var(--ink); color: #cfcde0; font-size: 0.78rem; border-bottom: 1px solid #2c2c44; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; }
.topbar-note { display: inline-flex; align-items: center; gap: 8px; }
.badge-18 {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff; font-weight: 900; font-size: 0.68rem;
  border-radius: 6px; padding: 1px 6px; letter-spacing: 0.5px;
}
.topbar-date { color: #9a97b5; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(18, 18, 28, 0.06);
}
.header-in { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; }
.brand-name { font-size: 1.35rem; font-weight: 900; color: var(--ink); letter-spacing: 0.3px; white-space: nowrap; }
.brand-name b { color: var(--red); }
.brand-name small { font-size: 0.62em; color: var(--muted); font-weight: 700; display: block; margin-top: -4px; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav a {
  display: block; padding: 9px 12px; border-radius: 9px; color: var(--text);
  font-weight: 700; font-size: 0.9rem; text-decoration: none !important;
}
.main-nav a:hover { background: var(--gold-soft); color: var(--ink); }
.main-nav a.active { background: var(--red); color: #fff; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--gold-soft); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; }
.nav-toggle .bar { width: 20px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- breadcrumb ---------- */
.site-main { min-height: 50vh; }
.breadcrumb { padding: 14px 0 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 0.8rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--gold); font-weight: 800; }
.breadcrumb a { color: var(--muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 700; }

/* ---------- section umum ---------- */
.section { padding: 64px 0; }
.section-light { background: var(--white); }
.section-tint { background: var(--bg); }
.section-dark {
  background:
    radial-gradient(900px 300px at 85% -10%, rgba(200, 16, 46, 0.25), transparent 60%),
    radial-gradient(700px 280px at 8% 110%, rgba(245, 179, 1, 0.12), transparent 55%),
    linear-gradient(180deg, var(--ink), var(--ink-2));
  color: #d9d7e8;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #c9c7dd; }
.section-head { max-width: 780px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.02rem; }
.section-dark .section-head p { color: #b9b7cf; }
.eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 900; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--red); background: var(--red-soft);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section-dark .eyebrow { color: var(--gold); background: rgba(245, 179, 1, 0.14); }
.eyebrow-green { color: var(--green-dark); background: var(--green-soft); }
.eyebrow-blue { color: var(--blue); background: var(--blue-soft); }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(115deg, rgba(18, 18, 28, 0.96) 0%, rgba(30, 16, 34, 0.88) 45%, rgba(156, 11, 34, 0.72) 100%),
    url("/assets/img/hero.jpg") center 30% / cover no-repeat;
}
.hero-in { display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 40px; align-items: center; padding: 76px 0 66px; }
.hero-copy .badge-18 { font-size: 0.8rem; padding: 3px 10px; }
.hero h1 { color: #fff; margin: 16px 0 12px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-sub { color: #d9d7e8; font-size: 1.05rem; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 18px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 700;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e8e6f4; padding: 6px 12px; border-radius: 999px;
}
.trust-chip svg { color: var(--gold); flex: none; }

.hero-card {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-lg);
}
.hero-card h2 { color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.hero-card .hc-sub { font-size: 0.82rem; color: #b9b7cf; margin-bottom: 14px; }
.hero-search { display: flex; gap: 8px; }
.hero-search input {
  flex: 1; min-width: 0; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1); color: #fff; padding: 12px 14px; font-size: 0.95rem; font-family: var(--font);
}
.hero-search input::placeholder { color: #a5a2bd; }
.hero-search input:focus { outline: 2px solid var(--gold); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
  border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.07);
  color: #eceaf7; font-size: 0.78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  cursor: pointer; font-family: var(--font); transition: background 0.15s, border-color 0.15s;
  text-decoration: none !important;
}
.tag:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.tag-cloud.on-light .tag { background: #fff; border-color: var(--line); color: var(--text); }
.tag-cloud.on-light .tag:hover { background: var(--red); border-color: var(--red); color: #fff; }
.hc-note { font-size: 0.72rem; color: #a5a2bd; margin-top: 12px; }

/* ---------- kartu & grid ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 14px; background: var(--gold-soft);
}
.ci-red { background: var(--red-soft); }
.ci-green { background: var(--green-soft); }
.ci-blue { background: var(--blue-soft); }
.ci-gold { background: var(--gold-soft); }

/* langkah panduan */
.step-card { position: relative; padding-top: 30px; }
.step-num {
  position: absolute; top: -22px; left: 24px; width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--ink);
  font-weight: 900; font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(245, 179, 1, 0.4); border: 3px solid #fff;
}
.steps-grid { margin-top: 26px; }

/* ---------- split section ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.check-list { list-style: none; padding: 0; margin: 18px 0 24px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.check-list svg { flex: none; color: var(--green); margin-top: 4px; }
.check-list b { display: block; }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat-box {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; box-shadow: var(--shadow);
}
.stat-box b { display: block; font-size: 1.5rem; color: var(--red); font-weight: 900; }
.stat-box span { font-size: 0.82rem; color: var(--muted); }

/* ---------- testimoni ---------- */
.quote-card {
  background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--gold);
  border-radius: var(--radius-sm); padding: 22px; box-shadow: var(--shadow); height: 100%;
}
.quote-card .stars { color: var(--gold); letter-spacing: 2px; font-size: 0.9rem; }
.quote-card blockquote { margin: 10px 0 14px; font-style: italic; color: var(--text); }
.quote-card .who { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 0.85rem; background: linear-gradient(135deg, var(--red), var(--ink-3));
}
.who small { color: var(--muted); display: block; }
.testi-note { text-align: center; font-size: 0.78rem; color: var(--muted); margin-top: 18px; }

/* ---------- kalkulator ---------- */
.calc { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; }
.calc-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line);
  font-size: 1rem; font-family: var(--font); background: #fff; color: var(--text);
}
.field input:focus, .field select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.field { margin-bottom: 16px; }
.calc-result {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.calc-out { display: grid; gap: 12px; }
.co-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--bg); border-radius: 10px; padding: 12px 16px; flex-wrap: wrap;
}
.co-row span { font-size: 0.86rem; color: var(--muted); font-weight: 600; }
.co-row b { font-size: 1.15rem; color: var(--red); white-space: nowrap; }
.calc-warn { font-size: 0.8rem; color: var(--muted); background: var(--gold-soft); border-radius: 8px; padding: 10px 14px; margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
details.faq {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); overflow: hidden;
}
details.faq summary {
  cursor: pointer; list-style: none; padding: 17px 52px 17px 20px; font-weight: 800; color: var(--ink);
  position: relative; font-size: 0.98rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: var(--gold-soft); color: var(--red);
  display: flex; align-items: center; justify-content: center; font-weight: 900;
}
details.faq[open] summary::after { content: "−"; }
details.faq .faq-body { padding: 0 20px 18px; color: var(--muted); font-size: 0.94rem; }
details.faq .faq-body p:last-child { margin-bottom: 0; }
details.faq[open] summary { color: var(--red); }

/* ---------- artikel ---------- */
.article { max-width: 820px; margin: 0 auto; }
.article-head { text-align: center; margin-bottom: 28px; }
.article-meta { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: 0.78rem; color: var(--muted); margin-top: 10px; }
.meta-chip { background: var(--bg); border: 1px solid var(--line); padding: 3px 12px; border-radius: 999px; font-weight: 600; }
.article figure { margin: 26px 0; }
.article figure img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.article figcaption { font-size: 0.78rem; color: var(--muted); text-align: center; margin-top: 10px; }
.article h2 { margin-top: 1.8em; position: relative; padding-left: 16px; }
.article h2::before {
  content: ""; position: absolute; left: 0; top: 0.22em; bottom: 0.22em; width: 5px;
  border-radius: 4px; background: linear-gradient(180deg, var(--gold), var(--red));
}
.article h3 { margin-top: 1.4em; }
.article p, .article li { color: var(--text); font-size: 1rem; }
.article .lead { font-size: 1.08rem; color: var(--muted); }
.article table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.article table th { background: var(--ink); color: #fff; text-align: left; padding: 11px 14px; white-space: nowrap; }
.article table td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.article table tr:nth-child(even) { background: var(--bg); }
.notice {
  border-radius: var(--radius-sm); padding: 16px 18px; margin: 18px 0; font-size: 0.92rem;
  border: 1px solid; background: var(--blue-soft); border-color: #c4d7fb; color: #1c3d79;
}
.notice b { color: inherit; }
.notice.warn { background: var(--gold-soft); border-color: #f3dfa2; color: #6d5200; }
.notice.green { background: var(--green-soft); border-color: #bce6d5; color: #0a5f41; }
.notice.red { background: var(--red-soft); border-color: #f3c1cb; color: #7c0a1d; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
.article-tags .tag { background: var(--bg); border-color: var(--line); color: var(--text); }

/* halaman kategori: hero kecil */
.page-hero {
  background: linear-gradient(115deg, rgba(18, 18, 28, 0.95), rgba(156, 11, 34, 0.82)),
    url("/assets/img/hero.jpg") center 40% / cover no-repeat;
  color: #fff; padding: 46px 0;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: #d9d7e8; max-width: 680px; }
.page-hero .breadcrumb a { color: #cfcde0; }
.page-hero .breadcrumb [aria-current="page"] { color: var(--gold); }
.page-hero .breadcrumb li + li::before { color: #d9d7e8; }

/* kartu promo */
.promo-card { display: flex; flex-direction: column; gap: 6px; height: 100%; }
.promo-badge {
  align-self: flex-start; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.6px;
  padding: 4px 12px; border-radius: 999px; text-transform: uppercase;
  background: var(--red); color: #fff;
}
.promo-badge.green { background: var(--green); }
.promo-badge.blue { background: var(--blue); }
.promo-badge.gold { background: var(--gold); color: var(--ink); }
.promo-val { font-size: 1.3rem; font-weight: 900; color: var(--red); }
.promo-terms { font-size: 0.8rem; color: var(--muted); }
.promo-terms li { margin-bottom: 2px; }

/* ---------- form auth ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 60px 0; }
.auth-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 34px 30px; box-shadow: var(--shadow-lg); max-width: 480px; width: 100%;
  margin: 0 auto;
}
.auth-card h1 { font-size: 1.5rem; }
.auth-sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 22px; }
.auth-side h1 { color: #fff; }
.auth-side p { color: #d9d7e8; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 0.84rem; color: var(--muted); margin: 4px 0 18px; }
.checkbox-row input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--red); flex: none; }
.form-note { font-size: 0.78rem; color: var(--muted); margin-top: 16px; text-align: center; }
.auth-hero-bg {
  background: linear-gradient(150deg, var(--ink-2), #3a0f1c 60%, var(--red-dark)); border-radius: 18px;
  padding: 38px 30px; position: relative; overflow: hidden;
}
.auth-hero-bg::after {
  content: "🍒 ⭐ 7️⃣ 💎 🍋"; position: absolute; bottom: 14px; left: 0; right: 0; text-align: center;
  font-size: 1.2rem; letter-spacing: 14px; opacity: 0.5;
}
.mini-list { list-style: none; padding: 0; margin: 18px 0; }
.mini-list li { display: flex; gap: 10px; align-items: flex-start; color: #d9d7e8; font-size: 0.92rem; margin-bottom: 10px; }
.mini-list svg { color: var(--gold); flex: none; margin-top: 4px; }

/* ---------- footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--ink-2), var(--ink)); color: #b9b7cf;
  padding: 56px 0 110px; margin-top: 0; border-top: 4px solid var(--gold);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.f-col h3 { color: #fff; font-size: 0.95rem; letter-spacing: 0.5px; margin-bottom: 14px; }
.f-col ul { list-style: none; padding: 0; margin: 0; }
.f-col a { color: #b9b7cf; font-size: 0.88rem; text-decoration: none; }
.f-col a:hover { color: var(--gold); }
.f-brand p { font-size: 0.84rem; color: #9a97b5; }
.f-updated { font-size: 0.76rem; color: #7d7a99; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-name small { color: #9a97b5; }
.pay-strip {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 34px;
  padding-top: 22px; border-top: 1px solid #2c2c44; font-size: 0.78rem;
}
.pay-title { color: #9a97b5; font-weight: 700; }
.pay-chip {
  border: 1px solid #3a3a58; color: #d9d7e8; padding: 3px 12px; border-radius: 7px;
  font-weight: 800; font-size: 0.75rem; background: rgba(255, 255, 255, 0.04);
}
.pay-note { color: #7d7a99; font-size: 0.72rem; margin-left: auto; }
.legal-box {
  background: rgba(200, 16, 46, 0.1); border: 1px solid rgba(200, 16, 46, 0.35);
  border-radius: var(--radius-sm); padding: 18px 20px; margin-top: 24px;
}
.legal-box p { font-size: 0.78rem; color: #c9c7dd; margin-bottom: 10px; }
.legal-box a { color: var(--gold-2); }
.legal-box p:last-child { margin-bottom: 0; }
.copy { text-align: center; font-size: 0.78rem; color: #7d7a99; margin: 26px 0 0; }

/* ---------- float bar (mesin slot + koin) ---------- */
.float-bar {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%);
  z-index: 1500; display: flex; align-items: center; gap: 14px;
  background: linear-gradient(180deg, #1e1e32, #14142a);
  border: 2px solid var(--gold); border-radius: 18px;
  padding: 8px 14px; box-shadow: 0 10px 34px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(245, 179, 1, 0.25);
  max-width: calc(100vw - 16px);
}
.fb-slot { display: flex; gap: 5px; padding: 5px 8px; background: #0d0d1a; border-radius: 12px; border: 1px solid #33324f; }
.reel {
  width: 30px; height: 34px; overflow: hidden; border-radius: 7px; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; position: relative;
}
.reel .strip {
  position: absolute; top: 0; left: 0; white-space: nowrap; font-size: 19px; line-height: 34px;
  animation: reelspin 3.2s linear infinite;
}
.reel.r2 .strip { animation-duration: 2.4s; animation-direction: reverse; }
.reel.r3 .strip { animation-duration: 4s; }
@keyframes reelspin {
  from { transform: translateY(0); }
  to { transform: translateY(-306px); } /* 18 simbol x 34px */
}
.fb-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 118px; padding: 12px 20px; border-radius: 12px;
  font-weight: 900; font-size: 0.98rem; letter-spacing: 1px; text-decoration: none !important;
  border: none; cursor: pointer; position: relative; overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.fb-btn::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg); animation: shine 2.6s ease-in-out infinite;
}
@keyframes shine {
  0% { left: -80%; }
  55% { left: 130%; }
  100% { left: 130%; }
}
.fb-daftar { background: linear-gradient(180deg, var(--gold-2), #e89c00); color: var(--ink); box-shadow: 0 5px 16px rgba(245, 179, 1, 0.45); }
.fb-daftar:hover { transform: translateY(-2px) scale(1.03); }
.fb-login { background: linear-gradient(180deg, #14b884, var(--green-dark)); color: #fff; box-shadow: 0 5px 16px rgba(14, 159, 110, 0.45); }
.fb-login:hover { transform: translateY(-2px) scale(1.03); }
.fb-coins { position: absolute; inset: -30px -6px auto -6px; height: 70px; pointer-events: none; }
.fb-coins i {
  position: absolute; bottom: -12px; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ffe9a8, var(--gold) 55%, #b97e00);
  box-shadow: 0 0 8px rgba(245, 179, 1, 0.8);
  opacity: 0; animation: coinup 2.8s ease-in infinite;
}
.fb-coins i:nth-child(1) { left: 12%; animation-delay: 0s; }
.fb-coins i:nth-child(2) { left: 30%; animation-delay: 0.7s; width: 12px; height: 12px; }
.fb-coins i:nth-child(3) { left: 52%; animation-delay: 1.3s; }
.fb-coins i:nth-child(4) { left: 70%; animation-delay: 0.4s; width: 13px; height: 13px; }
.fb-coins i:nth-child(5) { left: 86%; animation-delay: 1.9s; }
@keyframes coinup {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: translateY(-64px) scale(1.05); opacity: 0; }
}

/* ---------- overlay pencarian ---------- */
.search-overlay[hidden] { display: none; }
.search-overlay {
  position: fixed; inset: 0; z-index: 1800; display: flex; align-items: flex-start; justify-content: center;
  background: rgba(18, 18, 28, 0.82); backdrop-filter: blur(6px); padding: 90px 18px 30px; overflow-y: auto;
}
.search-panel {
  width: 100%; max-width: 640px; background: var(--white); border-radius: 18px;
  padding: 22px; box-shadow: var(--shadow-lg);
}
.search-bar { display: flex; align-items: center; gap: 10px; border: 2px solid var(--gold); border-radius: 12px; padding: 6px 10px; }
.search-bar svg { color: var(--muted); flex: none; }
.search-bar input { flex: 1; min-width: 0; border: none; outline: none; font-size: 1.05rem; font-family: var(--font); padding: 8px 0; background: transparent; }
.search-hint { font-size: 0.78rem; color: var(--muted); margin: 16px 0 8px; font-weight: 700; }
.search-results { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.search-results a {
  display: block; background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 16px; text-decoration: none !important;
}
.search-results a:hover { border-color: var(--gold); background: var(--gold-soft); }
.search-results b { display: block; color: var(--ink); font-size: 0.95rem; }
.search-results span { font-size: 0.8rem; color: var(--muted); }
.search-empty { padding: 14px; text-align: center; color: var(--muted); font-size: 0.9rem; }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: linear-gradient(100deg, var(--red-dark), var(--red) 55%, #e1470f);
  color: #fff; text-align: center; padding: 46px 0; position: relative; overflow: hidden;
}
.cta-strip::before, .cta-strip::after {
  content: "🎰"; position: absolute; font-size: 5rem; opacity: 0.12; top: -10px;
}
.cta-strip::before { left: 4%; transform: rotate(-14deg); }
.cta-strip::after { right: 4%; transform: rotate(12deg); content: "🃏"; }
.cta-strip h2 { color: #fff; }
.cta-strip p { color: #ffe3e9; max-width: 640px; margin: 0 auto 22px; }
.cta-strip .btn + .btn { margin-left: 10px; }

/* ---------- util ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.pill-note {
  display: inline-block; background: var(--green-soft); color: var(--green-dark);
  font-size: 0.75rem; font-weight: 800; border-radius: 999px; padding: 4px 12px;
}
.rel-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.rel-links a {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; font-weight: 700; font-size: 0.88rem; color: var(--ink);
  text-decoration: none !important; box-shadow: var(--shadow);
}
.rel-links a:hover { border-color: var(--gold); background: var(--gold-soft); }
.rel-links a small { display: block; color: var(--muted); font-weight: 600; margin-top: 2px; }

/* ==========================================================================
   RESPONSIF
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-in { grid-template-columns: 1fr; padding: 56px 0 50px; }
  .hero-card { max-width: 620px; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split img { max-height: 340px; object-position: center; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-wrap { grid-template-columns: 1fr; padding: 40px 0; }
  .auth-hero-bg { display: none; }
  .main-nav ul { gap: 0; }
  .main-nav a { padding: 9px 8px; font-size: 0.84rem; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 10px 16px 16px; }
  .main-nav a { padding: 12px 10px; font-size: 1rem; border-bottom: 1px dashed var(--line); }
  .main-nav li:last-child a { border-bottom: none; }
  .header-actions .btn { display: none; }
  .section { padding: 48px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .steps-grid { margin-top: 40px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .rel-links { grid-template-columns: 1fr; }
  .topbar-date { display: none; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 14px; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero-in { padding: 44px 0 40px; }
  .hero-cta .btn { width: 100%; }
  .hero-search { flex-direction: column; }
  .hero-search .btn { width: 100%; }
  .float-bar { left: 8px; right: 8px; bottom: 8px; transform: none; gap: 10px; padding: 7px 10px; border-radius: 15px; justify-content: space-between; }
  .fb-slot { display: none; }
  .fb-btn { flex: 1; min-width: 0; padding: 13px 10px; font-size: 0.95rem; }
  .fb-btn + .fb-btn { margin-left: 0; }
  .fb-daftar { flex: 1.25; }
  .site-footer { padding-bottom: 104px; }
  .auth-card { padding: 26px 18px; }
  .cta-strip .btn { width: 100%; }
  .cta-strip .btn + .btn { margin-left: 0; margin-top: 10px; }
  .pay-note { margin-left: 0; width: 100%; }
  .article h2 { font-size: 1.25rem; }
  .article-meta { justify-content: flex-start; }
}

@media (max-width: 380px) {
  body { font-size: 15px; }
  .brand-name { font-size: 1.15rem; }
  .fb-btn { font-size: 0.88rem; padding: 12px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
