/*
Theme Name: Dewa787 Guides
Theme URI: https://dewa787.games
Author: Dewa787 Redaksi
Description: Tema situs panduan Dewa787 — mobile-first, aksesibel, gelap-hijau kasino dengan aksen emas.
Version: 1.0.0
License: Proprietary
Text Domain: dewa787
*/

/* ============ Base & tokens ============ */
:root {
  --c-ink: #0a120c;
  --c-ink-2: #10201a;
  --c-emerald: #0e8a4f;
  --c-emerald-deep: #0a6339;
  --c-gold: #f2b705;
  --c-gold-2: #d99a00;
  --c-red: #d81e3f;
  --c-red-deep: #a3122c;
  --c-blue: #2563eb;
  --c-white: #ffffff;
  --c-paper: #f2f6f0;
  --c-card: #ffffff;
  --c-line: #dce5da;
  --c-text: #212a23;
  --c-muted: #5a665c;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 12px 32px rgba(10, 18, 12, 0.10);
  --shadow-sm: 0 4px 14px rgba(10, 18, 12, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { 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(--c-text);
  background: var(--c-paper);
  overflow-x: hidden;
}

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

a { color: var(--c-emerald-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-gold-2); }

h1, h2, h3, h4 { line-height: 1.25; color: var(--c-ink); margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.08rem, 2.2vw, 1.25rem); }
p { margin: 0 0 1em; overflow-wrap: break-word; }

.container { width: min(100% - 2.2rem, var(--wrap)); margin-inline: auto; }
.container--narrow { max-width: 880px; }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 0.72em 1.5em;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.35;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  max-width: 100%;
}
.btn:active { transform: translateY(1px); }
.btn--gold {
  background: linear-gradient(180deg, #ffd75e, var(--c-gold) 55%, var(--c-gold-2));
  color: #3d2b00;
  box-shadow: 0 6px 18px rgba(242, 183, 5, 0.35);
}
.btn--gold:hover { box-shadow: 0 8px 22px rgba(242, 183, 5, 0.5); color: #2e2100; }
.btn--ghost { background: transparent; color: var(--c-gold); border-color: var(--c-gold); }
.btn--ghost:hover { background: rgba(242, 183, 5, 0.12); color: #ffd75e; }
.btn--red { background: linear-gradient(180deg, #ef4162, var(--c-red)); color: #fff; box-shadow: 0 6px 18px rgba(216, 30, 63, 0.32); }
.btn--red:hover { color: #fff; }
.btn--green { background: linear-gradient(180deg, #14a35e, var(--c-emerald-deep)); color: #fff; box-shadow: 0 6px 18px rgba(10, 99, 57, 0.28); }
.btn--green:hover { color: #fff; }
.btn--outline { background: #fff; color: var(--c-emerald-deep); border-color: var(--c-emerald-deep); }
.btn--outline:hover { background: #eaf5ee; }
.btn--line { background: transparent; color: var(--c-emerald-deep); border-color: rgba(10, 99, 57, 0.35); }
.btn--line:hover { border-color: var(--c-emerald-deep); }
.btn--sm { padding: 0.5em 1.1em; font-size: 0.87rem; }
.btn--block { display: block; width: 100%; text-align: center; }

/* ============ Topbar & header ============ */
.topbar {
  background: repeating-linear-gradient(-45deg, var(--c-red-deep), var(--c-red-deep) 14px, #b91735 14px, #b91735 28px);
  color: #fff;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 6px 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: linear-gradient(180deg, #0d1912, var(--c-ink));
  border-bottom: 1px solid rgba(242, 183, 5, 0.25);
  box-shadow: 0 6px 24px rgba(10, 18, 12, 0.35);
}
.site-header__inner { display: flex; align-items: center; gap: 18px; padding: 10px 0; }

.site-branding { display: flex; align-items: center; gap: 10px; flex: none; }
.logo-chip { width: 44px; height: 44px; filter: drop-shadow(0 2px 6px rgba(242, 183, 5, 0.45)); }
.brand-text {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--c-white);
  letter-spacing: 0.02em;
  display: block;
  line-height: 1.1;
}
.brand-text em { font-style: normal; color: var(--c-gold); }
.brand-tag { font-size: 0.66rem; color: #9fd8b4; letter-spacing: 0.14em; text-transform: uppercase; }

.main-navigation { margin-left: auto; }
.main-navigation ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-navigation a {
  display: block;
  padding: 0.5em 0.95em;
  color: #d9e7dd;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.93rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-navigation a:hover { color: var(--c-gold); background: rgba(242, 183, 5, 0.1); }
.current-menu-item a { color: var(--c-gold); background: rgba(242, 183, 5, 0.16); }

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.search-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #d9e7dd;
  border-radius: 10px;
  width: 38px; height: 38px;
  font-size: 1rem;
  cursor: pointer;
}
.search-toggle:hover { border-color: var(--c-gold); }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  width: 42px; height: 38px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--c-gold);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.nav-toggle span:nth-child(1) { top: 12px; }
.nav-toggle span:nth-child(2) { top: 18px; }
.nav-toggle span:nth-child(3) { top: 24px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 18px; transform: rotate(-45deg); }

.header-search { display: none; padding: 0 0 12px; }
.header-search.is-open { display: block; }
.header-search form { display: flex; gap: 8px; max-width: 560px; margin-inline: auto; }
.header-search input {
  flex: 1;
  min-width: 0;
  padding: 0.6em 1em;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.95rem;
}
.header-search input::placeholder { color: #9db3a3; }
.header-search input:focus { outline: 2px solid var(--c-gold); border-color: transparent; }

/* ============ Hero ============ */
.hero {
  background:
    radial-gradient(1000px 420px at 85% -10%, rgba(242, 183, 5, 0.16), transparent 60%),
    radial-gradient(760px 420px at 8% 110%, rgba(14, 138, 79, 0.35), transparent 60%),
    linear-gradient(140deg, var(--c-ink) 0%, #0e2417 55%, #0a3d24 100%);
  color: #eef6ef;
  padding: clamp(44px, 7vw, 84px) 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 34px, rgba(255, 255, 255, 0.022) 34px 35px);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__kicker {
  display: inline-block;
  background: rgba(216, 30, 63, 0.2);
  border: 1px solid rgba(239, 65, 98, 0.55);
  color: #ffc9d3;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.hero h1 { color: #fff; margin-bottom: 0.4em; }
.hero h1 em { font-style: normal; color: var(--c-gold); }
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.13rem); color: #cfe3d4; max-width: 56ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.hero__media { position: relative; }
.hero__img {
  border-radius: var(--radius);
  border: 3px solid rgba(242, 183, 5, 0.55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transform: rotate(1.6deg);
}
.hero__badge {
  position: absolute;
  left: -14px;
  bottom: -18px;
  background: linear-gradient(180deg, #ffd75e, var(--c-gold-2));
  color: #33240a;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  max-width: 240px;
}
.hero__badge strong { font-size: 1.3rem; line-height: 1.1; }
.hero__badge span { font-size: 0.72rem; font-weight: 700; }

/* ============ Tag cloud ============ */
.tagcloud { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.tagcloud__label { font-size: 0.8rem; font-weight: 800; color: var(--c-gold); }
.tagcloud ul { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 0; padding: 0; }
.tagcloud a {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #d9e7dd;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 3px 12px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.tagcloud a:hover { background: var(--c-gold); color: #33240a; }
.tagcloud--center { justify-content: center; margin: 14px 0 6px; }
.tagcloud--center .tagcloud__label { color: var(--c-emerald-deep); }

/* ============ Sections ============ */
.section { padding: clamp(42px, 6vw, 74px) 0; }
.section--alt { background: #e8efe7; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(26px, 4vw, 44px); }
.section-head__eyebrow {
  display: inline-block;
  color: var(--c-emerald-deep);
  background: #dcefe2;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.section-head p { color: var(--c-muted); }

/* steps */
.steps-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step-card {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-top: 4px solid var(--c-emerald);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffd75e, var(--c-gold-2));
  color: #33240a;
  font-weight: 900;
  font-size: 1.1rem;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(242, 183, 5, 0.4);
}
.step-card p { font-size: 0.9rem; color: var(--c-muted); margin: 0; }

/* advantages */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.adv-card {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.adv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.adv-card__ico { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.adv-card p { font-size: 0.9rem; color: var(--c-muted); margin: 0; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.about-facts {
  background: linear-gradient(160deg, var(--c-ink-2), #0d2b1b);
  color: #d9e7dd;
  border-radius: var(--radius);
  padding: 26px 24px;
  border: 1px solid rgba(242, 183, 5, 0.3);
}
.about-facts h3 { color: var(--c-gold); }
.about-facts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.about-facts li { font-size: 0.9rem; line-height: 1.55; padding-left: 20px; position: relative; }
.about-facts li::before { content: "◆"; position: absolute; left: 0; color: var(--c-gold); font-size: 0.7rem; top: 4px; }

/* why + vip */
.why-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.why-list li {
  background: var(--c-card);
  border-left: 4px solid var(--c-gold);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.why-list strong { color: var(--c-ink); }
.why-list span { font-size: 0.9rem; color: var(--c-muted); }
.vip-guide {
  background: #fff8e3;
  border: 1px dashed var(--c-gold-2);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.vip-guide h3 { color: #6b4c00; margin-bottom: 0.6em; }
.vip-guide ol { margin: 0 0 0.8em; padding-left: 20px; }
.vip-guide li { margin-bottom: 0.5em; font-size: 0.93rem; }
.vip-guide__more { margin: 0; font-size: 0.88rem; color: var(--c-muted); }

/* mobile section */
.mobile-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 52px); align-items: center; }
.mobile-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.mobile-media figcaption { font-size: 0.8rem; color: var(--c-muted); margin-top: 8px; text-align: center; }

.check-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.check-list li { padding-left: 30px; position: relative; }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 1px;
  width: 21px; height: 21px;
  background: var(--c-emerald);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 900;
}

/* readers */
.readers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.reader-card {
  margin: 0;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.reader-card blockquote { margin: 0; font-size: 0.9rem; color: var(--c-text); font-style: italic; }
.reader-card blockquote::before { content: "“"; color: var(--c-gold-2); font-size: 1.6rem; font-style: normal; line-height: 0; margin-right: 2px; vertical-align: -0.3em; }
.reader-card figcaption { font-size: 0.8rem; font-weight: 800; color: var(--c-emerald-deep); margin-top: auto; }

/* calculator */
.section--calc { background: linear-gradient(160deg, var(--c-ink-2), #0c2418); color: #d9e7dd; }
.section--calc .section-head__eyebrow { background: rgba(242, 183, 5, 0.15); color: var(--c-gold); }
.section--calc h2, .section--calc h3 { color: #fff; }
.section--calc .section-head p { color: #a9c4b1; }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin-inline: auto; }
.calc__form {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(242, 183, 5, 0.3);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  gap: 14px;
  align-content: start;
}
.calc__form label { display: grid; gap: 6px; font-size: 0.86rem; font-weight: 700; color: #cfe3d4; }
.calc__form input {
  width: 100%;
  padding: 0.62em 0.9em;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 18, 12, 0.6);
  color: #fff;
  font-size: 1rem;
}
.calc__form input:focus { outline: 2px solid var(--c-gold); border-color: transparent; }
.calc__out {
  background: #fff;
  color: var(--c-text);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 190px;
}
.calc__hint { color: var(--c-muted); font-size: 0.92rem; }
.calc__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px dashed var(--c-line); padding-bottom: 8px; }
.calc__row dt { font-size: 0.85rem; color: var(--c-muted); font-weight: 700; }
.calc__row dd { margin: 0; font-weight: 900; color: var(--c-emerald-deep); font-size: 1.05rem; text-align: right; }
.calc__warn { font-size: 0.82rem; color: var(--c-red-deep); background: #fdeef1; border-radius: var(--radius-sm); padding: 8px 12px; }
.calc-note { max-width: 760px; margin: 18px auto 0; text-align: center; font-size: 0.85rem; color: #a9c4b1; }
.calc-note a { color: var(--c-gold); }

/* security */
.security-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.security-media img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* responsible gaming */
.section--rg { background: linear-gradient(180deg, #2a0a14, var(--c-red-deep)); color: #ffe3e9; }
.section--rg h2 { color: #fff; }
.section--rg .section-head__eyebrow { background: rgba(255, 255, 255, 0.14); color: #ffd0da; }
.section--rg .section-head p { color: #f3c3cd; }
.rg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rg-card { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius); padding: 20px; }
.rg-card h3 { color: #ffe9a8; font-size: 1rem; }
.rg-card p { font-size: 0.86rem; color: #f6d7de; margin: 0; }
.rg-note { text-align: center; margin: 26px auto 0; max-width: 760px; font-size: 0.86rem; font-weight: 700; color: #ffd0da; }

/* faq */
.faq-list { display: grid; gap: 10px; text-align: left; }
.faq-list details {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 46px 15px 18px;
  font-weight: 800;
  font-size: 0.96rem;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  background: #e4f1e8;
  color: var(--c-emerald-deep);
  border-radius: 50%;
  font-weight: 900;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-a { padding: 0 18px 16px; color: var(--c-muted); font-size: 0.92rem; }
.faq-a p { margin: 0; }
.faq-more { text-align: center; color: var(--c-muted); font-size: 0.9rem; margin-top: 20px; }

/* ============ Breadcrumb ============ */
.breadcrumb { background: #e3ebe2; border-bottom: 1px solid var(--c-line); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 10px 0; font-size: 0.82rem; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; color: var(--c-muted); }
.breadcrumb li + li::before { content: "›"; color: var(--c-muted); }
.breadcrumb a { color: var(--c-emerald-deep); text-decoration: none; font-weight: 700; }
.breadcrumb [aria-current] { color: var(--c-ink); font-weight: 700; }

/* ============ Kategori hero ============ */
.cat-hero { color: #eef6ef; padding: clamp(38px, 6vw, 64px) 0; }
.cat-hero h1 { color: #fff; margin-bottom: 0.35em; }
.cat-hero p { color: #cfe3d4; max-width: 78ch; margin: 0; font-size: clamp(0.98rem, 1.5vw, 1.08rem); }
.cat-hero--slot { background: linear-gradient(140deg, var(--c-ink), #123524 60%, #0a3d24); }
.cat-hero--casino { background: linear-gradient(140deg, var(--c-ink), #3a0f1c 60%, #6b1626); }
.cat-hero--poker { background: linear-gradient(140deg, var(--c-ink), #0b2416 60%, #14532d); }
.cat-hero--sport { background: linear-gradient(140deg, var(--c-ink), #0d1e33 60%, #123a63); }
.cat-hero--promo { background: linear-gradient(140deg, var(--c-ink), #3a2a06 60%, #6b4e0a); }

/* ============ Artikel & sidebar ============ */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 3.5vw, 44px); padding: clamp(30px, 4.5vw, 54px) 0; align-items: start; }
.entry { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius); padding: clamp(20px, 3.4vw, 40px); box-shadow: var(--shadow-sm); min-width: 0; }
.entry-header { border-bottom: 2px solid var(--c-line); margin-bottom: 22px; padding-bottom: 16px; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.8rem; color: var(--c-muted); }
.entry-content { font-size: 1rem; }
.entry-content h2 { margin-top: 1.6em; padding-left: 12px; border-left: 4px solid var(--c-gold); }
.entry-content h3 { margin-top: 1.4em; color: var(--c-emerald-deep); }
.entry-content ul, .entry-content ol { padding-left: 22px; margin-bottom: 1em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content .lead { font-size: 1.08rem; font-weight: 500; color: #38423a; }
.entry-hero-img { margin: 0 0 20px; }
.entry-hero-img img { width: 100%; border-radius: var(--radius-sm); }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin: 0 0 1.4em; }
.tbl th { background: var(--c-emerald-deep); color: #fff; text-align: left; }
.tbl th, .tbl td { padding: 10px 12px; border: 1px solid var(--c-line); vertical-align: top; }
.tbl tr:nth-child(even) td { background: #f2f7f1; }
.entry-content details { border: 1px solid var(--c-line); border-radius: var(--radius-sm); margin-bottom: 10px; background: #fbfdfa; }
.entry-content summary { padding: 12px 16px; font-weight: 800; cursor: pointer; }
.entry-content summary::-webkit-details-marker { color: var(--c-emerald-deep); }

.sidebar { display: grid; gap: 18px; position: sticky; top: 86px; }
.widget { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.widget h3 { font-size: 1rem; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--c-gold); }
.widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.widget a { text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.widget a:hover { text-decoration: underline; }
.widget-cta { margin-top: 10px; }

/* ============ Cards ============ */
.cards-grid, .promos-grid { display: grid; gap: 20px; }
.cards-grid { grid-template-columns: repeat(3, 1fr); }
.promos-grid { grid-template-columns: repeat(2, 1fr); max-width: 960px; margin-inline: auto; }
.post-card, .promo-card {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.post-card:hover, .promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card img, .promo-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card__body, .promo-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__meta { font-size: 0.72rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-emerald-deep); }
.post-card h3, .promo-card h2 { margin: 0; font-size: 1.06rem; }
.post-card a, .promo-card a { text-decoration: none; color: var(--c-ink); }
.post-card p, .promo-card p { font-size: 0.88rem; color: var(--c-muted); margin: 0; }
.promo-card h2 a { font-size: 1.12rem; }
.promo-card__terms { display: flex; flex-wrap: wrap; gap: 6px; }
.promo-card__terms span { font-size: 0.72rem; font-weight: 800; background: #eef4ec; color: var(--c-emerald-deep); border: 1px solid var(--c-line); border-radius: 999px; padding: 2px 10px; }
.promo-card .btn { align-self: flex-start; margin-top: 4px; }

.badge { display: inline-block; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.badge--red { background: var(--c-red); color: #fff; border-radius: 999px; padding: 3px 12px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001s !important; }
}

/* ============ Auth ============ */
.auth { padding: clamp(34px, 5vw, 60px) 0; }
.auth__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(24px, 4vw, 52px); align-items: start; }
.auth__media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.auth__media figcaption { font-size: 0.82rem; color: var(--c-muted); margin-top: 8px; }
.auth__card { background: var(--c-card); border: 1px solid var(--c-line); border-top: 5px solid var(--c-gold); border-radius: var(--radius); padding: clamp(22px, 3.4vw, 36px); box-shadow: var(--shadow); }
.auth__sub { font-size: 0.9rem; color: var(--c-muted); }
.auth-form { display: grid; gap: 14px; margin-top: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.86rem; font-weight: 800; }
.field input {
  width: 100%;
  padding: 0.68em 0.95em;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--c-line);
  font-size: 1rem;
  background: #fbfdfa;
}
.field input:focus { outline: 2px solid var(--c-gold); border-color: transparent; }
.field-meter { height: 6px; background: #e7ece7; border-radius: 999px; overflow: hidden; }
.field-meter span { display: block; height: 100%; width: 0; background: var(--c-red); border-radius: 999px; transition: width 0.25s ease, background 0.25s ease; }
.field-meter span.lv1 { width: 33%; background: var(--c-red); }
.field-meter span.lv2 { width: 66%; background: var(--c-gold); }
.field-meter span.lv3 { width: 100%; background: var(--c-emerald); }
.field-help { color: var(--c-muted); font-size: 0.78rem; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 0.85rem; color: var(--c-muted); }
.field-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--c-emerald-deep); }
.form-error { display: none; background: #fdeef1; color: var(--c-red-deep); border: 1px solid #f3c3cd; border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.85rem; font-weight: 700; margin: 0; }
.form-error.show { display: block; }
.form-alt { text-align: center; font-size: 0.88rem; color: var(--c-muted); margin: 4px 0 0; }
.auth__notes { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px dashed var(--c-line); display: grid; gap: 8px; }
.auth__notes li { font-size: 0.82rem; color: var(--c-muted); padding-left: 22px; position: relative; }
.auth__notes li::before { content: "⚠"; position: absolute; left: 0; color: var(--c-gold-2); }

/* ============ Search page ============ */
.search-page__form { display: flex; gap: 10px; max-width: 620px; margin: 0 auto; }
.search-page__form input {
  flex: 1; min-width: 0;
  padding: 0.7em 1.1em;
  border-radius: 999px;
  border: 1.5px solid var(--c-line);
  font-size: 1rem;
  background: #fff;
}
.search-page__form input:focus { outline: 2px solid var(--c-gold); border-color: transparent; }
.search-results { margin-top: 26px; display: grid; gap: 12px; }
.search-results li { list-style: none; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: 14px 18px; }
.search-results .src-cat { font-size: 0.72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; color: var(--c-emerald-deep); }
.search-results h3 { margin: 4px 0; font-size: 1rem; }
.search-results a { text-decoration: none; color: var(--c-ink); }
.search-empty { text-align: center; color: var(--c-muted); }
.search-fallback { padding-left: 18px; }
.search-fallback ul { padding-left: 16px; }

/* ============ 404 ============ */
.section--404 { padding: clamp(60px, 10vw, 110px) 0; }
.err-code { font-size: clamp(4.4rem, 14vw, 7rem); font-weight: 900; line-height: 1; margin: 0; color: var(--c-gold); text-shadow: 3px 3px 0 var(--c-red); letter-spacing: 0.04em; }
.err-links { margin-top: 18px; font-size: 0.9rem; color: var(--c-muted); }

/* ============ Footer ============ */
.site-footer { background: linear-gradient(180deg, var(--c-ink-2), var(--c-ink)); color: #b9cbbf; margin-top: 0; }
.footer-widgets { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 30px; padding: clamp(36px, 5vw, 56px) 0 26px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.site-footer h3 { color: var(--c-gold); font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; }
.site-footer p { font-size: 0.86rem; color: #a9c4b1; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #d9e7dd; text-decoration: none; font-size: 0.88rem; }
.site-footer a:hover { color: var(--c-gold); }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fb { font-size: 0.72rem; font-weight: 800; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 4px 11px; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 20px 0 26px; }
.footer-legal p { font-size: 0.76rem; color: #8fa697; line-height: 1.65; margin-bottom: 10px; }
.footer-copy { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 0.76rem; color: #8fa697; }

/* ============ Floatbar (gaya mesin slot + koin) ============ */
.floatbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 950;
  display: flex;
  justify-content: center;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(10, 18, 12, 0), rgba(10, 18, 12, 0.55) 45%, rgba(10, 18, 12, 0.95));
  pointer-events: none;
}
.floatbar__inner {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, #14301f, var(--c-ink) 70%);
  border: 2px solid var(--c-gold);
  border-radius: 999px;
  padding: 7px 12px;
  box-shadow: 0 -2px 26px rgba(242, 183, 5, 0.4), 0 6px 22px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  max-width: 100%;
}
.floatbar__reels { display: flex; gap: 4px; flex: none; }
.reel {
  width: 32px; height: 36px;
  border-radius: 9px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, #1d3d29, #0d1b12);
  overflow: hidden;
  position: relative;
}
.reel__strip {
  position: absolute; left: 0; right: 0; top: 0;
  text-align: center;
  font-size: 20px;
  line-height: 36px;
  animation: reelSpin 2.4s linear infinite;
}
.reel:nth-child(2) .reel__strip { animation-delay: 0.45s; }
.reel:nth-child(3) .reel__strip { animation-delay: 0.9s; }
.reel__strip span { display: block; height: 36px; }
@keyframes reelSpin {
  0% { transform: translateY(0); }
  16% { transform: translateY(-36px); }
  32% { transform: translateY(-72px); }
  48% { transform: translateY(-108px); }
  64% { transform: translateY(-144px); }
  80% { transform: translateY(-180px); }
  100% { transform: translateY(0); }
}
.floatbar__cta {
  display: inline-block;
  padding: 0.62em 1.5em;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  background: linear-gradient(180deg, #ffd75e, var(--c-gold) 55%, var(--c-gold-2));
  color: #33240a;
  box-shadow: 0 4px 14px rgba(242, 183, 5, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  animation: ctaPulse 2.2s ease-in-out infinite;
  white-space: nowrap;
}
.floatbar__cta--alt { background: linear-gradient(180deg, #ef4162, var(--c-red-deep)); color: #fff; animation-delay: 1.1s; box-shadow: 0 4px 14px rgba(216, 30, 63, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.floatbar__cta:hover { transform: translateY(-2px); }
@keyframes ctaPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.floatbar__coins { position: absolute; inset: -30px -8px auto -8px; height: 64px; pointer-events: none; }
.coin {
  position: absolute;
  bottom: -16px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ffe9a8, #f2b705 58%, #b07c08);
  border: 1.5px solid #8a6006;
  box-shadow: 0 0 8px rgba(242, 183, 5, 0.85);
  animation: coinUp 2.6s ease-in infinite;
  opacity: 0;
}
.coin::after {
  content: "Rp";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 7px; font-weight: 900; color: #7a5406;
}
.coin--1 { left: 10%; animation-delay: 0s; }
.coin--2 { left: 28%; animation-delay: 0.65s; transform: scale(0.8); }
.coin--3 { left: 48%; animation-delay: 1.3s; }
.coin--4 { left: 66%; animation-delay: 0.3s; transform: scale(0.85); }
.coin--5 { left: 84%; animation-delay: 1s; transform: scale(0.75); }
@keyframes coinUp {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translateY(-52px); opacity: 0; }
}

/* anak grid/flex tidak boleh memaksa lebar min-content */
.auth__grid > *, .article-wrap > *, .hero__grid > *, .about-grid > *,
.mobile-grid > *, .security-grid > *, .calc > *, .entry, .sidebar,
.auth__card, .entry-content { min-width: 0; }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .article-wrap { grid-template-columns: minmax(0, 1fr) 280px; }
  .steps-grid, .readers-grid, .rg-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-widgets { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 560px; }
  .about-grid, .mobile-grid, .security-grid, .auth__grid, .calc { grid-template-columns: 1fr; }
  .why-list { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .promos-grid { grid-template-columns: 1fr; max-width: 620px; }
  .security-media { order: -1; }
  .sidebar { position: static; }
  .article-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--c-ink); border-bottom: 2px solid var(--c-gold); box-shadow: 0 18px 30px rgba(0, 0, 0, 0.4); margin: 0; }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { flex-direction: column; gap: 0; padding: 8px 12px 14px; }
  .main-navigation a { padding: 0.75em 1em; border-radius: 10px; font-size: 1rem; }
  .btn--header-masuk { display: none; }
  .site-header__inner { flex-wrap: nowrap; }
  .brand-tag { display: none; }
}

@media (max-width: 620px) {
  .steps-grid, .readers-grid, .rg-grid, .adv-grid, .cards-grid { grid-template-columns: 1fr; }
  .footer-widgets { grid-template-columns: 1fr; gap: 22px; }
  .hero__cta .btn { flex: 1 1 auto; text-align: center; }
  .btn { white-space: normal; }
  .hero__badge { position: static; margin-top: 12px; max-width: none; flex-direction: row; align-items: center; gap: 10px; }
  .entry-content h2 { font-size: 1.18rem; }
  .tbl { display: block; overflow-x: auto; white-space: normal; -webkit-overflow-scrolling: touch; }
  .floatbar__inner { gap: 8px; padding: 6px 10px; }
  .floatbar__cta { padding: 0.55em 1.1em; font-size: 0.88rem; }
  .reel { width: 28px; height: 32px; }
  .reel__strip { font-size: 17px; line-height: 32px; }
  .reel__strip span { height: 32px; }
  .topbar { font-size: 0.68rem; }
  .search-page__form { flex-direction: column; }
  .search-page__form .btn { width: 100%; }
  .entry-meta { gap: 4px 12px; }
}

@media (max-width: 400px) {
  .container { width: min(100% - 1.6rem, var(--wrap)); }
  .site-header__inner { gap: 8px; padding: 8px 0; }
  .logo-chip { width: 34px; height: 34px; }
  .brand-text { font-size: 1.04rem; }
  .search-toggle { width: 34px; height: 34px; font-size: 0.85rem; }
  .btn--header-daftar { padding: 0.42em 0.85em; font-size: 0.8rem; }
  .nav-toggle { width: 36px; height: 34px; }
  .nav-toggle span { left: 8px; right: 8px; }
  .nav-toggle span:nth-child(1) { top: 10px; }
  .nav-toggle span:nth-child(2) { top: 16px; }
  .nav-toggle span:nth-child(3) { top: 22px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1),
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 16px; }
  .floatbar__reels { display: none; }
}

/* print */
@media print {
  .floatbar, .site-header, .header-search, .topbar { display: none !important; }
  body { background: #fff; }
}
