/* ==========================================================================
   Visitorbet — Stylesheet Utama
   Struktur kelas mengikuti konvensi tema WordPress:
   .site / .site-header / .main-navigation / .site-content /
   .content-area / .entry-content / .site-footer
   Palet: merah (primer), emas/kuning, hijau, biru, hitam, putih
   ========================================================================== */

:root {
  --red: #c8102e;
  --red-dark: #9b0c23;
  --red-deep: #7c0a1d;
  --gold: #ffc63c;
  --gold-dark: #d99a12;
  --green: #14a06e;
  --green-dark: #0d7a52;
  --blue: #1d6ff2;
  --blue-dark: #1454b8;
  --ink: #16161c;
  --ink-2: #23232c;
  --ink-3: #2e2e3a;
  --paper: #ffffff;
  --paper-2: #f7f7fb;
  --line: #e6e6ee;
  --text: #2b2b33;
  --muted: #6b6b78;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(22, 22, 28, .10);
  --shadow-lg: 0 18px 48px rgba(22, 22, 28, .18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --header-h: 66px;
}

* { 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.75;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

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

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

h1, h2, h3, h4 { line-height: 1.3; color: var(--ink); margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1.1em; }

ul, ol { padding-left: 1.3em; margin: 0 0 1.1em; }
li { margin-bottom: .45em; }

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

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  border: 0;
}

/* ---------- Tombol ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .98rem;
  line-height: 1.2;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: linear-gradient(180deg, #ffd766 0%, var(--gold) 45%, var(--gold-dark) 100%);
  color: #4a3200;
  border-color: #b57e08;
  box-shadow: 0 6px 18px rgba(217, 154, 18, .45), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.btn-gold:hover { box-shadow: 0 10px 24px rgba(217, 154, 18, .55), inset 0 1px 0 rgba(255, 255, 255, .55); }

.btn-red {
  background: linear-gradient(180deg, #e3243f 0%, var(--red) 55%, var(--red-dark) 100%);
  color: #fff;
  border-color: var(--red-deep);
  box-shadow: 0 6px 18px rgba(200, 16, 46, .4), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.btn-green {
  background: linear-gradient(180deg, #1cbf82 0%, var(--green) 55%, var(--green-dark) 100%);
  color: #fff;
  border-color: #0a5e40;
  box-shadow: 0 6px 18px rgba(20, 160, 110, .38);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline-dark:hover { border-color: var(--red); color: var(--red); }

.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(18, 18, 24, .97);
  border-bottom: 2px solid var(--gold);
  backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; flex-shrink: 0; }
.brand-badge {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(160deg, #2a2a35, #14141b);
  border: 2px solid var(--gold);
  display: grid; place-items: center;
  font-size: 1.15rem;
  box-shadow: inset 0 0 12px rgba(255, 198, 60, .35);
}
.brand-text { font-size: 1.3rem; font-weight: 900; letter-spacing: .2px; }
.brand-text i { color: var(--gold); font-style: normal; }
.brand-text small { color: #9a9aa8; font-weight: 600; font-size: .72rem; }

.main-navigation { margin-left: auto; }
.menu-masuk-mobile { display: none; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.main-navigation a {
  display: block;
  padding: 9px 13px;
  color: #d9d9e3;
  font-weight: 700;
  font-size: .93rem;
  border-radius: 8px;
  text-decoration: none !important;
}
.main-navigation a:hover { color: var(--gold); background: rgba(255, 255, 255, .06); }
.main-navigation .current-menu-item a,
.main-navigation a[aria-current="page"] { color: var(--gold); background: rgba(255, 198, 60, .12); }

.header-actions { display: flex; align-items: center; gap: 9px; }

.icon-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  transition: border-color .15s;
}
.icon-btn:hover { border-color: var(--gold); }

.nav-toggle { display: none; }

/* ---------- Breadcrumb ---------- */
.breadcrumbs {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  font-size: .86rem;
  color: var(--muted);
}
.breadcrumbs .container { padding-top: 10px; padding-bottom: 10px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: #b6b6c4; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs .current { color: var(--ink); font-weight: 700; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(255, 198, 60, .16), transparent 60%),
    radial-gradient(800px 420px at -10% 110%, rgba(200, 16, 46, .35), transparent 60%),
    linear-gradient(180deg, #17171f 0%, #101017 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
  padding-top: 58px;
  padding-bottom: 58px;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 198, 60, .12);
  border: 1px solid rgba(255, 198, 60, .45);
  color: var(--gold);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { color: #fff; font-size: 2.5rem; margin-bottom: 14px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero .lead { color: #c9c9d6; font-size: 1.05rem; max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25);
  color: #e8e8ef;
  background: rgba(255, 255, 255, .05);
}
.badge-18 { border-color: var(--gold); color: var(--gold); }
.badge-green { border-color: var(--green); color: #6fe0ae; }
.badge-blue { border-color: var(--blue); color: #8ab6ff; }

.hero-media { position: relative; }
.hero-media img {
  border-radius: 18px;
  border: 2px solid rgba(255, 198, 60, .5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.hero-chip {
  position: absolute;
  background: #14141b;
  border: 1px solid rgba(255, 198, 60, .55);
  color: #fff;
  font-size: .8rem; font-weight: 800;
  padding: 9px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.hero-chip small { display: block; color: var(--gold); font-size: .68rem; letter-spacing: 1px; }
.chip-a { top: -14px; left: -14px; }
.chip-b { bottom: -14px; right: -10px; }

/* ---------- Bagian umum ---------- */
.site-main { display: block; }
.section { padding: 56px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: linear-gradient(180deg, #1a1a23, #101017); color: #d6d6e0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.section-dark .section-head p { color: #a9a9b8; }
.eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 900;
  font-size: .78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-dark .eyebrow { color: var(--gold); }

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

/* ---------- Kartu ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  border-radius: 14px;
  margin-bottom: 14px;
}
.ic-gold { background: rgba(255, 198, 60, .16); border: 1px solid rgba(217, 154, 18, .4); }
.ic-red { background: rgba(200, 16, 46, .1); border: 1px solid rgba(200, 16, 46, .35); }
.ic-green { background: rgba(20, 160, 110, .12); border: 1px solid rgba(20, 160, 110, .35); }
.ic-blue { background: rgba(29, 111, 242, .1); border: 1px solid rgba(29, 111, 242, .35); }

.card-link { font-weight: 800; font-size: .92rem; }

/* Kartu kategori */
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); text-decoration: none; }
.cat-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(16, 16, 23, .78));
}
.cat-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--red);
  color: #fff;
  font-size: .72rem; font-weight: 900;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 999px;
}
.cat-body { padding: 20px 22px 24px; }
.cat-body h3 { margin-bottom: 8px; }
.cat-body p { color: var(--muted); font-size: .93rem; margin-bottom: 12px; }
.cat-card:hover .cat-body h3 { color: var(--red); text-decoration: none; }

/* ---------- Langkah / Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  position: relative;
  counter-increment: step;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  box-shadow: var(--shadow);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: -16px; left: 20px;
  background: linear-gradient(180deg, #ffd766, var(--gold-dark));
  color: #4a3200;
  font-weight: 900;
  font-size: .85rem;
  padding: 5px 13px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(217, 154, 18, .4);
}
.step h3 { font-size: 1.02rem; margin: 8px 0 6px; }
.step p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- CTA daftar/masuk ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 12% 0%, rgba(20, 160, 110, .35), transparent 60%),
    radial-gradient(700px 320px at 90% 100%, rgba(255, 198, 60, .25), transparent 60%),
    linear-gradient(135deg, #23232c, #14141b);
  border-radius: 20px;
  color: #fff;
  padding: 42px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 30px;
  align-items: center;
  border: 1px solid rgba(255, 198, 60, .35);
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #c9c9d6; margin-bottom: 0; }
.cta-band-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-note { font-size: .8rem; color: #9a9aa8; text-align: center; margin: 4px 0 0; }

/* ---------- Fitur bersarang / brand highlights ---------- */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  font-size: 1.3rem;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.feature h3 { font-size: 1.02rem; margin-bottom: 4px; }
.feature p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- Testimoni ---------- */
.testi {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.testi-text { font-style: italic; color: var(--text); }
.testi-user { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 900;
  color: #fff;
  font-size: .95rem;
}
.av-gold { background: linear-gradient(140deg, #ffd766, #d99a12); color: #4a3200; }
.av-red { background: linear-gradient(140deg, #e3243f, #9b0c23); }
.av-green { background: linear-gradient(140deg, #1cbf82, #0d7a52); }
.testi-name { font-weight: 800; font-size: .92rem; }
.testi-role { color: var(--muted); font-size: .8rem; }
.stars { color: var(--gold-dark); letter-spacing: 2px; font-size: .9rem; }

/* ---------- Mitos & Fakta (kartu balik) ---------- */
.myth-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.myth-card { perspective: 1200px; min-height: 210px; }
.myth-inner {
  position: relative;
  width: 100%; height: 100%;
  transition: transform .5s;
  transform-style: preserve-3d;
  cursor: pointer;
}
.myth-card.flipped .myth-inner { transform: rotateY(180deg); }
.myth-face {
  position: absolute; inset: 0;
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.myth-front { background: var(--paper); }
.myth-back {
  background: linear-gradient(160deg, #1e2a24, #12251c);
  color: #e7f5ee;
  transform: rotateY(180deg);
  border-color: rgba(20, 160, 110, .5);
}
.myth-back h3 { color: #7fe0b4; }
.myth-front .myth-label { color: var(--red); font-weight: 900; font-size: .75rem; letter-spacing: 1.5px; }
.myth-front h3 { font-size: 1rem; }
.myth-front p { color: var(--muted); font-size: .86rem; margin: 0; }
.myth-back p { font-size: .88rem; margin: 0; color: #cfe7db; }
.myth-hint { font-size: .75rem; color: #9a9aa8; margin-top: auto; }
.myth-back .myth-hint { color: #7aa795; }

/* ---------- Kalkulator anggaran ---------- */
.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.calc label { display: block; font-weight: 800; font-size: .88rem; margin-bottom: 6px; }
.calc input[type="number"], .calc select {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper-2);
  font: inherit;
  color: var(--text);
}
.calc input:focus, .calc select:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.calc-output {
  background: linear-gradient(160deg, #1d1d27, #131319);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 198, 60, .4);
  color: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}
.calc-big { font-size: 2rem; font-weight: 900; color: var(--gold); line-height: 1.2; }
.calc-row { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; border-bottom: 1px dashed rgba(255, 255, 255, .18); padding-bottom: 8px; }
.calc-row span:last-child { font-weight: 800; }
.calc-warn { font-size: .8rem; color: #ffd766; }
.field-wrap { margin-bottom: 16px; }

/* ---------- Keamanan / RG ---------- */
.lock-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-sm);
  padding: 18px;
}
.lock-item .emoji { font-size: 1.4rem; line-height: 1; }
.lock-item h3 { font-size: .98rem; margin: 0 0 4px; color: #fff; }
.lock-item p { margin: 0; font-size: .86rem; color: #b9b9c6; }

.rg-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(20, 160, 110, .14);
  border: 1px solid rgba(20, 160, 110, .5);
  color: #7fe0b4;
  font-weight: 800; font-size: .85rem;
  padding: 7px 14px;
  border-radius: 999px;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 20px;
  font-weight: 800;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #4a3200;
  font-weight: 900;
  transition: transform .2s;
}
.faq-item[open] summary::after { content: "–"; transform: translateY(-50%) rotate(180deg); }
.faq-item[open] summary { color: var(--red); }
.faq-body { padding: 0 20px 18px; color: var(--muted); }
.faq-body p:last-child { margin-bottom: 0; }

/* ---------- Tag cloud ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .86rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all .15s;
  text-decoration: none !important;
}
.tag:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow); }
.tag .fire { color: var(--red); }
.tag-lg { font-size: 1rem; padding: 10px 20px; background: #fff7e2; border-color: rgba(217, 154, 18, .4); }
.tag-md { font-size: .93rem; }

/* ---------- Konten artikel ---------- */
.page-title { font-size: 2rem; margin-bottom: 12px; }
.entry-content { max-width: 800px; }
.entry-content img { border-radius: var(--radius); margin: 0 0 1.4em; box-shadow: var(--shadow); }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content blockquote {
  margin: 1.4em 0;
  padding: 16px 20px;
  background: #fff7e2;
  border-left: 4px solid var(--gold-dark);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #5a4a1a;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }

.notice {
  display: flex; gap: 12px; align-items: flex-start;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 1.3em 0;
  font-size: .92rem;
}
.notice .emoji { font-size: 1.2rem; line-height: 1.4; }
.notice-blue { background: #eaf2ff; border: 1px solid #bcd4ff; color: #1d3f8f; }
.notice-green { background: #e8f8f0; border: 1px solid #b5e6d1; color: #0d5c3f; }
.notice-gold { background: #fff7e2; border: 1px solid #f0d79a; color: #6b4e0e; }
.notice-red { background: #fdecef; border: 1px solid #f3bcc6; color: #8f1023; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.3em 0; border-radius: var(--radius-sm); border: 1px solid var(--line); }
table.terms { width: 100%; border-collapse: collapse; background: var(--paper); font-size: .9rem; min-width: 560px; }
table.terms th, table.terms td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.terms th { background: var(--paper-2); font-weight: 800; white-space: nowrap; }
table.terms tr:last-child td { border-bottom: 0; }

.meta-line { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--muted); font-size: .85rem; margin-bottom: 22px; }
.meta-line .chip { background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-weight: 700; color: var(--text); }

/* ---------- Daftar isi artikel ---------- */
.toc {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 1.6em 0;
}
.toc strong { display: block; margin-bottom: 8px; }
.toc ol { margin-bottom: 0; }

/* ---------- Halaman auth (daftar/masuk) ---------- */
.auth-wrap {
  min-height: calc(100vh - var(--header-h) - 220px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.auth-side {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: 50px 46px;
  color: #fff;
  background: linear-gradient(160deg, #1d1d27, #101017);
}
.auth-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.auth-side-content { position: relative; z-index: 2; max-width: 460px; }
.auth-side h2 { color: #fff; font-size: 1.7rem; }
.auth-side p { color: #c9c9d6; }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 46px 24px; background: var(--paper-2); }
.auth-form {
  width: 100%; max-width: 430px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 30px;
  box-shadow: var(--shadow-lg);
}
.auth-form h1 { font-size: 1.55rem; }
.auth-form .sub { color: var(--muted); font-size: .92rem; margin-bottom: 22px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 800; font-size: .88rem; margin-bottom: 6px; }
.form-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #d5d5e0;
  background: var(--paper);
  font: inherit;
  color: var(--text);
}
.form-field input:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.form-field .hint { font-size: .78rem; color: var(--muted); margin-top: 5px; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--muted); margin: 14px 0 18px; }
.form-check input { margin-top: 3px; }
.form-msg {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
}
.form-msg.show { display: block; }
.form-msg-ok { background: #e8f8f0; border: 1px solid #b5e6d1; color: #0d5c3f; }
.auth-alt { text-align: center; margin-top: 18px; font-size: .9rem; color: var(--muted); }
.auth-alt a { font-weight: 800; }
.auth-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.auth-steps li { display: flex; gap: 10px; align-items: flex-start; color: #d6d6e0; font-size: .92rem; margin: 0; }
.auth-steps .n {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gold);
  color: #4a3200;
  display: grid; place-items: center;
  font-weight: 900; font-size: .78rem;
}

/* ---------- Halaman promo listing ---------- */
.promo-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.promo-thumb { position: relative; min-height: 200px; }
.promo-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-body { padding: 24px 26px; }
.promo-body h3 { margin-bottom: 6px; }
.promo-body p { color: var(--muted); font-size: .93rem; }
.promo-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.promo-meta span {
  font-size: .76rem; font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--muted);
}
.promo-meta .hot { background: #fdecef; border-color: #f3bcc6; color: var(--red); }

/* ---------- Kartu bantuan ---------- */
.help-card {
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
}
.help-card .big { font-size: 2rem; margin-bottom: 10px; }

/* ---------- Pencarian overlay ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(12, 12, 18, .92);
  backdrop-filter: blur(4px);
  display: none;
  padding: 90px 20px 40px;
  overflow-y: auto;
}
.search-overlay.open { display: block; }
.search-panel { max-width: 720px; margin: 0 auto; }
.search-box { display: flex; gap: 10px; }
.search-box input {
  flex: 1;
  padding: 16px 20px;
  border-radius: 14px;
  border: 2px solid rgba(255, 198, 60, .55);
  background: #1a1a23;
  color: #fff;
  font: inherit;
  font-size: 1.02rem;
}
.search-box input:focus { outline: none; border-color: var(--gold); }
.search-close {
  position: absolute; top: 24px; right: 26px;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: transparent;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}
.search-close:hover { border-color: var(--gold); color: var(--gold); }
.search-results { margin-top: 22px; display: grid; gap: 12px; }
.search-result {
  background: #1a1a23;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  padding: 16px 18px;
}
.search-result a { color: var(--gold); font-weight: 800; text-decoration: none; }
.search-result a:hover { text-decoration: underline; }
.search-result p { margin: 6px 0 0; color: #b9b9c6; font-size: .88rem; }
.search-hint { color: #9a9aa8; text-align: center; margin-top: 20px; font-size: .85rem; }
.search-tags-title { color: #9a9aa8; font-size: .8rem; letter-spacing: 1.5px; margin: 26px 0 12px; text-transform: uppercase; }
.search-overlay .tag { background: #1a1a23; border-color: rgba(255, 255, 255, .18); color: #d9d9e3; }
.search-overlay .tag:hover { border-color: var(--gold); color: var(--gold); }
mark { background: rgba(255, 198, 60, .3); color: #ffe9ad; padding: 0 3px; border-radius: 3px; }

/* ---------- CTA mengambang (gaya mesin slot) ---------- */
.float-cta {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #26262f, #13131a);
  border: 2px solid var(--gold);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .55), inset 0 0 18px rgba(255, 198, 60, .18);
  max-width: calc(100vw - 24px);
}
.float-cta::before {
  content: "777";
  position: absolute;
  top: -14px; left: 18px;
  font-size: .68rem; font-weight: 900;
  letter-spacing: 3px;
  color: #4a3200;
  background: linear-gradient(180deg, #ffd766, var(--gold-dark));
  padding: 2px 10px;
  border-radius: 999px;
  border: 2px solid #13131a;
}
.float-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 128px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 900;
  font-size: .95rem;
  letter-spacing: 1px;
  text-decoration: none !important;
  white-space: nowrap;
}
.float-daftar {
  background: linear-gradient(180deg, #ffd766 0%, var(--gold) 45%, var(--gold-dark) 100%);
  color: #4a3200;
  border: 2px solid #b57e08;
  box-shadow: 0 0 0 3px rgba(255, 215, 102, .25), 0 6px 16px rgba(217, 154, 18, .55);
  animation: pulse-gold 1.6s ease-in-out infinite;
}
.float-masuk {
  background: linear-gradient(180deg, #1cbf82, var(--green-dark));
  color: #fff;
  border: 2px solid #0a5e40;
  box-shadow: 0 6px 16px rgba(20, 160, 110, .5);
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 215, 102, .25), 0 6px 16px rgba(217, 154, 18, .55); }
  50% { box-shadow: 0 0 0 7px rgba(255, 215, 102, .12), 0 6px 22px rgba(217, 154, 18, .75); }
}
.coins { position: absolute; inset: -30px -6px auto -6px; height: 46px; pointer-events: none; }
.coin {
  position: absolute;
  bottom: 0;
  font-size: 1rem;
  opacity: 0;
  animation: coin-rise 2.8s linear infinite;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5));
}
.coin.c1 { left: 8%; animation-delay: 0s; }
.coin.c2 { left: 30%; animation-delay: .7s; font-size: .8rem; }
.coin.c3 { left: 55%; animation-delay: 1.3s; }
.coin.c4 { left: 78%; animation-delay: 1.9s; font-size: .85rem; }
.coin.c5 { left: 92%; animation-delay: 2.4s; font-size: .75rem; }
@keyframes coin-rise {
  0% { transform: translateY(8px) rotate(0deg) scale(.6); opacity: 0; }
  12% { opacity: 1; }
  70% { opacity: .9; }
  100% { transform: translateY(-42px) rotate(340deg) scale(1); opacity: 0; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, #17171f, #0e0e14);
  color: #b9b9c6;
  padding-top: 52px;
  margin-top: 40px;
  border-top: 3px solid var(--gold);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 38px; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; letter-spacing: .5px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #b9b9c6; font-size: .92rem; }
.footer-col a:hover { color: var(--gold); }
.footer-about p { font-size: .9rem; margin: 14px 0; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.footer-badges .badge { border-color: rgba(255, 255, 255, .2); }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 22px 0 26px;
  font-size: .8rem;
  color: #8b8b98;
}
.footer-legal p { margin: 0 0 8px; }
.footer-legal p:last-child { margin-bottom: 0; }
.footer-age {
  display: inline-grid; place-items: center;
  min-width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 900;
  margin-right: 12px;
  vertical-align: middle;
}

/* ---------- Utilitas ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.list-check { list-style: none; padding-left: 0; }
.list-check li { padding-left: 30px; position: relative; }
.list-check li::before {
  content: "✔";
  position: absolute; left: 0; top: 0;
  color: var(--green);
  font-weight: 900;
}
.list-cross { list-style: none; padding-left: 0; }
.list-cross li { padding-left: 30px; position: relative; }
.list-cross li::before {
  content: "✘";
  position: absolute; left: 0; top: 0;
  color: var(--red);
  font-weight: 900;
}
.divider { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }

/* ==========================================================================
   Responsif
   ========================================================================== */
@media (max-width: 1100px) {
  .main-navigation a { padding: 9px 9px; font-size: .88rem; }
}

@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .myth-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-media { max-width: 560px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { padding: 40px 24px; }
  .calc { grid-template-columns: 1fr; }
  .promo-card { grid-template-columns: 1fr; }
  .promo-thumb { min-height: 190px; }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: grid; place-items: center;
    width: 42px; height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .05);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    order: 5;
  }
  .main-navigation {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #13131a;
    border-bottom: 2px solid var(--gold);
    padding: 12px 20px 18px;
    margin-left: 0;
  }
  .main-navigation.open { display: block; }
  .main-navigation ul { flex-direction: column; gap: 2px; }
  .main-navigation a { padding: 12px 10px; font-size: 1rem; }
  .header-actions { margin-left: auto; }
  .menu-masuk-mobile {
    display: block;
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 8px;
    padding-top: 6px;
  }
  .menu-masuk-mobile a { color: var(--gold) !important; }
  .hero h1 { font-size: 1.9rem; }
  .cta-band { grid-template-columns: 1fr; padding: 32px 24px; }
  .cta-band-actions { flex-direction: row; flex-wrap: wrap; }
  .cta-band-actions .btn { flex: 1 1 160px; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .header-inner { gap: 10px; min-height: 58px; }
  .brand-badge { width: 34px; height: 34px; font-size: 1rem; }
  .brand-text { font-size: 1.05rem; }
  .header-actions { gap: 6px; }
  .header-actions .btn-outline { display: none; } /* Masuk masuk menu seluler */
  .btn-sm { padding: 8px 14px; font-size: .82rem; }
  .icon-btn { width: 36px; height: 36px; }
  .nav-toggle { width: 38px; height: 38px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .myth-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .section { padding: 42px 0; }
  .hero-inner { padding-top: 40px; padding-bottom: 44px; }
  .hero h1 { font-size: 1.62rem; }
  .hero .lead { font-size: .96rem; }
  .hero-cta .btn { width: 100%; }
  .hero-chip { display: none; }
  .page-title { font-size: 1.5rem; }
  .auth-form { padding: 26px 20px; }
  .float-cta { bottom: 10px; padding: 8px 10px; gap: 8px; width: calc(100vw - 20px); justify-content: center; }
  .float-btn { min-width: 0; flex: 1; padding: 11px 10px; font-size: .9rem; letter-spacing: .5px; }
  .float-cta::before { left: 50%; transform: translateX(-50%); }
  h2 { font-size: 1.35rem; }
  h1 { font-size: 1.7rem; }
}

@media (max-width: 400px) {
  .container { padding: 0 14px; }
  .float-btn { font-size: .84rem; padding: 10px 6px; }
  .brand-text small { display: none; }
}

/* Cetak */
@media print {
  .site-header, .float-cta, .search-overlay, .site-footer { display: none !important; }
  body { padding: 0; }
}

/* Preferensi gerak minimal */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
