/* ============================================================
   Buah4d — buah4d.games
   Gaya utama: bersih, informatif, ramah ponsel.
   Palet: merah brand, putih, hijau, kuning emas, biru info, hitam.
   ============================================================ */

:root {
  --red: #d8262c;
  --red-dark: #b31f24;
  --red-soft: #fdecec;
  --green: #1e8a4c;
  --green-dark: #15693a;
  --green-soft: #e9f6ef;
  --gold: #f2b521;
  --gold-dark: #d89e00;
  --gold-soft: #fdf3d7;
  --blue: #2160c4;
  --blue-soft: #e9f0fc;
  --ink: #1f2534;
  --muted: #5b6373;
  --dark: #191e2a;
  --dark-2: #212839;
  --dark-3: #2a3147;
  --paper: #ffffff;
  --bg: #f6f7fa;
  --line: #e5e8f0;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 28px rgba(20, 25, 42, 0.09);
  --shadow-sm: 0 4px 14px rgba(20, 25, 42, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

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.3; margin: 0 0 0.6em; font-weight: 800; color: var(--ink); }
h1 { font-size: clamp(1.7rem, 4.2vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
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; }

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

/* ---------- Utilitas ---------- */
.section { padding: clamp(2.4rem, 5vw, 4rem) 0; }
.section-white { background: var(--paper); }
.section-tint { background: var(--bg); }
.section-dark { background: var(--dark); color: #e8eaf1; }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 760px; margin: 0 auto 2.2rem; text-align: center; }
.section-head p { color: var(--muted); margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-soft);
  border-radius: 999px;
  padding: 0.28em 0.95em;
  margin-bottom: 0.9rem;
}

.section-dark .eyebrow { color: var(--gold); background: rgba(242, 181, 33, 0.14); }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font: inherit;
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid transparent;
  padding: 0.72em 1.7em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(216, 38, 44, 0.32); }
.btn-primary:hover { background: var(--red-dark); }

.btn-gold { background: var(--gold); color: #3a2b00; box-shadow: 0 6px 16px rgba(242, 181, 33, 0.35); }
.btn-gold:hover { background: var(--gold-dark); }

.btn-green { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(30, 138, 76, 0.3); }
.btn-green:hover { background: var(--green-dark); }

.btn-ghost { background: transparent; color: inherit; border-color: currentColor; opacity: 0.92; }
.site-header .btn-ghost { color: #fff; }
.btn-ghost:hover { opacity: 1; background: rgba(255, 255, 255, 0.08); }

.btn-sm { padding: 0.5em 1.25em; font-size: 0.92rem; }
.btn-block { width: 100%; }

/* ---------- Topbar ---------- */
.topbar { background: #10131c; color: #b9c0d2; font-size: 0.8rem; }
.topbar-in { display: flex; flex-wrap: wrap; gap: 0.5em 0.6em; padding-top: 0.45rem; padding-bottom: 0.45rem; justify-content: center; }
.topbar-item { white-space: nowrap; }
.topbar-sep { color: #4a5266; }

/* ---------- Header ---------- */
.site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 120;
  box-shadow: 0 2px 14px rgba(10, 12, 20, 0.35);
}
.header-in { display: flex; align-items: center; gap: 1.2rem; min-height: 66px; }

.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: #fff !important; font-weight: 800; font-size: 1.3rem; letter-spacing: 0.01em; }
.brand:hover { text-decoration: none; }
.brand-text em { font-style: normal; color: var(--gold); }
.logo-mark { flex: none; }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; flex-wrap: wrap; gap: 0.15rem; list-style: none; padding: 0; margin: 0; }
.main-nav a {
  display: block;
  color: #cfd5e4;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5em 0.85em;
  border-radius: 8px;
}
.main-nav a:hover { color: #fff; background: var(--dark-3); text-decoration: none; }
.main-nav a.active { color: #fff; background: var(--red); }

.header-actions { display: flex; align-items: center; gap: 0.7rem; margin-left: auto; }
.icon-search { display: inline-flex; color: #cfd5e4; padding: 0.4em; border-radius: 8px; }
.icon-search:hover { color: #fff; background: var(--dark-3); }
.nav-cta { display: flex; gap: 0.55rem; align-items: center; }
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: transparent;
  border: 1px solid #3a4257;
  border-radius: 9px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2.6px; background: #fff; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: var(--paper); border-bottom: 1px solid var(--line); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.4em; list-style: none; margin: 0; padding: 0.7rem 0; font-size: 0.85rem; color: var(--muted); }
.breadcrumb li[aria-current] { color: var(--ink); font-weight: 600; }
.crumb-sep { margin-left: 0.45em; color: #b6bccb; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, rgba(16, 19, 28, 0.93) 8%, rgba(25, 30, 42, 0.82) 55%, rgba(179, 31, 36, 0.55)), url("/assets/img/hero-home.webp") center 38% / cover no-repeat;
  color: #fff;
  padding: clamp(3rem, 7vw, 5.2rem) 0 clamp(2.4rem, 5vw, 4rem);
}
.hero-in { max-width: 720px; }
.hero .eyebrow { color: var(--gold); background: rgba(242, 181, 33, 0.16); }
.hero h1 { color: #fff; margin-bottom: 0.5em; }
.hero .lead { font-size: clamp(1rem, 2.4vw, 1.16rem); color: #dbe0ec; max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0 1.2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.8rem;
  font-weight: 700;
  color: #eef1f8;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.32em 0.9em;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* Pencarian di hero */
.hero-search { margin-top: 2rem; max-width: 620px; }
.hero-search label { display: block; font-size: 0.85rem; font-weight: 700; color: #cfd5e4; margin-bottom: 0.5rem; }
.search-box { display: flex; gap: 0.5rem; }
.search-box input {
  flex: 1;
  min-width: 0;
  font: inherit;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  padding: 0.62em 1.15em;
}
.search-box input::placeholder { color: #9aa1b2; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.85rem; }
.tag-cloud a {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e8ebf3 !important;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.26em 0.85em;
}
.tag-cloud a:hover { background: rgba(242, 181, 33, 0.2); border-color: rgba(242, 181, 33, 0.5); text-decoration: none; }

/* ---------- Kartu keunggulan ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.4rem 1.3rem;
  min-width: 0;
}
.card h3 { margin-top: 0.2rem; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 0.95rem; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}
.card-icon svg { width: 27px; height: 27px; }
.ci-red { background: var(--red-soft); color: var(--red); }
.ci-green { background: var(--green-soft); color: var(--green); }
.ci-gold { background: var(--gold-soft); color: var(--gold-dark); }
.ci-blue { background: var(--blue-soft); color: var(--blue); }

/* ---------- Mengapa memilih ---------- */
.why-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.4rem; align-items: center; }
.why-copy p { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.85rem; }
.check-list li { display: flex; gap: 0.75rem; align-items: flex-start; margin: 0; }
.check-list .tick {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  margin-top: 0.15rem;
}
.check-list strong { display: block; }
.check-list span.desc { color: var(--muted); font-size: 0.93rem; }

.stat-note {
  background: var(--blue-soft);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  font-size: 0.92rem;
  color: #23407e;
}

/* ---------- Pengalaman mobile ---------- */
.mobile-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: center; }
.phone-mock {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
  border-radius: 34px;
  border: 8px solid var(--dark);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.phone-mock .pm-bar { background: var(--red); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 0.5rem 0.9rem; display: flex; justify-content: space-between; }
.phone-mock .pm-content { padding: 1rem; display: grid; gap: 0.7rem; }
.pm-line { height: 10px; border-radius: 6px; background: var(--line); }
.pm-line.w60 { width: 60%; }
.pm-line.w80 { width: 80%; }
.pm-card { border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem; display: flex; gap: 0.6rem; align-items: center; }
.pm-thumb { width: 44px; height: 44px; border-radius: 9px; background: linear-gradient(135deg, var(--red), var(--gold)); flex: none; }
.pm-btn { margin-left: auto; background: var(--red); color: #fff; font-size: 0.72rem; font-weight: 800; border-radius: 999px; padding: 0.35em 1em; }

/* ---------- Ulasan ---------- */
.review-card { position: relative; }
.review-card .quote-mark { font-size: 2.6rem; line-height: 1; color: var(--gold); font-weight: 800; font-family: Georgia, serif; }
.review-card p.review-text { color: var(--ink); font-size: 0.97rem; margin: 0.4rem 0 1rem; }
.review-who { display: flex; align-items: center; gap: 0.75rem; }
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 0.95rem;
}
.av-r { background: linear-gradient(135deg, #d8262c, #f2703a); }
.av-g { background: linear-gradient(135deg, #1e8a4c, #34b46f); }
.av-b { background: linear-gradient(135deg, #2160c4, #4f86e8); }
.review-who strong { display: block; font-size: 0.93rem; }
.review-who span { font-size: 0.8rem; color: var(--muted); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 0.85rem; }
.review-note { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 1.4rem; }

/* ---------- Kamus istilah ---------- */
.glossary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.term { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); padding: 0.95rem 1.05rem; }
.term dt { font-weight: 800; margin-bottom: 0.15rem; }
.term dd { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- Artikel unggulan ---------- */
.feature-article { display: grid; grid-template-columns: 1fr 1.15fr; gap: 2.2rem; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.feature-article figure { margin: 0; }
.feature-article figure img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
.feature-body { padding: 1.8rem 1.9rem 1.6rem; }
.feature-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; font-size: 0.82rem; color: var(--muted); margin-bottom: 0.8rem; }
.feature-meta .cat { color: var(--red); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.feature-body h2 { margin-bottom: 0.45em; }
.feature-body p { color: #3a4152; font-size: 0.97rem; }

/* ---------- Keamanan & privasi ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.sec-box { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius); padding: 1.4rem 1.3rem; }
.sec-box h3 { color: var(--gold); font-size: 1.05rem; }
.sec-box ul { color: #c6ccdc; font-size: 0.93rem; margin-bottom: 0; }
.sec-box a { color: #9fc2ff; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 0.8rem; }
details.faq { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); overflow: hidden; }
details.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  padding: 1.05rem 1.25rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .plus { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--red-soft); color: var(--red); font-weight: 800; display: flex; align-items: center; justify-content: center; transition: transform 0.2s ease; }
details.faq[open] summary .plus { transform: rotate(45deg); background: var(--red); color: #fff; }
details.faq .faq-a { padding: 0 1.25rem 1.1rem; color: var(--muted); margin: 0; }
.faq-lead { max-width: 820px; margin: 0 auto 1.6rem; background: var(--gold-soft); border: 1px solid #f0dfae; border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; font-size: 0.94rem; color: #6b5410; }
.faq-lead strong { color: #4d3c05; }
.faq-lead ul { margin-bottom: 0; }

/* ---------- Halaman konten (kategori/artikel) ---------- */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: clamp(1.8rem, 4vw, 2.8rem) 0 1.6rem; }
.page-head .cat-tag { display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); background: var(--red-soft); padding: 0.3em 0.9em; border-radius: 999px; margin-bottom: 0.8rem; }
.page-head h1 { max-width: 840px; }
.page-head .lead { color: var(--muted); max-width: 760px; font-size: 1.05rem; margin-bottom: 0.8rem; }
.meta-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; font-size: 0.83rem; color: var(--muted); }
.meta-row .meta-item { display: inline-flex; align-items: center; gap: 0.4em; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.4rem; padding: clamp(2rem, 4vw, 3.2rem) 0; align-items: start; }

.prose { font-size: 1.01rem; color: #2c3345; min-width: 0; }
.prose h2 { margin-top: 1.9em; padding-top: 0.2em; }
.prose h3 { margin-top: 1.4em; }
.prose figure { margin: 1.6rem 0; }
.prose figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.prose figcaption { font-size: 0.83rem; color: var(--muted); margin-top: 0.5rem; text-align: center; }
.prose ul li, .prose ol li { margin-bottom: 0.55em; }
.prose strong { color: var(--ink); }

.callout { border-radius: var(--radius-sm); padding: 1.05rem 1.25rem; margin: 1.4rem 0; font-size: 0.95rem; }
.callout-info { background: var(--blue-soft); border-left: 4px solid var(--blue); color: #274b8f; }
.callout-warn { background: var(--gold-soft); border-left: 4px solid var(--gold); color: #6b5410; }
.callout-green { background: var(--green-soft); border-left: 4px solid var(--green); color: #1c5c37; }

/* Tabel syarat promosi */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.4rem 0; border-radius: var(--radius-sm); border: 1px solid var(--line); }
table.terms { width: 100%; border-collapse: collapse; background: var(--paper); min-width: 560px; }
table.terms caption { caption-side: top; text-align: left; font-weight: 700; padding: 0.9rem 1.1rem 0.4rem; background: var(--paper); }
table.terms th, table.terms td { text-align: left; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.94rem; }
table.terms th { background: var(--bg); width: 34%; font-family: inherit; }
table.terms tr:last-child td { border-bottom: none; }

/* Sidebar */
.sidebar { position: sticky; top: 92px; display: grid; gap: 1.2rem; }
.side-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.3rem; }
.side-box h3 { font-size: 1.02rem; margin-bottom: 0.8rem; }
.side-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.side-list a { display: block; font-weight: 600; font-size: 0.93rem; line-height: 1.45; }
.side-list li { margin: 0; padding-left: 1rem; position: relative; }
.side-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.side-cta { background: linear-gradient(140deg, var(--dark), var(--dark-2)); color: #e8ebf3; }
.side-cta h3 { color: #fff; }
.side-cta p { font-size: 0.9rem; color: #c6ccdc; }
.side-cta .btn { margin-top: 0.4rem; }

/* ---------- Daftar promosi ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }
.promo-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.promo-card figure { margin: 0; }
.promo-card img { width: 100%; height: 190px; object-fit: cover; }
.promo-card .promo-body { padding: 1.2rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.promo-card h3 { margin: 0; }
.promo-card p { flex: 1; }
.promo-tag { align-self: flex-start; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-dark); background: var(--green-soft); padding: 0.3em 0.8em; border-radius: 999px; }
.promo-tag.gold { color: #7a5b00; background: var(--gold-soft); }
.promo-tag.red { color: var(--red-dark); background: var(--red-soft); }

/* ---------- Form ---------- */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2.2rem; align-items: start; padding: clamp(2rem, 4vw, 3rem) 0; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.5rem, 3vw, 2.2rem); }
.form-card h1 { font-size: clamp(1.5rem, 3.4vw, 1.9rem); }
.form-title { font-size: clamp(1.25rem, 3vw, 1.5rem); }
.form-card .sub { color: var(--muted); font-size: 0.95rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.4rem; }
.field input[type="text"], .field input[type="email"], .field input[type="password"] {
  width: 100%;
  font: inherit;
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 0.68em 1em;
  background: var(--bg);
  color: var(--ink);
}
.field input:focus { outline: 3px solid rgba(216, 38, 44, 0.18); border-color: var(--red); background: #fff; }
.field .hint { font-size: 0.8rem; color: var(--muted); margin-top: 0.35rem; }
.check-field { display: flex; gap: 0.65rem; align-items: flex-start; margin-bottom: 1rem; font-size: 0.9rem; }
.check-field input { margin-top: 0.28em; accent-color: var(--red); width: 17px; height: 17px; flex: none; }
.form-note { font-size: 0.83rem; color: var(--muted); background: var(--bg); border: 1px dashed #ccd2df; border-radius: var(--radius-sm); padding: 0.85rem 1rem; margin-top: 1.2rem; }
.form-alt { text-align: center; font-size: 0.92rem; margin-top: 1.2rem; margin-bottom: 0; }

/* ---------- Pencarian ---------- */
.search-page-head { text-align: center; padding: clamp(2.2rem, 5vw, 3.4rem) 0 1rem; }
.search-page-head .search-box { max-width: 620px; margin: 1.2rem auto 0; }
.search-page-head .search-box input { border-color: var(--line); }
.search-page-head .search-box .btn { flex: none; }
.search-results { max-width: 760px; margin: 1.6rem auto 0; display: grid; gap: 0.9rem; padding-bottom: 3rem; }
.result-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem 1.25rem; box-shadow: var(--shadow-sm); }
.result-item .r-cat { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: var(--red); }
.result-item h3 { margin: 0.25rem 0 0.35rem; font-size: 1.08rem; }
.result-item p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.search-empty { text-align: center; color: var(--muted); padding: 2rem 0; }
.search-tags-label { font-weight: 800; font-size: 0.88rem; margin-right: 0.4rem; }
.tag-cloud.light a { color: var(--ink) !important; background: var(--paper); border-color: var(--line); }
.tag-cloud.light a:hover { background: var(--red-soft); border-color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #c6ccdc; padding: clamp(2.6rem, 5vw, 3.6rem) 0 0; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 2rem; }
.footer-col h3 { color: #fff; font-size: 0.98rem; margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer-col a { color: #c6ccdc; font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold); }
.footer-about p { font-size: 0.9rem; color: #aab1c4; margin: 1rem 0; }
.brand-footer .logo-mark { width: 34px; height: 34px; }
.brand-footer .brand-text { font-size: 1.1rem; color: #fff; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badge { display: inline-block; font-size: 0.75rem; font-weight: 800; border-radius: 6px; padding: 0.3em 0.75em; }
.badge-18 { background: var(--red); color: #fff; }
.badge-outline { border: 1px solid #4a5266; color: #c6ccdc; }
.footer-legal { border-top: 1px solid #2a3147; margin-top: 2.4rem; padding: 1.6rem 0 8.5rem; font-size: 0.82rem; color: #97a0b5; }
.footer-legal p { margin-bottom: 0.7em; }
.footer-legal strong { color: #d5dae6; }
.footer-legal .copy { margin-top: 1.2em; }

/* ---------- Widget mengambang ---------- */
.float-widget {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 0.55rem max(0.55rem, env(safe-area-inset-left)) calc(0.55rem + env(safe-area-inset-bottom)) max(0.55rem, env(safe-area-inset-right));
  background: linear-gradient(180deg, rgba(16, 19, 28, 0.06), rgba(16, 19, 28, 0.22));
  pointer-events: none;
}
.fw-inner {
  pointer-events: auto;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: linear-gradient(120deg, #232a3d 0%, #191e2a 55%, #58161a 100%);
  border: 1px solid rgba(242, 181, 33, 0.5);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(10, 12, 20, 0.45);
  padding: 0.55rem 0.8rem;
  min-height: 64px;
}
.fw-slot { position: relative; display: flex; gap: 4px; padding: 5px 7px; background: linear-gradient(180deg, #31241a, #1c1610); border: 2px solid var(--gold); border-radius: 10px; flex: none; }
.fw-reel { width: 20px; height: 26px; overflow: hidden; border-radius: 4px; background: #fff; display: flex; flex-direction: column; gap: 4px; }
.fw-reel2 { animation: fwspin 2.4s linear infinite; }
.fw-reel3 { animation: fwspin 2.1s linear infinite; }
.fw-sym { width: 20px; height: 22px; border-radius: 50%; flex: none; margin: 0 0 4px; position: relative; }
.fw-sym::after { content: ""; position: absolute; top: 3px; left: 4px; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); }
.fw-cherry { background: radial-gradient(circle at 35% 30%, #ff6b6e, #c31c22); }
.fw-lemon { background: radial-gradient(circle at 35% 30%, #ffe28a, #e8a800); }
.fw-grape { background: radial-gradient(circle at 35% 30%, #b08ae8, #6c3fb5); }
@keyframes fwspin {
  from { transform: translateY(0); }
  to { transform: translateY(-48px); }
}
.fw-coin {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9a8, #d89e00 70%);
  border: 1.5px solid #b8860b;
  animation: fwcoin 2.8s ease-in-out infinite;
}
.fw-coin.c1 { top: -9px; right: -8px; animation-delay: 0s; }
.fw-coin.c2 { bottom: -8px; right: -12px; width: 12px; height: 12px; animation-delay: 0.9s; }
.fw-coin.c3 { top: -6px; left: -10px; width: 11px; height: 11px; animation-delay: 1.7s; }
@keyframes fwcoin {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.fw-text { line-height: 1.25; min-width: 0; }
.fw-text strong { display: block; color: #fff; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fw-text span { display: block; color: #b9c0d2; font-size: 0.72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fw-actions { display: flex; gap: 0.5rem; margin-left: auto; flex: none; }

@media (prefers-reduced-motion: reduce) {
  .fw-reel, .fw-coin { animation: none; }
  .btn:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsif ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glossary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-wrap { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    border-top: 1px solid #2a3147;
    box-shadow: 0 16px 30px rgba(10, 12, 20, 0.4);
    padding: 0.8rem 1rem 1.1rem;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; gap: 0.15rem; }
  .main-nav a { padding: 0.7em 1em; }
  .nav-cta-desktop { display: none; }
  .nav-cta-mobile { display: flex; margin-top: 0.9rem; }
  .why-wrap, .mobile-wrap { grid-template-columns: 1fr; gap: 1.6rem; }
  .feature-article { grid-template-columns: 1fr; }
  .feature-article figure img { min-height: 220px; max-height: 300px; }
  .promo-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .grid-4, .grid-3, .grid-2, .glossary, .sec-grid, .sidebar { grid-template-columns: minmax(0, 1fr); }
  .hero-cta .btn { flex: 1 1 auto; }
  .search-box { flex-direction: column; }
  .search-box input { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-legal { padding-bottom: 8rem; }
  .float-widget { padding-left: 0.4rem; padding-right: 0.4rem; }
  .fw-inner { gap: 0.6rem; padding: 0.5rem 0.6rem; }
  .fw-slot { display: none; }
  .fw-text span { display: none; }
  .fw-text strong { font-size: 0.9rem; }
  .fw-actions { flex-direction: row; }
  .fw-actions .btn { padding: 0.5em 1.05em; font-size: 0.85rem; }
  .fw-actions .btn-gold { display: none; }
  .brand-text { font-size: 1.15rem; }
  .logo-mark { width: 32px; height: 32px; }
  .container { padding: 0 16px; }
}

@media (min-width: 641px) and (max-width: 880px) {
  .fw-actions .btn { font-size: 0.88rem; }
}

/* Aksesibilitas fokus */
:focus-visible { outline: 3px solid rgba(33, 96, 196, 0.55); outline-offset: 2px; border-radius: 4px; }
