/* ============================================================
   Studiobet78 — situs informasi judi online (Bahasa Indonesia)
   Palet: merah / putih / emas / hitam / hijau aksen / biru aksen
   ============================================================ */
:root {
  --red: #c8102e;
  --red-dark: #9c0c23;
  --red-deep: #7a0a1c;
  --gold: #f7c948;
  --gold-soft: #ffe9a8;
  --gold-deep: #d9a520;
  --ink: #1b1b26;
  --ink-soft: #3d4152;
  --muted: #6a6e7c;
  --dark: #12121c;
  --dark-2: #1b1b2a;
  --dark-3: #23233a;
  --bg: #ffffff;
  --bg-alt: #f7f7fb;
  --line: #e7e7ef;
  --green: #0e7c5a;
  --green-soft: #e7f5ef;
  --blue: #2456d6;
  --blue-soft: #e9effc;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(18, 18, 28, 0.10);
  --shadow-sm: 0 6px 18px rgba(18, 18, 28, 0.08);
  --wrap: 1180px;
  --header-h: 68px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* agar scroll-into-view/anchor tidak berhenti di belakang widget melayang */
  scroll-padding-bottom: 110px;
}

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font);
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 0.6em;
  font-weight: 800;
  overflow-wrap: break-word;
}

p { margin: 0 0 1em; overflow-wrap: break-word; }

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

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

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

/* ============ Tombol ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.btn-red { background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%); color: #fff; }
.btn-gold { background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%); color: #3a2a00; }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn-dark { background: var(--dark-2); color: #fff; }
.btn-sm { padding: 0.5rem 1.05rem; font-size: 0.86rem; }
.btn-block { width: 100%; }

/* ============ Topbar + Header ============ */
.topbar {
  background: var(--red-deep);
  color: #ffe3e8;
  font-size: 0.78rem;
  padding: 0.35rem 0;
}
.topbar-in {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar b { color: var(--gold); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(18, 18, 28, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--red);
}
.header-in {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none !important;
}
.brand-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}
.brand-name {
  font-size: 1.28rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.brand-name em {
  font-style: normal;
  color: var(--gold);
}
.brand-name .tag {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  color: #9aa0b4;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
  flex-wrap: wrap;
}
.site-nav a {
  color: #d9dce8;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 0.72rem;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }
.site-nav a.active { background: var(--red); color: #fff; }
.site-nav a.nav-search svg { vertical-align: -3px; }

.header-cta { display: flex; gap: 0.55rem; align-items: center; }

.nav-toggle, .nav-burger { display: none; }

/* ============ Breadcrumb ============ */
.breadcrumbs {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  padding: 0.65rem 0;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}
.breadcrumbs li { margin: 0; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 0.35rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); font-weight: 600; }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs [aria-current] { color: var(--ink-soft); font-weight: 700; }

/* ============ Hero ============ */
.hero {
  background:
    linear-gradient(rgba(15, 12, 24, 0.82), rgba(24, 10, 18, 0.88)),
    url("/assets/img/hero-home.jpg") center 38% / cover no-repeat;
  color: #fff;
  padding: 4.2rem 0 4.6rem;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(247, 201, 72, 0.14);
  border: 1px solid rgba(247, 201, 72, 0.5);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  max-width: 21ch;
  margin-bottom: 0.9rem;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-lead {
  color: #e6e2ea;
  max-width: 62ch;
  font-size: 1.03rem;
  margin-bottom: 1.5rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.6rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f2f0f5;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
}
.chip b { color: var(--gold); }

/* ============ Search band ============ */
.search-band {
  background: linear-gradient(135deg, var(--dark-2), var(--dark-3));
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
}
.search-band-in { display: grid; gap: 0.8rem; }
.search-form {
  display: flex;
  gap: 0.6rem;
  max-width: 640px;
}
.search-form input {
  flex: 1;
  min-width: 0;
  border: 2px solid var(--dark-3);
  background: #fff;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--ink);
}
.search-form input:focus { outline: 3px solid rgba(247, 201, 72, 0.45); border-color: var(--gold); }
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.tag-cloud .tag-label { color: #9aa0b4; font-size: 0.82rem; font-weight: 700; margin-right: 0.2rem; }
.tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e7e9f2;
  font-size: 0.8rem;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.tag:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ============ Section umum ============ */
.section { padding: 3.4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark-2); color: #e8e9f2; }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: 2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.section-dark .eyebrow { color: var(--gold); }
.section-head h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); margin-bottom: 0.4em; }
.section-head .lede { color: var(--muted); margin: 0; }
.section-dark .section-head .lede { color: #b9bdcf; }

/* ============ Kartu info ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 1.25rem;
}
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-sm);
}
.info-card .ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
  background: linear-gradient(160deg, #fdeef1, #fadfe5);
}
.info-card h3 { font-size: 1.03rem; margin-bottom: 0.4em; }
.info-card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

/* ============ Kartu kategori (gambar) ============ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.4rem;
}
.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--dark-2);
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  min-height: 300px;
  isolation: isolate;
}
.cat-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.cat-card:hover img { transform: scale(1.045); }
.cat-card .cat-body {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(12, 10, 20, 0.55) 25%, rgba(12, 10, 20, 0.92));
  color: #fff;
  padding: 3.2rem 1.2rem 1.2rem;
}
.cat-card h3 { color: #fff; font-size: 1.12rem; margin: 0 0 0.25em; }
.cat-card p { color: #d6d9e4; font-size: 0.87rem; margin: 0 0 0.55em; }
.cat-card .cat-more {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ============ Promo ============ */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.4rem;
}
.promo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.promo-badge {
  align-self: flex-start;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: #3a2a00;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
}
.promo-card h3 { font-size: 1.08rem; margin: 0; }
.promo-card .promo-desc { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }
.promo-terms {
  list-style: none;
  margin: 0.2rem 0 0.4rem;
  padding: 0.8rem 0.95rem;
  background: var(--bg-alt);
  border-radius: 10px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}
.promo-terms li { margin-bottom: 0.3rem; display: flex; gap: 0.45rem; }
.promo-terms li::before { content: "✓"; color: var(--green); font-weight: 800; flex: 0 0 auto; }
.promo-card .btn { margin-top: auto; align-self: flex-start; }

.note-box {
  background: var(--blue-soft);
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.note-box.gold { background: #fdf6e3; border-left-color: var(--gold-deep); }
.note-box.green { background: var(--green-soft); border-left-color: var(--green); }

/* ============ Testimoni ============ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.25rem;
}
.testi-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.testi-stars { color: var(--gold-deep); letter-spacing: 2px; font-size: 0.95rem; }
.testi-card blockquote {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
  font-style: italic;
}
.testi-who {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: auto;
}
.testi-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(160deg, var(--red), var(--red-deep));
  font-size: 0.95rem;
}
.testi-who b { display: block; font-size: 0.9rem; color: var(--ink); }
.testi-who span { font-size: 0.78rem; color: var(--muted); }

/* ============ Glosarium ============ */
.gloss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 1rem;
}
.gloss-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.15rem;
}
.gloss-item dt {
  font-weight: 800;
  color: var(--red);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.gloss-item dd { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }

/* ============ Artikel / prose ============ */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.5rem;
  align-items: start;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 1.2rem;
}
.article-meta span { display: inline-flex; gap: 0.35rem; align-items: center; }
.article-figure {
  margin: 0 0 1.6rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.article-figure img { width: 100%; }
.article-figure figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.6rem 1rem;
  background: var(--bg-alt);
}
.prose h2 {
  font-size: 1.35rem;
  margin-top: 1.9em;
  padding-bottom: 0.25em;
  border-bottom: 2px solid var(--line);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.08rem; margin-top: 1.5em; color: var(--red-dark); }
.prose p, .prose li { color: var(--ink-soft); font-size: 0.98rem; }
.prose strong { color: var(--ink); }

.sidebar-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.4rem;
}
.sidebar-card h2 { font-size: 1rem; margin-bottom: 0.8em; }
.sidebar-card ul { list-style: none; margin: 0; padding: 0; }
.sidebar-card li { border-bottom: 1px dashed var(--line); padding: 0.5rem 0; }
.sidebar-card li:last-child { border-bottom: 0; }
.sidebar-card a { color: var(--ink-soft); font-weight: 600; font-size: 0.9rem; }
.sidebar-card a:hover { color: var(--red); }

/* ============ Tabel syarat promo ============ */
.table-scroll { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
table.terms {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.92rem;
  min-width: 520px;
}
table.terms th, table.terms td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.terms th {
  background: var(--bg-alt);
  width: 220px;
  color: var(--ink);
  font-weight: 800;
}
table.terms tr:last-child td, table.terms tr:last-child th { border-bottom: 0; }

/* ============ FAQ ============ */
.faq-list { display: grid; gap: 0.8rem; max-width: 860px; }
details.faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
details.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 1rem 2.4rem 1rem 1.2rem;
  position: relative;
  color: var(--ink);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
details.faq[open] summary::after { content: "–"; }
details.faq .faq-a {
  padding: 0 1.2rem 1.1rem;
  color: var(--ink-soft);
  font-size: 0.93rem;
  border-top: 1px dashed var(--line);
  padding-top: 0.9rem;
}

/* ============ Form ============ */
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 2.4rem;
  align-items: start;
}
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.7rem;
}
.form-card h1 { font-size: 1.45rem; }
.form-card .form-sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.4rem; }
.field { margin-bottom: 1.05rem; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}
.field input {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 0.72rem 0.95rem;
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease;
}
.field input:focus { outline: none; border-color: var(--red); }
.field .hint { font-size: 0.78rem; color: var(--muted); margin-top: 0.3rem; }
.check-row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.check-row input { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--red); }
.auth-side img { border-radius: var(--radius); box-shadow: var(--shadow); }
.auth-side .auth-side-note {
  margin-top: 1rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

/* ============ Halaman pencarian ============ */
.search-page-input {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}
.search-page-input input {
  flex: 1;
  min-width: 0;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  font-size: 1rem;
  font-family: var(--font);
}
.search-page-input input:focus { outline: none; border-color: var(--red); }
.search-results { display: grid; gap: 0.9rem; }
.result-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.05rem 1.2rem;
  box-shadow: var(--shadow-sm);
}
.result-item h3 { margin: 0 0 0.25em; font-size: 1rem; }
.result-item h3 a { color: var(--red-dark); text-decoration: none; }
.result-item h3 a:hover { text-decoration: underline; }
.result-item p { margin: 0; font-size: 0.88rem; color: var(--muted); }
.result-item .result-url { font-size: 0.78rem; color: var(--green); display: block; margin-bottom: 0.2rem; }
.search-empty { color: var(--muted); }

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 1rem;
}
.directory-col {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.2rem;
}
.directory-col h2 { font-size: 0.95rem; color: var(--red-dark); border-bottom: 2px solid var(--line); padding-bottom: 0.4em; }
.directory-col ul { list-style: none; margin: 0; padding: 0; }
.directory-col a { font-size: 0.9rem; color: var(--ink-soft); font-weight: 600; }
.directory-col a:hover { color: var(--red); }

/* ============ Footer ============ */
.site-footer {
  background: var(--dark);
  color: #b9bdcf;
  margin-top: 3.5rem;
  padding-top: 3rem;
  padding-bottom: 110px; /* ruang untuk widget mengambang, di dalam footer */
  border-top: 4px solid var(--red);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand .brand-name { font-size: 1.2rem; }
.footer-brand p { font-size: 0.86rem; color: #9aa0b4; margin: 0.9rem 0 1rem; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.f-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #e7e9f2;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
}
.f-badge b { color: var(--gold); }
.site-footer h2 {
  color: #fff;
  font-size: 0.92rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul a {
  color: #b9bdcf;
  font-size: 0.88rem;
  display: inline-block;
  padding: 0.28rem 0;
  text-decoration: none;
}
.site-footer ul a:hover { color: var(--gold); }
.footer-disclaimer {
  font-size: 0.8rem;
  color: #8d92a6;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.7;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: space-between;
  padding: 1.2rem 0 0;
  font-size: 0.8rem;
  color: #8d92a6;
}

/* ============ Widget mengambang (slot + koin) ============ */
.float-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  display: flex;
  justify-content: center;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(18, 18, 28, 0), rgba(18, 18, 28, 0.72) 45%, rgba(18, 18, 28, 0.96));
  pointer-events: none;
}
.float-card {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: min(100%, 640px);
  background:
    radial-gradient(120% 160% at 12% 0%, rgba(247, 201, 72, 0.28), transparent 55%),
    linear-gradient(135deg, #23233a 0%, #16162a 55%, #2a1220 100%);
  border: 1.5px solid rgba(247, 201, 72, 0.65);
  border-radius: 18px;
  padding: 0.55rem 0.8rem;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.55);
}
.float-reels {
  display: flex;
  gap: 0.28rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(247, 201, 72, 0.35);
  border-radius: 12px;
  padding: 0.32rem 0.5rem;
  flex: 0 0 auto;
}
.reel {
  height: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  line-height: 1.25rem;
}
.reel b {
  font-weight: 400;
  height: 1.25rem;
  display: block;
  animation: reelSpin 2.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.reel b:nth-child(2) { animation-delay: 0.15s; }
.reel b:nth-child(3) { animation-delay: 0.3s; }
.reel-2 b { animation-duration: 3.3s; }
.reel-3 b { animation-duration: 2.4s; }
@keyframes reelSpin {
  0%, 18% { transform: translateY(0); }
  38%, 62% { transform: translateY(-1.25rem); }
  82%, 100% { transform: translateY(-2.5rem); }
}
@media (prefers-reduced-motion: reduce) {
  .reel b { animation: none; }
}
.float-text { min-width: 0; }
.float-text strong {
  display: block;
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.float-text small {
  display: block;
  color: var(--gold);
  font-size: 0.7rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.float-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
  flex: 0 0 auto;
}

/* ============ Utilitas kecil ============ */
.text-center { text-align: center; }
.mt-2 { margin-top: 1.6rem; }
.mt-1 { margin-top: 0.8rem; }
.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--red);
  color: var(--red);
  font-weight: 800;
  font-size: 0.72rem;
  background: #fff;
  flex: 0 0 auto;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.4rem 0; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar-card { display: none; }
  .sidebar-card.sidebar-keep { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-layout { grid-template-columns: minmax(0, 1fr); }
  .auth-side img { max-height: 300px; object-fit: cover; }
}

@media (max-width: 860px) {
  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    cursor: pointer;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
  }
  .nav-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    margin-inline: auto;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-2);
    border-bottom: 3px solid var(--red);
    padding: 0.8rem 1.4rem 1.1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: 0.7rem 0.9rem; font-size: 1rem; }
  .header-cta { display: none; }
  .header-in { position: relative; }

  .hero { padding: 3rem 0 3.4rem; }
  .section { padding: 2.6rem 0; }
  .float-card { gap: 0.6rem; padding: 0.5rem 0.65rem; }
  .float-reels { display: none; }
  .float-text strong { font-size: 0.85rem; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .topbar-in { justify-content: center; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .search-form { flex-direction: column; }
  .search-form .btn { width: 100%; }
  .hero h1 { font-size: 1.55rem; }
  .hero-lead { font-size: 0.95rem; }
  .float-actions { flex-direction: row; }
  .float-actions .btn { padding: 0.55rem 0.95rem; font-size: 0.82rem; }
  .site-footer { padding-bottom: 96px; }
  .form-card { padding: 1.5rem 1.1rem; }
  .search-page-input { flex-direction: column; }
}
