/* ============================================================
   Dinasti168 — Portal Informasi Game & Kasino Online (id-ID)
   Gaya: casino-info gelap dengan aksen emas, merah, hijau
   ============================================================ */

:root {
  --bg: #0b0e1a;
  --bg-2: #101426;
  --card: #151b31;
  --card-2: #1a2138;
  --line: #262f4e;
  --line-2: #303b60;
  --gold: #f2b830;
  --gold-2: #ffd469;
  --gold-dark: #c58f14;
  --red: #e0313f;
  --red-2: #ff5a5a;
  --green: #2fbf71;
  --blue: #3d7bff;
  --text: #eaedf6;
  --muted: #a0a9c0;
  --muted-2: #7c86a3;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --widget-h: 72px;
}

* {
  box-sizing: border-box;
}

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

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

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

a {
  color: var(--gold-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 2.4vw, 1.3rem); }

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

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #161616;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  font-weight: 700;
  z-index: 300;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #221a04;
  box-shadow: 0 6px 18px rgba(242, 184, 48, 0.28);
}

.btn-gold:hover { box-shadow: 0 8px 22px rgba(242, 184, 48, 0.42); }

.btn-outline {
  background: transparent;
  color: var(--gold-2);
  border-color: var(--gold);
}

.btn-outline:hover { background: rgba(242, 184, 48, 0.1); }

.btn-red {
  background: linear-gradient(180deg, #ff5252, var(--red));
  color: var(--white);
}

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 26, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--gold-2);
  letter-spacing: 0.3px;
}

.brand:hover { text-decoration: none; }

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-dark));
  color: #1d1503;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
}

.main-nav a:hover { color: var(--gold-2); background: rgba(242, 184, 48, 0.08); text-decoration: none; }

.main-nav a[aria-current="page"] { color: var(--gold-2); background: rgba(242, 184, 48, 0.12); }

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

.icon-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--muted);
  font-size: 1.05rem;
}

.icon-search:hover { color: var(--gold-2); border-color: var(--gold); text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 12px 20px 16px;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  padding: 10px 12px;
  color: var(--text);
  font-weight: 600;
  border-radius: 8px;
}

.mobile-nav a:hover { background: rgba(242, 184, 48, 0.08); color: var(--gold-2); text-decoration: none; }

.mobile-nav .mobile-cta { display: flex; gap: 10px; margin-top: 10px; }
.mobile-nav .mobile-cta .btn { flex: 1; }

@media (max-width: 1023px) {
  .main-nav, .header-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (min-width: 1024px) {
  .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: #131730 center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 14, 26, 0.72) 0%, rgba(11, 14, 26, 0.86) 55%, var(--bg) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 72px 0 64px;
  max-width: 780px;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(242, 184, 48, 0.14);
  border: 1px solid rgba(242, 184, 48, 0.4);
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 { margin-bottom: 14px; }

.hero h1 .gold { color: var(--gold-2); }

.hero-sub { font-size: 1.08rem; color: var(--muted); max-width: 640px; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 22px;
}

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(21, 27, 49, 0.8);
  border: 1px solid var(--line-2);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
}

.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.chip.gold .dot { background: var(--gold); }
.chip.red .dot { background: var(--red-2); }

/* ---------- Bagian umum ---------- */
.section { padding: 56px 0; }

.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 760px; margin-bottom: 34px; }

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.lede { color: var(--muted); font-size: 1.02rem; }

/* ---------- Kartu & grid ---------- */
.grid { display: grid; gap: 22px; }

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover { border-color: var(--line-2); transform: translateY(-2px); }

.card-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }

.card-img img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.card-body h3 { margin: 0; }

.card-body p { color: var(--muted); font-size: 0.93rem; margin: 0; }

.card-link { margin-top: auto; font-weight: 700; font-size: 0.9rem; }

.tag {
  display: inline-block;
  background: rgba(242, 184, 48, 0.12);
  border: 1px solid rgba(242, 184, 48, 0.35);
  color: var(--gold-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
}

.tag.green { background: rgba(47, 191, 113, 0.12); border-color: rgba(47, 191, 113, 0.4); color: #7fe0ac; }
.tag.red { background: rgba(224, 49, 63, 0.14); border-color: rgba(224, 49, 63, 0.45); color: #ff9a9a; }
.tag.blue { background: rgba(61, 123, 255, 0.13); border-color: rgba(61, 123, 255, 0.4); color: #9dbaff; }

/* ---------- Kartu fitur ---------- */
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.feature-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(242, 184, 48, 0.12);
  border: 1px solid rgba(242, 184, 48, 0.3);
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.feature-card h3 { font-size: 1.08rem; }

.feature-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- Testimoni ---------- */
.review {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-stars { color: var(--gold); letter-spacing: 3px; font-size: 0.95rem; }

.review p { margin: 0; font-size: 0.94rem; color: var(--text); }

.review-footer { display: flex; align-items: center; gap: 12px; margin-top: auto; }

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
  color: #1d1503;
  flex-shrink: 0;
}

.av-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold-dark)); }
.av-red { background: linear-gradient(135deg, #ff8a8a, var(--red)); color: var(--white); }
.av-green { background: linear-gradient(135deg, #7fe0ac, var(--green)); }
.av-blue { background: linear-gradient(135deg, #9dbaff, var(--blue)); color: #0a1230; }

.review-name { font-weight: 700; font-size: 0.92rem; }

.review-role { color: var(--muted-2); font-size: 0.8rem; }

.review-note {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--muted-2);
  background: rgba(21, 27, 49, 0.6);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

/* ---------- Kamus istilah ---------- */
.glossary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }

.term {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.term dt { color: var(--gold-2); font-weight: 800; margin-bottom: 4px; }

.term dd { margin: 0; color: var(--muted); font-size: 0.88rem; }

/* ---------- Artikel / prose ---------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: start;
}

@media (max-width: 1023px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
}

.prose { max-width: 100%; }

.prose h2 { margin-top: 1.6em; }

.prose h3 { margin-top: 1.3em; }

.prose p, .prose li { color: var(--muted); font-size: 1rem; }

.prose strong { color: var(--text); }

.prose a { text-decoration: underline; text-underline-offset: 3px; }

.prose figure { margin: 1.6em 0; }

.prose figure img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }

.prose figcaption { font-size: 0.82rem; color: var(--muted-2); margin-top: 8px; text-align: center; }

.prose blockquote {
  margin: 1.4em 0;
  padding: 14px 20px;
  border-left: 4px solid var(--gold);
  background: rgba(242, 184, 48, 0.07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
}

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.4em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }

.prose table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.9rem; }

.prose th, .prose td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }

.prose th { background: var(--card-2); color: var(--white); font-weight: 700; white-space: nowrap; }

.prose td { color: var(--muted); }

.prose tr:last-child td { border-bottom: none; }

.article-head { margin-bottom: 26px; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.article-meta .sep { opacity: 0.5; }

/* ---------- Sidebar ---------- */
.sidebar-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 22px;
}

.sidebar-box h2, .sidebar-box h3 { font-size: 1.05rem; margin-bottom: 14px; }

.sidebar-box ul { list-style: none; padding: 0; margin: 0; }

.sidebar-box li { border-bottom: 1px solid var(--line); }

.sidebar-box li:last-child { border-bottom: none; }

.sidebar-box li a {
  display: block;
  padding: 10px 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.sidebar-box li a:hover { color: var(--gold-2); }

/* ---------- Notifikasi ---------- */
.notice {
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 1.3em 0;
  font-size: 0.93rem;
  border: 1px solid;
}

.notice strong { display: block; margin-bottom: 4px; }

.notice-info { background: rgba(61, 123, 255, 0.09); border-color: rgba(61, 123, 255, 0.4); color: #c9d8ff; }
.notice-gold { background: rgba(242, 184, 48, 0.08); border-color: rgba(242, 184, 48, 0.45); color: #ffe3a3; }
.notice-warn { background: rgba(224, 49, 63, 0.1); border-color: rgba(224, 49, 63, 0.5); color: #ffc2c7; }
.notice-green { background: rgba(47, 191, 113, 0.09); border-color: rgba(47, 191, 113, 0.45); color: #b4ecd1; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 16px 0 4px;
  font-size: 0.83rem;
  color: var(--muted-2);
}

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }

.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }

.breadcrumb li + li::before { content: "›"; color: var(--muted-2); }

.breadcrumb a { color: var(--muted); }

.breadcrumb a:hover { color: var(--gold-2); }

.breadcrumb [aria-current="page"] { color: var(--gold-2); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  padding: 16px 52px 16px 20px;
  font-weight: 700;
  color: var(--white);
  position: relative;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(242, 184, 48, 0.12);
  border: 1px solid rgba(242, 184, 48, 0.4);
  color: var(--gold-2);
  font-weight: 800;
}

.faq[open] summary::after { content: "−"; }

.faq .faq-a { padding: 0 20px 18px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Langkah / steps ---------- */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 14px; }

.step {
  display: flex;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-dark));
  color: #1d1503;
  font-weight: 800;
  flex-shrink: 0;
}

.step h3 { font-size: 1rem; margin-bottom: 4px; }

.step p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- Formulir ---------- */
.auth-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: minmax(0, 1fr); }
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
}

.field { margin-bottom: 18px; }

.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 7px; }

.field input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font);
}

.field input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}

.field .hint { font-size: 0.78rem; color: var(--muted-2); margin-top: 5px; }

.form-msg { font-size: 0.85rem; margin-top: 12px; min-height: 1.2em; }

.form-msg.err { color: var(--red-2); }
.form-msg.ok { color: var(--green); }

.auth-side h2 { margin-top: 0; }

.auth-side p { color: var(--muted); }

.check-list { list-style: none; padding: 0; margin: 18px 0; }

.check-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; color: var(--muted); font-size: 0.93rem; }

.check-list li::before { content: "✓"; color: var(--green); font-weight: 800; flex-shrink: 0; }

/* ---------- Pencarian ---------- */

.search-form {
  display: flex;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  align-items: center;
  max-width: 640px;
  margin: 0 auto 26px;
}

.search-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font);
  padding: 8px 0;
}

.search-form input:focus { outline: none; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 26px 0 8px; }

.tag-cloud a {
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 600;
}

.tag-cloud a:hover { color: var(--gold-2); border-color: var(--gold); text-decoration: none; }

.tag-cloud .hot { color: var(--gold-2); border-color: rgba(242, 184, 48, 0.5); background: rgba(242, 184, 48, 0.08); }

.search-results { max-width: 760px; margin: 0 auto; text-align: left; }

.result-item {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 12px;
}

.result-item:hover { border-color: var(--gold); text-decoration: none; }

.result-item .r-url { font-size: 0.75rem; color: var(--green); margin-bottom: 3px; }

.result-item .r-title { color: var(--gold-2); font-weight: 700; margin-bottom: 4px; }

.result-item .r-desc { color: var(--muted); font-size: 0.88rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #080b14;
  border-top: 1px solid var(--line);
  padding: 52px 0 0;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 40px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand p { color: var(--muted); font-size: 0.9rem; }

.footer-col h3 { font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-2); margin-bottom: 16px; }

.footer-col ul { list-style: none; margin: 0; padding: 0; }

.footer-col li { margin-bottom: 9px; }

.footer-col a { color: var(--muted); font-size: 0.9rem; }

.footer-col a:hover { color: var(--gold-2); }

.footer-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid;
}

.badge-18 { border-color: var(--red-2); color: var(--red-2); }
.badge-info { border-color: var(--green); color: #7fe0ac; }
.badge-id { border-color: var(--blue); color: #9dbaff; }

.footer-legal {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  font-size: 0.8rem;
  color: var(--muted-2);
}

.footer-legal p { margin: 0 0 8px; }

.footer-legal p:last-child { margin-bottom: 0; }

.footer-legal .copy { color: var(--muted); }

/* ruang untuk widget melayang agar konten footer tidak tertutup */
.footer-bottom-pad { padding-bottom: calc(28px + var(--widget-h)); }

/* ---------- Widget melayang ---------- */
.float-widget {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.float-widget-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(180deg, rgba(23, 29, 52, 0.97), rgba(14, 18, 34, 0.97));
  border: 1px solid rgba(242, 184, 48, 0.55);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.3);
  padding: 8px 12px;
  max-width: 100%;
}

.widget-slot {
  display: inline-flex;
  gap: 4px;
  padding: 5px 7px;
  background: #0a0d18;
  border: 1px solid rgba(242, 184, 48, 0.4);
  border-radius: 10px;
  flex-shrink: 0;
}

.widget-reel {
  width: 22px;
  height: 26px;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(180deg, #1c2340, #10152a);
}

.widget-syms {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 15px;
  line-height: 26px;
  animation: reelSpin 2.6s linear infinite;
}

.widget-reel:nth-child(2) .widget-syms { animation-delay: 0.4s; }
.widget-reel:nth-child(3) .widget-syms { animation-delay: 0.8s; }

@keyframes reelSpin {
  0% { transform: translateY(0); }
  100% { transform: translateY(-78px); }
}

.widget-coins { position: relative; flex-shrink: 0; }

.widget-coin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9a8, var(--gold) 55%, var(--gold-dark));
  border: 1px solid #a87b10;
  position: absolute;
  animation: coinFloat 2.2s ease-in-out infinite;
}

.widget-coin.c1 { left: -4px; top: 8px; }
.widget-coin.c2 { left: 4px; top: -2px; animation-delay: 0.7s; }
.widget-coin.c3 { left: 12px; top: 10px; animation-delay: 1.3s; }

@keyframes coinFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.widget-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.widget-text .w-brand { color: var(--gold-2); font-weight: 800; font-size: 0.88rem; font-family: var(--font-display); }

.widget-text .w-sub { color: var(--muted-2); font-size: 0.68rem; }

.widget-btns { display: flex; gap: 8px; flex-shrink: 0; }

.widget-btns .btn { padding: 9px 20px; font-size: 0.85rem; }

@media (max-width: 560px) {
  .widget-text, .widget-coins { display: none; }
  .float-widget-inner { gap: 10px; width: 100%; justify-content: center; }
  .widget-btns { flex: 1; }
  .widget-btns .btn { flex: 1; padding: 11px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .widget-syms, .widget-coin { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utilitas ---------- */
.center { text-align: center; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.text-gold { color: var(--gold-2); }
.text-green { color: #7fe0ac; }
.text-muted { color: var(--muted); }

.hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, rgba(242, 184, 48, 0.12), rgba(224, 49, 63, 0.1));
  border: 1px solid rgba(242, 184, 48, 0.4);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}

.cta-banner h2 { margin: 0 0 6px; font-size: 1.25rem; }

.cta-banner p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* ---------- Daftar artikel di homepage ---------- */
.mini-list { display: flex; flex-direction: column; gap: 0; }

@media (max-width: 1023px) {
  .sidebar-box.stick { position: static; }
}

.stick { position: sticky; top: 92px; }
