/* ==========================================================================
   Mio88 — mio88.games
   Tema statis gaya WordPress | Slot / Live Casino / Poker / Sportsbook
   Palet: merah · putih · hijau · kuning · biru · hitam
   ========================================================================== */

:root {
  --red: #c8102e;
  --red-dark: #9b0c23;
  --red-deep: #7a0a1c;
  --green: #0e9f52;
  --green-dark: #0b7d41;
  --gold: #f7b32b;
  --gold-2: #ffd34d;
  --gold-3: #b97e12;
  --blue: #1e5aa8;
  --blue-dark: #16447e;
  --ink: #101018;
  --ink-2: #191926;
  --ink-3: #232336;
  --paper: #ffffff;
  --paper-2: #f6f6fb;
  --paper-3: #eef1f7;
  --line: #e6e6f0;
  --muted: #5b5b70;
  --muted-2: #8a8aa0;
  --shadow: 0 10px 30px rgba(16, 16, 24, .10);
  --shadow-lg: 0 22px 55px rgba(16, 16, 24, .18);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --header-h: 74px;
  --floatbar-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: calc(var(--floatbar-h) + 14px); /* ruang untuk float bar, tanpa area kosong berlebih */
  overflow-wrap: break-word;
}

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

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 .5em;
  font-weight: 800;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}

p { margin: 0 0 1em; }

ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: .4em; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

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

/* ---------- Topbar ---------- */
.topbar {
  background: var(--ink);
  color: #cfcfe0;
  font-size: .78rem;
  padding: .45rem 0;
}
.topbar .container {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.topbar__left, .topbar__right { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.topbar__right { flex-shrink: 0; }
.topbar a { color: var(--gold-2); font-weight: 600; }
.topbar__sep { opacity: .35; }
.topbar__note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.badge-age {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.6px solid var(--red); color: #ff8fa0;
  border-radius: 6px; font-weight: 800; font-size: .72rem;
  padding: .05rem .45rem; background: rgba(200, 16, 46, .18);
}

/* ---------- Header / Navigasi ---------- */
.site-header {
  position: sticky; top: 0; z-index: 120;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(16, 16, 24, .10); }
.site-header .container {
  display: flex; align-items: center; gap: 1.1rem;
  min-height: var(--header-h);
}
.site-branding { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.site-logo {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 800; font-size: 1.45rem;
  color: var(--ink); text-decoration: none !important; letter-spacing: -.02em;
}
.site-logo:hover { text-decoration: none !important; }
.logo-chip {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--red) 0%, var(--red-deep) 100%);
  color: var(--gold-2); font-size: 1.05rem; font-weight: 800;
  border: 2px solid var(--gold);
  box-shadow: 0 4px 14px rgba(200, 16, 46, .4);
}
.logo-chip span { transform: translateY(-1px); }
.site-tag { font-size: .66rem; color: var(--muted-2); letter-spacing: .14em; text-transform: uppercase; display: block; margin-top: -4px; }

.main-navigation { margin-left: auto; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; flex-wrap: wrap; }
.main-navigation a {
  display: block; padding: .5rem .8rem; border-radius: 9px;
  color: var(--ink); font-weight: 600; font-size: .93rem; text-decoration: none;
}
.main-navigation a:hover { background: var(--paper-3); text-decoration: none; }
.main-navigation .current-menu-item a,
.main-navigation .current-page-ancestor a {
  color: var(--red); background: rgba(200, 16, 46, .08);
}

.header-actions { display: flex; align-items: center; gap: .55rem; flex-shrink: 0; }
.search-toggle {
  width: 42px; height: 42px; border-radius: 11px; border: 1.5px solid var(--line);
  background: var(--paper-2); cursor: pointer; font-size: 1.05rem;
  display: grid; place-items: center; transition: .2s;
}
.search-toggle:hover { border-color: var(--gold); background: #fff8e8; }
.menu-toggle { display: none; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: .68rem 1.35rem; border-radius: 12px; cursor: pointer;
  border: 2px solid transparent; text-decoration: none !important;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  line-height: 1.2;
}
.btn:hover { text-decoration: none !important; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--gold {
  background: linear-gradient(180deg, var(--gold-2) 0%, var(--gold) 55%, #e89c12 100%);
  color: #4a3000; border-color: #caa023;
  box-shadow: 0 6px 20px rgba(247, 179, 43, .45), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.btn--gold:hover { filter: brightness(1.06); box-shadow: 0 9px 26px rgba(247, 179, 43, .55), inset 0 1px 0 rgba(255,255,255,.55); }
.btn--red {
  background: linear-gradient(180deg, #e53151 0%, var(--red) 55%, var(--red-dark) 100%);
  color: #fff; box-shadow: 0 6px 20px rgba(200, 16, 46, .4);
}
.btn--red:hover { filter: brightness(1.07); }
.btn--green {
  background: linear-gradient(180deg, #17c46b 0%, var(--green) 55%, var(--green-dark) 100%);
  color: #fff; box-shadow: 0 6px 20px rgba(14, 159, 82, .38);
}
.btn--ghost {
  background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--outline {
  background: #fff; color: var(--red); border-color: rgba(200, 16, 46, .4);
}
.btn--outline:hover { background: #fff5f6; border-color: var(--red); }
.btn--blue {
  background: linear-gradient(180deg, #2a6fc4 0%, var(--blue) 55%, var(--blue-dark) 100%);
  color: #fff; box-shadow: 0 6px 20px rgba(30, 90, 168, .35);
}
.btn--sm { padding: .45rem .95rem; font-size: .85rem; border-radius: 10px; }
.btn--lg { padding: .85rem 1.9rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Hero (Beranda) ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1000px 480px at 85% -10%, rgba(247, 179, 43, .16), transparent 60%),
    radial-gradient(760px 420px at -10% 110%, rgba(30, 90, 168, .25), transparent 60%),
    linear-gradient(160deg, #1c1226 0%, var(--ink) 45%, #140e1e 100%);
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("../img/hero-slot-hands.jpg") center 32% / cover no-repeat;
  opacity: .38;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(220px 120px at 12% 22%, rgba(255, 211, 77, .14), transparent 70%),
    radial-gradient(180px 110px at 70% 80%, rgba(23, 196, 107, .10), transparent 70%);
}
.hero .container { position: relative; z-index: 2; }
.hero__inner {
  display: grid; grid-template-columns: 1.25fr .9fr; gap: 2.6rem;
  align-items: center; padding: 4.2rem 0 4.6rem;
}
.hero__kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255, 211, 77, .13); border: 1px solid rgba(255, 211, 77, .45);
  color: var(--gold-2); font-weight: 700; font-size: .82rem;
  padding: .4rem .95rem; border-radius: 999px; margin-bottom: 1.15rem;
}
.hero h1 {
  color: #fff; font-size: clamp(1.85rem, 3.6vw, 3rem);
  margin-bottom: .6rem; text-shadow: 0 2px 24px rgba(0, 0, 0, .45);
}
.hero h1 .accent {
  background: linear-gradient(92deg, var(--gold-2), #ffea9e 45%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lede { color: #d9d9ea; font-size: 1.05rem; max-width: 56ch; margin-bottom: 1.5rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.4rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .22);
  color: #eceafd; font-size: .78rem; font-weight: 600;
  padding: .38rem .8rem; border-radius: 999px;
}
.chip--age { border-color: rgba(255, 120, 145, .65); color: #ff9db0; background: rgba(200, 16, 46, .22); font-weight: 800; }
.chip--green { border-color: rgba(23, 196, 107, .55); color: #7fe6b2; background: rgba(14, 159, 82, .16); }
.chip--blue { border-color: rgba(90, 150, 230, .55); color: #9cc3f5; background: rgba(30, 90, 168, .2); }

/* Mesin slot dekoratif */
.hero-slot {
  position: relative; border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #241631 0%, #170f21 70%);
  border: 2px solid rgba(247, 179, 43, .55);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
  padding: 1.15rem 1.15rem 1.35rem;
}
.hero-slot__title {
  font-family: var(--font-head); font-weight: 800; color: var(--gold-2);
  text-align: center; font-size: .95rem; letter-spacing: .22em; text-transform: uppercase;
  margin-bottom: .95rem; text-shadow: 0 2px 12px rgba(247, 179, 43, .4);
}
.hero-slot__reels {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem;
  background: #0b0712; border-radius: 14px; padding: .8rem;
  border: 1px solid rgba(255, 255, 255, .1);
}
.reel {
  height: 86px; overflow: hidden; border-radius: 10px; position: relative;
  background: linear-gradient(180deg, #fff7e0 0%, #ffedb3 50%, #f4d998 100%);
  box-shadow: inset 0 8px 16px rgba(120, 80, 0, .25), inset 0 -8px 16px rgba(120, 80, 0, .25);
  border: 2px solid #3a2a12;
}
.reel::before, .reel::after {
  content: ""; position: absolute; left: 0; right: 0; height: 14px; z-index: 2;
}
.reel::before { top: 0; background: linear-gradient(180deg, rgba(11, 7, 18, .55), transparent); }
.reel::after { bottom: 0; background: linear-gradient(0deg, rgba(11, 7, 18, .55), transparent); }
.reel__strip {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: space-around;
  font-size: 2rem; line-height: 1;
  animation: reelSpin 2.6s linear infinite;
}
.reel--b .reel__strip { animation-duration: 3.4s; }
.reel--c .reel__strip { animation-duration: 4.1s; }
.reel__strip span { height: 86px; display: grid; place-items: center; }
@keyframes reelSpin {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
.hero-slot__pay {
  margin-top: .9rem; text-align: center; color: #bfa9d8; font-size: .78rem;
}
.hero-slot__pay b { color: var(--gold-2); }

/* ---------- Seksi umum ---------- */
.section { padding: 4rem 0; }
.section--alt { background: var(--paper-2); }
.section--dark {
  background:
    radial-gradient(800px 380px at 110% -20%, rgba(247, 179, 43, .12), transparent 60%),
    linear-gradient(150deg, var(--ink-2), var(--ink) 60%, #131022);
  color: #d9d9ea;
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--tight { padding: 2.8rem 0; }

.section-head { max-width: 760px; margin: 0 auto 2.4rem; text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.kicker {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red); margin-bottom: .55rem;
}
.section--dark .kicker { color: var(--gold-2); }
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); margin-bottom: .5rem; }
.section-head .lede { color: var(--muted); margin-bottom: 0; font-size: 1.02rem; }
.section--dark .section-head .lede { color: #b9b9d2; }

/* ---------- Grid & Kartu ---------- */
.grid { display: grid; gap: 1.35rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card__title { font-size: 1.12rem; margin: 0; }
.card__title a { color: inherit; }
.card__text { color: var(--muted); font-size: .93rem; margin: 0; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .2rem; }

.tag {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 700; border-radius: 999px;
  padding: .22rem .7rem; background: var(--paper-3); color: var(--muted);
  border: 1px solid var(--line);
}
.tag--red { background: rgba(200, 16, 46, .09); color: var(--red); border-color: rgba(200, 16, 46, .25); }
.tag--green { background: rgba(14, 159, 82, .1); color: var(--green-dark); border-color: rgba(14, 159, 82, .3); }
.tag--blue { background: rgba(30, 90, 168, .1); color: var(--blue-dark); border-color: rgba(30, 90, 168, .3); }
.tag--gold { background: rgba(247, 179, 43, .14); color: #8a5f0a; border-color: rgba(247, 179, 43, .45); }

.icon-tile {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.45rem; margin-bottom: .35rem; flex-shrink: 0;
  background: linear-gradient(160deg, #fff2cf, #ffdf92);
  border: 1.5px solid rgba(247, 179, 43, .6);
  box-shadow: 0 6px 16px rgba(247, 179, 43, .25);
}
.icon-tile--red { background: linear-gradient(160deg, #ffe1e6, #ffc2cd); border-color: rgba(200, 16, 46, .35); box-shadow: 0 6px 16px rgba(200, 16, 46, .2); }
.icon-tile--green { background: linear-gradient(160deg, #d9f6e7, #b3ecd0); border-color: rgba(14, 159, 82, .4); box-shadow: 0 6px 16px rgba(14, 159, 82, .2); }
.icon-tile--blue { background: linear-gradient(160deg, #dbe9fb, #bcd6f5); border-color: rgba(30, 90, 168, .4); box-shadow: 0 6px 16px rgba(30, 90, 168, .2); }

/* ---------- Langkah 4 panduan ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.3rem 1.4rem; box-shadow: var(--shadow);
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-weight: 800; font-size: 2.4rem;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; line-height: 1; margin-bottom: .5rem;
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }
.step__link { font-size: .85rem; font-weight: 700; color: var(--red); display: inline-block; margin-top: .5rem; }

/* ---------- Promosi ---------- */
.promo-card { position: relative; }
.promo-card__ribbon {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  background: linear-gradient(180deg, #e53151, var(--red-dark));
  color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  padding: .3rem .75rem; border-radius: 8px; text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(155, 12, 35, .5); border: 1px solid rgba(255, 255, 255, .25);
}
.promo-facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: .45rem .8rem;
  background: var(--paper-2); border: 1px dashed var(--line);
  border-radius: 10px; padding: .7rem .9rem; font-size: .8rem; color: var(--muted);
}
.promo-facts b { color: var(--ink); display: block; font-size: .88rem; }

/* ---------- Testimoni ---------- */
.t-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.45rem; box-shadow: var(--shadow); position: relative;
}
.t-card::before {
  content: "\201C"; position: absolute; top: 6px; right: 18px;
  font-family: Georgia, serif; font-size: 4rem; line-height: 1;
  color: rgba(247, 179, 43, .35);
}
.t-card p { font-size: .95rem; color: var(--ink-3); margin-bottom: 1rem; }
.t-card__stars { color: var(--gold); letter-spacing: .12em; font-size: .85rem; margin-bottom: .45rem; }
.t-card__author { display: flex; align-items: center; gap: .7rem; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-family: var(--font-head);
  color: #fff; font-size: .95rem;
}
.avatar--r { background: linear-gradient(150deg, #e53151, var(--red-dark)); }
.avatar--g { background: linear-gradient(150deg, #17c46b, var(--green-dark)); }
.avatar--b { background: linear-gradient(150deg, #2a6fc4, var(--blue-dark)); }
.avatar--y { background: linear-gradient(150deg, #ffce4f, #d98f0d); color: #4a3000; }
.t-card__name { font-weight: 700; font-size: .92rem; }
.t-card__role { color: var(--muted-2); font-size: .78rem; }
.testi-note { text-align: center; color: var(--muted-2); font-size: .8rem; margin-top: 1.2rem; }

/* ---------- Awan tag pencarian populer ---------- */
.tagcloud { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.tagcloud .tag { font-size: .84rem; padding: .45rem 1rem; cursor: pointer; background: #fff; }
.tagcloud .tag:hover { transform: translateY(-2px); border-color: var(--gold); background: #fffaf0; text-decoration: none; }
.tag--hot { border-color: rgba(200, 16, 46, .4); background: #fff5f6; color: var(--red); }

/* ---------- Rencana Bermain Sehat (kalkulator) ---------- */
.planner {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.planner__bar {
  background: linear-gradient(120deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff; padding: .95rem 1.5rem; font-family: var(--font-head);
  font-weight: 700; display: flex; align-items: center; gap: .6rem;
}
.planner__body { padding: 1.6rem 1.5rem 1.8rem; display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.8rem; }
.planner label { font-weight: 600; font-size: .9rem; display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .3rem; }
.planner label output { color: var(--green-dark); font-weight: 800; white-space: nowrap; }
.planner input[type="range"] { width: 100%; accent-color: var(--green); margin: 0 0 1.15rem; }
.planner__out { display: grid; gap: .8rem; align-content: start; }
.out-card {
  border-radius: 12px; padding: .85rem 1.05rem;
  background: var(--paper-2); border: 1px solid var(--line);
}
.out-card b { display: block; font-family: var(--font-head); font-size: 1.25rem; color: var(--ink); }
.out-card span { font-size: .8rem; color: var(--muted); }
.out-card--warn { background: #fff6f2; border-color: #ffd9c2; }
.out-card--warn b { color: #b4501e; }
.out-card--ok { background: #f0fbf5; border-color: #c4ecd5; }
.out-card--ok b { color: var(--green-dark); }
.planner__note { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); background: var(--paper-2); border-left: 4px solid var(--green); padding: .7rem 1rem; border-radius: 8px; margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: .8rem; max-width: 860px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 4px 14px rgba(16, 16, 24, .05); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.05rem 1.25rem;
  font-family: var(--font-head); font-weight: 700; font-size: .99rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; font-size: 1.15rem; font-weight: 800;
  background: rgba(247, 179, 43, .18); color: var(--gold-3);
  transition: transform .2s ease, background .2s;
}
.faq-item[open] summary::after { content: "−"; background: var(--red); color: #fff; transform: rotate(180deg); }
.faq-item[open] summary { color: var(--red); border-bottom: 1px dashed var(--line); }
.faq-item .faq-answer { padding: 1rem 1.25rem 1.25rem; color: var(--muted); font-size: .94rem; }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Kotak CTA ---------- */
.cta-box {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 260px at 90% -30%, rgba(247, 179, 43, .25), transparent 60%),
    linear-gradient(130deg, var(--red-deep) 0%, var(--red) 55%, #d92d4c 100%);
  color: #fff; padding: 2.4rem 2.2rem; text-align: center;
  border: 2px solid rgba(255, 211, 77, .5);
  box-shadow: 0 24px 50px rgba(155, 12, 35, .35);
}
.cta-box h2, .cta-box h3 { color: #fff; }
.cta-box p { color: #ffe3e9; max-width: 60ch; margin-inline: auto; }
.cta-box .hero__cta { justify-content: center; margin-bottom: 0; }
.cta-box--dark {
  background:
    radial-gradient(600px 260px at 90% -30%, rgba(247, 179, 43, .2), transparent 60%),
    linear-gradient(140deg, #1d1630, var(--ink) 60%);
  border-color: rgba(247, 179, 43, .4);
}
.cta-box--dark p { color: #c9c9de; }
.cta-small { font-size: .8rem; color: #ffc9d4; margin-top: .9rem !important; }

/* ---------- Breadcrumb ---------- */
.breadcrumbs {
  background: var(--paper-2); border-bottom: 1px solid var(--line);
  padding: .7rem 0; font-size: .82rem; color: var(--muted);
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.breadcrumbs li { display: flex; align-items: center; gap: .35rem; margin: 0; }
.breadcrumbs li + li::before { content: "›"; color: var(--muted-2); font-weight: 700; }
.breadcrumbs a { color: var(--blue); font-weight: 600; }
.breadcrumbs .current { color: var(--ink); font-weight: 600; }

/* ---------- Halaman dalam ---------- */
.page-hero {
  background:
    radial-gradient(700px 300px at 85% -20%, rgba(247, 179, 43, .14), transparent 60%),
    linear-gradient(150deg, var(--ink-2), var(--ink) 65%);
  color: #d9d9ea; padding: 3.2rem 0 3.4rem;
}
.page-hero h1 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.3rem); max-width: 21ch; }
.page-hero .lede { color: #b9b9d2; max-width: 65ch; margin-bottom: 1rem; }
.page-hero__chips { display: flex; flex-wrap: wrap; gap: .55rem; }

.layout-page { padding: 3rem 0 4rem; }
.page-single {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.6rem;
  align-items: start;
}

/* Artikel */
.entry-header { margin-bottom: 1.6rem; }
.entry-title { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.entry-meta {
  display: flex; flex-wrap: wrap; gap: .55rem 1.1rem; align-items: center;
  color: var(--muted); font-size: .84rem; border-bottom: 1px solid var(--line);
  padding-bottom: 1rem; margin-bottom: 1.8rem;
}
.entry-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.entry-thumb { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 1.8rem; }

.entry-content { font-size: 1.01rem; color: #26263a; }
.entry-content h2 {
  font-size: 1.5rem; margin: 2.1rem 0 .8rem; padding-left: .85rem;
  border-left: 5px solid var(--red);
}
.entry-content h3 { font-size: 1.16rem; margin: 1.6rem 0 .6rem; color: var(--blue-dark); }
.entry-content img { border-radius: 12px; margin: 1.4rem auto; box-shadow: var(--shadow); }
.entry-content figure { margin: 1.6rem 0; }
.entry-content figcaption { text-align: center; color: var(--muted-2); font-size: .8rem; margin-top: .5rem; }
.entry-content ul li::marker { color: var(--red); }
.entry-content blockquote {
  margin: 1.6rem 0; padding: 1rem 1.4rem; border-left: 5px solid var(--gold);
  background: #fffaf0; border-radius: 0 12px 12px 0; color: #6b5518; font-style: italic;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }

.callout {
  display: flex; gap: .9rem; padding: 1.1rem 1.3rem; border-radius: 12px;
  background: #eef4fd; border: 1px solid #c9dcf5; margin: 1.5rem 0; font-size: .93rem;
}
.callout__icon { font-size: 1.3rem; line-height: 1.4; }
.callout p:last-child { margin-bottom: 0; }
.callout--warn { background: #fff6f2; border-color: #ffd9c2; }
.callout--green { background: #f0fbf5; border-color: #c4ecd5; }
.callout--gold { background: #fffaf0; border-color: #f2dfa8; }
.callout b { display: block; margin-bottom: .15rem; }

.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
.entry-content table { width: 100%; border-collapse: collapse; background: #fff; font-size: .9rem; min-width: 520px; }
.entry-content th {
  background: linear-gradient(160deg, var(--ink-2), var(--ink)); color: var(--gold-2);
  text-align: left; padding: .8rem 1rem; font-family: var(--font-head); font-size: .84rem;
  letter-spacing: .04em; white-space: nowrap;
}
.entry-content td { padding: .75rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }
.entry-content tbody tr:nth-child(even) { background: var(--paper-2); }

.entry-footer {
  margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; align-items: center;
}
.entry-tags { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Sidebar */
.sidebar { display: grid; gap: 1.35rem; position: sticky; top: calc(var(--header-h) + 16px); }
.widget {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.35rem; box-shadow: var(--shadow);
}
.widget__title {
  font-size: 1.02rem; padding-bottom: .6rem; margin-bottom: 1rem;
  border-bottom: 2px solid var(--gold); display: flex; align-items: center; gap: .5rem;
}
.widget ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.widget ul a { font-weight: 600; font-size: .92rem; }
.widget ul a:hover { color: var(--red); }
.widget--cta {
  background:
    radial-gradient(400px 180px at 90% -20%, rgba(247, 179, 43, .3), transparent 60%),
    linear-gradient(150deg, var(--ink-2), var(--ink));
  border-color: rgba(247, 179, 43, .4); color: #d9d9ea; text-align: center;
}
.widget--cta .widget__title { color: #fff; border-color: var(--gold); justify-content: center; }
.widget--cta p { font-size: .88rem; color: #b9b9d2; }
.widget--cta .btn { margin-top: .4rem; }

/* ---------- Artikel terkait / daftar ---------- */
.post-list { display: grid; gap: 1.2rem; }
.post-row {
  display: grid; grid-template-columns: 210px 1fr; gap: 1.1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .25s;
}
.post-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-row__media { position: relative; min-height: 140px; background: var(--paper-3); }
.post-row__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-row__body { padding: 1rem 1.15rem 1.05rem; }
.post-row__body h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.post-row__body h3 a { color: inherit; }
.post-row__body p { color: var(--muted); font-size: .88rem; margin: 0 0 .55rem; }

/* ---------- Formulir ---------- */
.auth-wrap { max-width: 1000px; margin: 0 auto; }
.auth-card {
  display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; border: 1px solid var(--line);
}
.auth-side {
  position: relative; padding: 2.4rem 2rem; color: #d9d9ea;
  background: linear-gradient(160deg, #241631, #150e20 70%);
  display: flex; flex-direction: column; gap: 1rem; justify-content: center;
}
.auth-side::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/casino-floor.jpg") center / cover; opacity: .22;
}
.auth-side > * { position: relative; }
.auth-side h2 { color: #fff; font-size: 1.5rem; }
.auth-side ul { color: #cfcfe0; font-size: .9rem; display: grid; gap: .5rem; }
.auth-side ul li::marker { content: "✔ "; color: var(--gold); }
.auth-form { padding: 2.4rem 2.2rem 2.6rem; }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
.field input {
  width: 100%; padding: .75rem .95rem; border-radius: 11px;
  border: 1.6px solid var(--line); background: var(--paper-2); font-size: .95rem;
  font-family: inherit; color: var(--ink); transition: border .2s, box-shadow .2s;
}
.field input:focus {
  outline: none; border-color: var(--gold); background: #fff;
  box-shadow: 0 0 0 4px rgba(247, 179, 43, .18);
}
.field .hint { font-size: .76rem; color: var(--muted-2); margin-top: .3rem; }
.field-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .84rem; color: var(--muted); margin: 1.1rem 0; }
.field-check input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--green); flex-shrink: 0; }
.form-note {
  margin-top: 1.1rem; font-size: .8rem; color: var(--muted);
  background: var(--paper-2); border: 1px dashed var(--line);
  border-radius: 10px; padding: .75rem .9rem;
}
.auth-alt { text-align: center; font-size: .9rem; margin-top: 1.2rem; }
.form-error { display: none; color: var(--red); font-size: .82rem; font-weight: 600; margin-top: .35rem; }

/* ---------- Bagian keamanan & RG di beranda ---------- */
.split {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.6rem; align-items: center;
}
.split__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.check-list { list-style: none; padding: 0; display: grid; gap: .8rem; margin-bottom: 1.4rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; margin: 0; }
.check-list li::before {
  content: "✔"; flex-shrink: 0; width: 24px; height: 24px; border-radius: 8px;
  display: grid; place-items: center; font-size: .8rem; font-weight: 800;
  background: rgba(14, 159, 82, .14); color: var(--green-dark);
  border: 1.5px solid rgba(14, 159, 82, .4);
}
.section--dark .check-list li::before { background: rgba(23, 196, 107, .18); color: #7fe6b2; border-color: rgba(23, 196, 107, .45); }
.check-list b { display: block; }
.check-list span { color: var(--muted); font-size: .9rem; }
.section--dark .check-list span { color: #b9b9d2; }

/* ---------- Footer ---------- */
.site-footer {
  background:
    radial-gradient(800px 300px at 90% 0%, rgba(200, 16, 46, .18), transparent 55%),
    linear-gradient(170deg, #16121f, var(--ink) 55%);
  color: #b9b9d2; font-size: .9rem;
}
.footer-main { padding: 3.4rem 0 2.4rem; display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.15fr; gap: 2.2rem; }
.footer-col .widget__title, .footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-col a { color: #b9b9d2; }
.footer-col a:hover { color: var(--gold-2); }
.footer-about p { font-size: .86rem; color: #9d9db8; }
.footer-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.footer-badges .chip { font-size: .72rem; }
.pay-badges { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; }
.pay-badges span {
  font-size: .72rem; font-weight: 700; color: #d5d5ea;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 7px;
  padding: .22rem .55rem; background: rgba(255, 255, 255, .06);
}
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.4rem 0 1.6rem;
  font-size: .78rem; color: #8a8aa5;
}
.footer-legal p { margin-bottom: .6rem; }
.footer-legal p:last-child { margin-bottom: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.1rem 0;
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; align-items: center;
  font-size: .8rem; color: #9d9db8;
}
.footer-bottom .mini-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-bottom a { color: #b9b9d2; }

/* ---------- Float bar CTA (gaya mesin slot) ---------- */
.float-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 400;
  background: linear-gradient(180deg, #221532 0%, #120b1c 100%);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -12px 34px rgba(0, 0, 0, .55);
  padding: .5rem .8rem;
}
.float-cta {
  display: flex; align-items: center; justify-content: center; gap: .9rem;
  max-width: 1080px; margin: 0 auto; text-decoration: none !important;
  position: relative; min-height: 52px;
}
.float-reels { display: flex; gap: .3rem; flex-shrink: 0; }
.float-reel {
  width: 30px; height: 34px; border-radius: 7px; overflow: hidden; position: relative;
  background: linear-gradient(180deg, #fff3cf, #f3d382);
  border: 2px solid #4a3413;
  box-shadow: inset 0 4px 8px rgba(90, 60, 0, .35), inset 0 -4px 8px rgba(90, 60, 0, .35), 0 0 12px rgba(247, 179, 43, .35);
}
.float-reel__strip {
  position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column;
  align-items: center; font-size: 15px; line-height: 34px; height: 34px;
  animation: reelSpin 1.9s linear infinite;
}
.float-reel--b .float-reel__strip { animation-duration: 2.5s; }
.float-reel--c .float-reel__strip { animation-duration: 3.1s; }
.float-reel__strip i { font-style: normal; height: 34px; }
.float-cta__text {
  font-family: var(--font-head); font-weight: 800; letter-spacing: .05em;
  font-size: clamp(1.02rem, 3.4vw, 1.42rem); text-transform: uppercase;
  background: linear-gradient(100deg, #ffdf8e 8%, #fff6cf 22%, #f5b62e 38%, #ffdf8e 55%, #fff6cf 74%, #f5b62e 92%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: goldShine 3.2s linear infinite;
  filter: drop-shadow(0 2px 10px rgba(247, 179, 43, .55));
  white-space: nowrap;
}
@keyframes goldShine {
  from { background-position: 200% 0; }
  to { background-position: -20% 0; }
}
.float-cta__sub {
  font-size: .62rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: #a98fd8; display: block; text-align: center; margin-top: -2px;
}
.float-glow {
  position: absolute; inset: -8px -14px; pointer-events: none; z-index: -1;
  background: radial-gradient(60% 90% at 50% 50%, rgba(247, 179, 43, .30), transparent 70%);
  animation: pulseGlow 2.1s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: .55; transform: scale(.98); }
  50% { opacity: 1; transform: scale(1.02); }
}
.float-coin {
  position: absolute; bottom: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff3bd 0%, #ffd34d 38%, #d98f0d 78%, #a56a05 100%);
  border: 1.5px solid #8a5a08;
  box-shadow: 0 0 10px rgba(255, 211, 77, .8);
  opacity: 0; pointer-events: none;
  animation: coinUp 2.8s ease-in infinite;
}
.float-coin--1 { left: 16%; animation-delay: 0s; }
.float-coin--2 { left: 30%; animation-delay: .8s; width: 12px; height: 12px; }
.float-coin--3 { left: 68%; animation-delay: 1.5s; width: 13px; height: 13px; }
.float-coin--4 { left: 82%; animation-delay: .4s; }
.float-coin--5 { left: 50%; animation-delay: 2.1s; width: 11px; height: 11px; }
@keyframes coinUp {
  0% { transform: translateY(0) scale(.6) rotate(0deg); opacity: 0; }
  12% { opacity: 1; }
  70% { opacity: .9; }
  100% { transform: translateY(-86px) scale(1.05) rotate(340deg); opacity: 0; }
}

/* ---------- Pencarian ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 500; display: none;
  background: rgba(10, 8, 16, .78); backdrop-filter: blur(6px);
  padding: 8vh 1.2rem 2rem; overflow-y: auto;
}
.search-overlay.is-open { display: block; }
.search-panel {
  max-width: 680px; margin: 0 auto; background: #fff;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; border: 2px solid var(--gold);
}
.search-panel__head {
  background: linear-gradient(150deg, var(--ink-2), var(--ink));
  color: var(--gold-2); padding: .9rem 1.3rem; font-family: var(--font-head);
  font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.search-close {
  background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255,255,255,.25);
  width: 34px; height: 34px; border-radius: 9px; font-size: 1rem; cursor: pointer; flex-shrink: 0;
}
.search-close:hover { background: var(--red); }
.search-panel__body { padding: 1.2rem 1.3rem 1.45rem; }
.search-input {
  width: 100%; padding: .85rem 1.1rem; border-radius: 12px; font-size: 1.02rem;
  border: 2px solid var(--line); background: var(--paper-2); font-family: inherit;
}
.search-input:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(247, 179, 43, .18); }
.search-hot { margin-top: 1rem; }
.search-hot__label { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: .55rem; }
.search-results { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: .6rem; }
.search-results li a {
  display: block; padding: .8rem 1rem; border-radius: 11px;
  background: var(--paper-2); border: 1px solid var(--line); color: var(--ink);
}
.search-results li a:hover { border-color: var(--gold); background: #fffaf0; text-decoration: none; }
.search-results .sr-title { font-weight: 700; font-size: .95rem; display: block; }
.search-results .sr-desc { color: var(--muted); font-size: .8rem; display: block; }
.search-empty { color: var(--muted); font-size: .9rem; padding: .6rem .2rem; }

/* ---------- Utilitas ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.6rem; } .mt-4 { margin-top: 2.4rem; }
.mb-0 { margin-bottom: 0; }
.note-muted { color: var(--muted); font-size: .86rem; }
.section--dark .note-muted { color: #9d9db8; }

/* ==========================================================================
   Responsif
   ========================================================================== */
@media (max-width: 1080px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .page-single { grid-template-columns: minmax(0, 1fr) 280px; gap: 2rem; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .main-navigation { display: none; }
  .menu-toggle {
    display: grid; place-items: center; width: 42px; height: 42px;
    border-radius: 11px; border: 1.5px solid var(--line); background: var(--paper-2);
    cursor: pointer; font-size: 1.05rem;
  }
  .main-navigation.is-open {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(16, 16, 24, .16); padding: .6rem 1.2rem 1rem;
  }
  .main-navigation.is-open ul { flex-direction: column; gap: 0; }
  .main-navigation.is-open a { padding: .72rem .4rem; border-bottom: 1px dashed var(--line); border-radius: 0; }
  .hero__inner { grid-template-columns: 1fr; padding: 3.2rem 0 3.6rem; }
  .hero-slot { max-width: 420px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 1.8rem; }
  .split__media { max-width: 560px; }
  .page-single { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .auth-card { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .planner__body { grid-template-columns: 1fr; }
  .header-actions .btn--header-login { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .topbar__left .topbar__note--extra, .topbar__sep { display: none; }
  .topbar .container { justify-content: center; }
  .section { padding: 2.9rem 0; }
  .steps, .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 auto; }
  .footer-main { grid-template-columns: 1fr; gap: 1.6rem; padding: 2.6rem 0 1.8rem; }
  .post-row { grid-template-columns: 1fr; }
  .post-row__media { min-height: 180px; position: relative; }
  .entry-content h2 { font-size: 1.28rem; }
  .cta-box { padding: 1.9rem 1.2rem; }
  .float-reels { display: none; }
  .float-cta__sub { display: none; }
  .float-cta { min-height: 46px; }
  :root { --floatbar-h: 58px; }
  .site-tag { display: none; }
  .search-overlay { padding: 5vh .8rem 1.4rem; }
}

@media (max-width: 460px) {
  .site-header .container { gap: .55rem; }
  .site-logo { font-size: 1.12rem; }
  .logo-chip { width: 36px; height: 36px; font-size: .9rem; border-radius: 10px; }
  .search-toggle, .menu-toggle { width: 38px; height: 38px; }
  .header-actions { gap: .38rem; }
  .header-actions .btn--sm { padding: .42rem .58rem; font-size: .74rem; }
}

@media (max-width: 420px) {
  .container { width: min(1180px, 100% - 1.6rem); }
  .hero h1 { font-size: 1.62rem; }
  .float-cta__text { font-size: 1.02rem; }
  .float-coin--1, .float-coin--4 { display: none; }
}

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