/* ============================================================
   Sabi4d — Portal Informasi Gaming (Bahasa Indonesia)
   Stylesheet responsif: ponsel, tablet, desktop
   ============================================================ */

:root {
  --navy: #141b30;
  --navy-2: #1b2542;
  --navy-3: #0e1425;
  --red: #d81f32;
  --red-dark: #b21628;
  --gold: #f2b234;
  --gold-dark: #d99a17;
  --green: #1f9d5b;
  --green-dark: #177a45;
  --bg: #f5f6fa;
  --card: #ffffff;
  --text: #232939;
  --muted: #5c6478;
  --line: #e4e7f0;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 27, 48, 0.08);
  --header-h: 68px;
  --floatbar-h: 86px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { 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);
  padding-bottom: calc(var(--floatbar-h) + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 { line-height: 1.3; color: var(--navy); margin: 0 0 0.6em; font-weight: 800; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

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

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

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

/* ---------- Tombol ---------- */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  line-height: 1.4;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 4px 14px rgba(216, 31, 50, 0.35); }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 4px 14px rgba(242, 178, 52, 0.4); }
.btn-gold:hover { background: var(--gold-dark); color: var(--navy); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 7px 16px; font-size: 0.87rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 2px solid var(--gold);
}
.header-inner {
  display: flex; align-items: center; gap: 18px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.3rem; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd977, var(--gold) 60%, var(--gold-dark));
  border: 3px solid var(--red);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.2px;
  flex-shrink: 0;
}
.brand-name b { color: var(--gold); }
.brand-tag { display: block; font-size: 0.62rem; font-weight: 600; color: #aab3cf; letter-spacing: 1.6px; text-transform: uppercase; }

.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0; flex-wrap: wrap;
}
.main-nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: #d7dcEC; font-weight: 600; font-size: 0.93rem; white-space: nowrap;
}
.main-nav a:hover { color: #fff; background: var(--navy-2); text-decoration: none; }
.main-nav a.active { color: var(--gold); background: var(--navy-2); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.icon-search {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: var(--navy-2); font-size: 1.05rem;
}
.icon-search:hover { background: var(--red); text-decoration: none; }

.nav-toggle {
  display: none; width: 42px; height: 42px; margin-left: auto;
  background: var(--navy-2); border: 1px solid #2a3555; border-radius: 10px;
  color: #fff; font-size: 1.25rem; cursor: pointer;
}

/* ---------- Halaman umum ---------- */
.page { padding-bottom: 20px; }

.breadcrumb { padding: 14px 0 4px; font-size: 0.85rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.breadcrumb a { color: var(--muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--red); }

.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, #232f56 100%);
  color: #fff; border-radius: var(--radius);
  padding: 34px 30px; margin: 14px 0 26px; overflow: hidden; position: relative;
}
.page-hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(242, 178, 52, 0.22), transparent 65%); border-radius: 50%;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: #ccd3ea; max-width: 720px; margin-bottom: 0; }
.page-hero .chip-row { margin-top: 14px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22);
  color: #e8ebf7; border-radius: 999px; padding: 4px 13px; font-size: 0.8rem; font-weight: 600;
}
.chip-solid { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Bagian / seksi ---------- */
.section { padding: 34px 0 6px; }
.sec-head { max-width: 760px; margin-bottom: 22px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--red); margin-bottom: 6px;
}
.sec-head p { color: var(--muted); margin-bottom: 0; }

.grid { display: grid; gap: 18px; }
.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(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 0.93rem; }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; font-size: 1.35rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
  background: #fdf1e7;
}
.ico-red { background: #fdeaea; }
.ico-gold { background: #fdf4dd; }
.ico-green { background: #e7f6ee; }
.ico-blue { background: #e9f0fb; }

/* ---------- Hero beranda ---------- */
.hero {
  background:
    linear-gradient(120deg, rgba(14, 20, 37, 0.96) 0%, rgba(20, 27, 48, 0.88) 45%, rgba(20, 27, 48, 0.55) 100%),
    url("../img/hero.jpg") center / cover no-repeat;
  color: #fff; margin-top: 14px; border-radius: var(--radius);
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 30px; align-items: center;
  padding: 46px 30px;
}
.hero h1 { color: #fff; font-size: 2.15rem; margin-bottom: 12px; }
.hero h1 .accent { color: var(--gold); }
.hero p.lead { color: #ccd3ea; font-size: 1.02rem; max-width: 560px; }
.hero .chip-row { margin: 16px 0 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { position: relative; }
.hero-media img {
  border-radius: var(--radius); border: 3px solid rgba(242, 178, 52, 0.65);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45); width: 100%; object-fit: cover;
}
.hero-badge {
  position: absolute; left: -12px; bottom: -12px;
  background: var(--gold); color: var(--navy); font-weight: 800; font-size: 0.8rem;
  padding: 8px 14px; border-radius: 10px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* ---------- Bagian split (gambar + teks) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.checklist { list-style: none; padding: 0; margin: 14px 0 18px; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 0.8rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Testimoni ---------- */
.testi { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.testi .card { display: flex; flex-direction: column; gap: 8px; }
.testi-stars { color: var(--gold); letter-spacing: 2px; font-size: 0.95rem; }
.testi-quote { font-size: 0.95rem; color: var(--text); margin: 0; flex: 1; }
.testi-who { display: flex; align-items: center; gap: 10px; }
.testi-ava {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--navy-2); color: var(--gold); font-weight: 800; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.testi-who b { display: block; font-size: 0.9rem; color: var(--navy); }
.testi-who span { font-size: 0.78rem; color: var(--muted); }
.testi-note { font-size: 0.8rem; color: var(--muted); margin-top: 14px; }

/* ---------- Kamus istilah (chip besar) ---------- */
.term-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.term-cloud a {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font-weight: 700; font-size: 0.9rem; color: var(--navy);
  box-shadow: 0 2px 8px rgba(20, 27, 48, 0.06);
}
.term-cloud a:hover { border-color: var(--gold); color: var(--red-dark); text-decoration: none; transform: translateY(-1px); }
.term-cloud a small { color: var(--muted); font-weight: 500; }

/* ---------- Kotak info / peringatan ---------- */
.info-box, .warn-box {
  border-radius: 12px; padding: 16px 18px; margin: 0 0 1.2em; font-size: 0.93rem;
}
.info-box { background: #e9f0fb; border-left: 4px solid #2d6cdf; }
.warn-box { background: #fdf4dd; border-left: 4px solid var(--gold-dark); }

/* ---------- Artikel ---------- */
.article-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.article-main {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 32px; box-shadow: var(--shadow);
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  color: var(--muted); font-size: 0.83rem; margin-bottom: 14px;
}
.article-meta .cat {
  background: var(--red); color: #fff; font-weight: 700; border-radius: 6px;
  padding: 2px 10px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px;
}
.article-meta time { font-weight: 600; color: var(--navy); }
.featured-img { margin: 6px 0 20px; }
.featured-img img { border-radius: 12px; width: 100%; }
.featured-img figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 8px; text-align: center; }

.article-body h2 { margin-top: 1.5em; padding-top: 10px; scroll-margin-top: calc(var(--header-h) + 14px); }
.article-body h3 { margin-top: 1.2em; }
.article-body ul li, .article-body ol li { margin-bottom: 0.5em; }

/* ---------- Kartu artikel / tautan internal ---------- */
.card-link { display: block; color: inherit; height: 100%; }
.card-link:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 10px 30px rgba(20, 27, 48, 0.14); }
.card-link .thumb { border-radius: 10px; overflow: hidden; margin-bottom: 14px; aspect-ratio: 16 / 9; }
.card-link .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-link h3 { font-size: 1.02rem; margin-bottom: 6px; }
.card-link p { font-size: 0.87rem; }
.card-link .meta { font-size: 0.78rem; color: var(--muted); margin-top: auto; }
.card-grid { display: grid; gap: 18px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-link-wrap { display: flex; flex-direction: column; height: 100%; }

/* ---------- Sidebar ---------- */
.sidebar .card { margin-bottom: 18px; }
.sidebar h3 { font-size: 1rem; border-bottom: 2px solid var(--line); padding-bottom: 8px; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar ul li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.sidebar ul li:last-child { border-bottom: 0; }
.sidebar ul a { font-weight: 600; font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; max-width: 860px; }
details.faq-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 0; overflow: hidden; box-shadow: 0 2px 10px rgba(20, 27, 48, 0.05);
}
details.faq-item summary {
  cursor: pointer; padding: 16px 52px 16px 18px; font-weight: 700; color: var(--navy);
  position: relative; list-style: none; font-size: 0.97rem;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: #fdeaea; color: var(--red);
  font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
details[open].faq-item summary::after { content: "–"; }
details.faq-item .faq-a { padding: 0 18px 16px; color: var(--muted); font-size: 0.93rem; }
details.faq-item .faq-a p:last-child { margin-bottom: 0; }

/* ---------- Promosi ---------- */
.promo-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.promo-card .thumb { position: relative; aspect-ratio: 16 / 8.2; overflow: hidden; }
.promo-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.promo-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.promo-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--red); color: #fff; font-size: 0.72rem; font-weight: 800;
  padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.6px;
}
.promo-tag.gold { background: var(--gold); color: var(--navy); }
.terms-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px;
  margin: 14px 0; font-size: 0.85rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
}
.terms-grid dt { font-weight: 800; color: var(--navy); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.4px; }
.terms-grid dd { margin: 0 0 6px; color: var(--muted); }
.terms-grid dt.full, .terms-grid dd.full { grid-column: 1 / -1; }

/* ---------- Langkah ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding-top: 10px; }
.step .num {
  width: 40px; height: 40px; border-radius: 50%; margin-bottom: 12px;
  background: var(--navy); color: var(--gold); font-weight: 800; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--gold);
}
.step h3 { font-size: 1rem; }
.step p { font-size: 0.88rem; color: var(--muted); }

/* ---------- Formulir ---------- */
.form-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.form-card { padding: 30px 32px; }
.form-card h1 { margin-bottom: 4px; }
.form-card > p.sub { color: var(--muted); margin-bottom: 20px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; color: var(--navy); }
.form-field input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 0.95rem; font-family: inherit; background: #fbfcfe; color: var(--text);
}
.form-field input:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(242, 178, 52, 0.2); }
.form-field .hint { font-size: 0.78rem; color: var(--muted); margin-top: 5px; }
.form-check { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; font-size: 0.86rem; color: var(--muted); }
.form-check input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--red); }
.form-note { font-size: 0.8rem; color: var(--muted); background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 16px; }

/* ---------- Pencarian ---------- */
.search-box { display: flex; gap: 10px; max-width: 640px; }
.search-box input {
  flex: 1; padding: 13px 18px; border: 2px solid var(--line); border-radius: 999px;
  font-size: 1rem; font-family: inherit; background: #fff;
}
.search-box input:focus { outline: none; border-color: var(--gold); }
.search-box .btn { border: 0; }
#search-status { margin: 18px 0 6px; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.result-card { display: flex; gap: 14px; align-items: flex-start; }
.result-card .thumb { width: 132px; border-radius: 10px; overflow: hidden; flex-shrink: 0; aspect-ratio: 16 / 10; }
.result-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.result-card h3 { font-size: 1rem; margin-bottom: 4px; }
.result-card p { font-size: 0.86rem; margin-bottom: 6px; }
.result-card .meta { font-size: 0.76rem; color: var(--muted); }

/* ---------- Bagian akhir (CTA) ---------- */
.final-cta {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 60%, #26335c 100%);
  border-radius: var(--radius); color: #fff; text-align: center;
  padding: 40px 30px; margin-top: 30px;
}
.final-cta h2 { color: #fff; }
.final-cta p { color: #ccd3ea; max-width: 640px; margin: 0 auto 20px; }
.final-cta .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-3); color: #a9b1cc; margin-top: 44px;
  border-top: 3px solid var(--gold); font-size: 0.9rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 40px 0 10px;
}
.footer-grid h3 { color: #fff; font-size: 0.95rem; letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #a9b1cc; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; }
.age-badge {
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--red); color: #ff8f9c; border-radius: 10px;
  font-weight: 800; font-size: 0.85rem; padding: 4px 10px; margin-top: 8px;
}
.footer-legal {
  border-top: 1px solid #232c4a; padding: 18px 0 26px; font-size: 0.78rem; color: #7d85a3;
}
.footer-legal p { margin: 0 0 8px; }
.responsible-strip {
  background: #101730; border-radius: 12px; padding: 14px 18px; margin-bottom: 16px;
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; font-size: 0.8rem; color: #c6cde6;
}
.responsible-strip b { color: var(--gold); }

/* ---------- Floatbar (komponen bawah) ---------- */
.floatbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: linear-gradient(180deg, #1a2340 0%, var(--navy-3) 100%);
  border-top: 2px solid var(--gold);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.4);
}
.floatbar-inner {
  max-width: 1160px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 16px;
}
.fb-visual { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fb-reels { display: flex; gap: 5px; position: relative; padding: 4px; background: #0b101f; border: 1px solid #2a3555; border-radius: 10px; }
.fb-reel { width: 26px; height: 34px; overflow: hidden; background: #101730; border: 1px solid #232c4a; border-radius: 6px; }
.fb-strip { display: flex; flex-direction: column; }
.fb-strip span { height: 34px; display: flex; align-items: center; justify-content: center; font-size: 17px; line-height: 1; }
.fb-reel-1 .fb-strip { animation: fb-spin 2.1s linear infinite; }
.fb-reel-2 .fb-strip { animation: fb-spin 2.7s linear infinite; }
.fb-reel-3 .fb-strip { animation: fb-spin 3.3s linear infinite; }
@keyframes fb-spin { to { transform: translateY(-136px); } }
.fb-coin {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle at 32% 28%, #ffe49a, var(--gold) 55%, var(--gold-dark));
  border: 1.5px solid #b57e0e; color: #7a5406; font-size: 0.5rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  animation: fb-float 2.6s ease-in-out infinite;
}
.fb-coin:nth-child(2) { animation-delay: 0.5s; }
.fb-coin:nth-child(3) { animation-delay: 1.1s; }
@keyframes fb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.fb-text { min-width: 0; }
.fb-text b { display: block; color: #fff; font-size: 0.95rem; white-space: nowrap; }
.fb-text span { display: block; color: #98a2c4; font-size: 0.72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-actions { display: flex; gap: 10px; margin-left: auto; flex-shrink: 0; }
.fb-actions .btn { padding: 9px 20px; font-size: 0.88rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fb-strip, .fb-coin, .btn { animation: none !important; transition: none !important; }
}

/* ---------- Responsif ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .article-wrap { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--navy-2); border-bottom: 2px solid var(--gold);
    padding: 10px 20px 16px; margin: 0; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 11px 12px; font-size: 1rem; }
  .header-actions .btn-header { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding: 34px 22px; }
  .hero h1 { font-size: 1.7rem; }
  .hero-media { max-width: 520px; }
  .split { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .testi { grid-template-columns: 1fr; }
  .form-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  .container { padding: 0 14px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .card-grid.cols-3, .card-grid.cols-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; padding-top: 30px; }
  .article-main { padding: 22px 18px; }
  .form-card { padding: 22px 18px; }
  .page-hero { padding: 24px 18px; }
  .terms-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 auto; }
  .result-card { flex-direction: column; }
  .result-card .thumb { width: 100%; }
  .search-box { flex-direction: column; }
  .search-box input { border-radius: 12px; }
  /* Floatbar versi ringkas */
  .fb-text span { display: none; }
  .fb-text b { font-size: 0.88rem; }
  .floatbar-inner { gap: 10px; padding: 8px 12px; }
  .fb-reel { width: 20px; height: 26px; }
  .fb-strip span { height: 26px; font-size: 13px; }
  @keyframes fb-spin { to { transform: translateY(-104px); } }
  .fb-coin { display: none; }
  .fb-actions .btn { padding: 8px 16px; font-size: 0.84rem; }
}

@media (max-width: 380px) {
  .fb-reels { display: none; }
  .fb-text b { font-size: 0.82rem; }
}
