/* ============================================================
   Calon4d — calon4d.games
   Gaya situs: tema gelap dengan aksen merah, emas, hijau, biru.
   Seluler dulu, kemudian tablet (720px) dan desktop (1024px).
   ============================================================ */

:root {
  --bg: #0c111d;
  --bg2: #111827;
  --bg3: #161f33;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef1f8;
  --muted: #a3aec5;
  --red: #e5484d;
  --red-deep: #b3282e;
  --gold: #f6b73c;
  --gold-soft: #ffd479;
  --green: #3dd68c;
  --blue: #7cb1ff;
  --radius: 16px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

a:hover {
  text-decoration: underline;
}

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

/* ---------- Strip info atas ---------- */
.topstrip {
  background: linear-gradient(90deg, var(--red-deep), var(--red), var(--red-deep));
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 6px 12px;
  color: #fff;
}

.topstrip strong {
  color: var(--gold-soft);
}

/* ---------- Header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 17, 29, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.head-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 0.01em;
  color: var(--text);
}

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

.brand img {
  width: 34px;
  height: 34px;
}

.brand .b4d {
  color: var(--gold);
}

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

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
}

.main-nav {
  display: none;
}

.main-nav.open {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 10px 20px 16px;
}

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

.main-nav a:hover,
.main-nav a.active {
  background: rgba(246, 183, 60, 0.1);
  color: var(--gold-soft);
  text-decoration: none;
}

.mobile-only {
  display: block;
}

@media (min-width: 720px) {
  .mobile-only {
    display: none;
  }
}

.head-actions {
  display: none;
  gap: 10px;
  margin-left: auto;
}

.head-search {
  display: none;
}

/* ---------- Tombol ---------- */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

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

.btn-gold {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #241a05;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(246, 183, 60, 0.55);
  color: var(--gold-soft);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13.5px;
  border-radius: 10px;
}

/* ---------- Hero beranda ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 60px;
  background:
    radial-gradient(720px 340px at 85% -10%, rgba(246, 183, 60, 0.14), transparent 65%),
    radial-gradient(760px 380px at 8% 108%, rgba(229, 72, 77, 0.2), transparent 65%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  border-bottom: 1px solid var(--line);
}

.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(246, 183, 60, 0.45);
  color: var(--gold-soft);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

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

.hero .lead {
  color: var(--muted);
  max-width: 640px;
  font-size: clamp(15.5px, 2.5vw, 17.5px);
  margin: 0 0 26px;
}

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

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(61, 214, 140, 0.8);
}

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

.section.alt {
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(124, 177, 255, 0.06), transparent 70%),
    var(--bg2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sec-head {
  max-width: 720px;
  margin-bottom: 30px;
}

.kicker {
  display: inline-block;
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.sec-head h2,
.sec-title {
  margin: 0 0 10px;
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.25;
}

.sec-head p {
  color: var(--muted);
  margin: 0;
}

/* ---------- Kartu ---------- */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.card {
  background: linear-gradient(180deg, var(--bg3), var(--bg2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--gold-soft);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.card .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(229, 72, 77, 0.14);
  border: 1px solid rgba(229, 72, 77, 0.3);
  font-size: 19px;
  margin-bottom: 14px;
}

.card.green .ico {
  background: rgba(61, 214, 140, 0.12);
  border-color: rgba(61, 214, 140, 0.3);
}

.card.blue .ico {
  background: rgba(124, 177, 255, 0.12);
  border-color: rgba(124, 177, 255, 0.3);
}

.card.gold .ico {
  background: rgba(246, 183, 60, 0.12);
  border-color: rgba(246, 183, 60, 0.3);
}

/* ---------- Kenapa memilih ---------- */
.why {
  display: grid;
  gap: 24px;
}

.why .story {
  color: var(--muted);
  font-size: 15.5px;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.checklist li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  background: linear-gradient(180deg, var(--bg3), var(--bg2));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}

.checklist .tick {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(61, 214, 140, 0.15);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(61, 214, 140, 0.35);
}

.checklist strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 15px;
}

.checklist span {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Bagian seluler ---------- */
.split {
  display: grid;
  gap: 26px;
  align-items: center;
}

.split figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.mini-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}

.mini-list .n {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(246, 183, 60, 0.13);
  border: 1px solid rgba(246, 183, 60, 0.35);
  color: var(--gold);
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mini-list strong {
  display: block;
  font-size: 15px;
}

.mini-list span {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Ilustrasi pembaca ---------- */
.note-line {
  display: inline-block;
  background: rgba(124, 177, 255, 0.1);
  border: 1px solid rgba(124, 177, 255, 0.28);
  color: var(--muted);
  font-size: 12.5px;
  border-radius: 10px;
  padding: 7px 12px;
  margin: 18px 0 0;
}

.quote-card {
  position: relative;
}

.quote-card .q {
  font-size: 26px;
  color: var(--red);
  line-height: 1;
  margin-bottom: 10px;
  font-weight: 900;
}

.quote-card h3 {
  color: var(--text);
}

/* ---------- Glosarium mini ---------- */
.term {
  border-left: 3px solid var(--gold);
  border-radius: 12px;
}

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

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

.gloss-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

/* ---------- Artikel redaksi beranda ---------- */
.article-wrap {
  display: grid;
  gap: 30px;
}

.article-wrap figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

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

.article-meta .cat {
  background: rgba(229, 72, 77, 0.15);
  color: #ff9b9e;
  border: 1px solid rgba(229, 72, 77, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  background: linear-gradient(180deg, var(--bg3), var(--bg2));
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 18px;
  font-weight: 700;
  font-size: 15.5px;
  position: relative;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(246, 183, 60, 0.14);
  color: var(--gold);
  font-weight: 800;
}

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

.faq .a {
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- Pita CTA ---------- */
.cta-band {
  background:
    radial-gradient(560px 240px at 50% 120%, rgba(246, 183, 60, 0.16), transparent 70%),
    linear-gradient(180deg, var(--bg3), var(--bg2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.cta-band .inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta-band p {
  color: var(--muted);
  margin: 0 0 22px;
}

.cta-band .hero-cta {
  justify-content: center;
  margin-bottom: 0;
}

/* ---------- Breadcrumb ---------- */
.crumbs {
  padding: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
}

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

.crumbs li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--muted);
}

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

.crumbs a:hover {
  color: var(--gold-soft);
}

.crumbs [aria-current] {
  color: var(--gold-soft);
  font-weight: 600;
}

/* ---------- Halaman kategori / artikel ---------- */
.page-hero {
  padding: 34px 0 10px;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(25px, 5vw, 36px);
  line-height: 1.22;
}

.page-hero .lead {
  color: var(--muted);
  max-width: 760px;
  margin: 0 0 22px;
  font-size: 16px;
}

.page-figure {
  margin: 26px 0 8px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.article {
  padding: 26px 0 30px;
}

.article .prose {
  max-width: 800px;
}

.prose h2 {
  font-size: clamp(20px, 3.6vw, 26px);
  line-height: 1.3;
  margin: 38px 0 12px;
  padding-left: 14px;
  border-left: 4px solid var(--red);
}

.prose h3 {
  font-size: 18.5px;
  margin: 26px 0 8px;
  color: var(--gold-soft);
}

.prose p {
  color: #cdd5e4;
  margin: 0 0 14px;
}

.prose ul,
.prose ol {
  color: #cdd5e4;
  padding-left: 22px;
  margin: 0 0 16px;
  display: grid;
  gap: 8px;
}

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

.prose em {
  color: var(--gold-soft);
}

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

.steps {
  list-style: none;
  counter-reset: langkah;
  padding: 0 !important;
  margin: 0 0 16px !important;
}

.steps li {
  counter-increment: langkah;
  position: relative;
  padding-left: 46px;
  min-height: 34px;
}

.steps li::before {
  content: counter(langkah);
  position: absolute;
  left: 0;
  top: 1px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #241a05;
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Tabel ---------- */
.tablewrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 6px 0 18px;
  -webkit-overflow-scrolling: touch;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 14px;
}

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

th {
  background: rgba(246, 183, 60, 0.1);
  color: var(--gold-soft);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

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

td:first-child {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

td:last-child {
  color: var(--muted);
}

/* ---------- Kotak tautan terkait ---------- */
.related {
  margin-top: 34px;
  background: linear-gradient(180deg, var(--bg3), var(--bg2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.related h2 {
  font-size: 17px;
  margin: 0 0 12px;
  color: var(--gold-soft);
}

.related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.related a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
}

.related a::before {
  content: "→";
  color: var(--gold);
}

/* ---------- Kartu promosi ---------- */
.promo-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.promo-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, var(--bg3), var(--bg2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.promo-card .tag {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(229, 72, 77, 0.16);
  border: 1px solid rgba(229, 72, 77, 0.4);
  color: #ff9b9e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.promo-card h3 {
  margin: 0;
  font-size: 19px;
}

.promo-card .desc {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.promo-card .mini-terms {
  font-size: 13px;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

.promo-card .mini-terms div {
  display: flex;
  gap: 8px;
  padding: 3px 0;
}

.promo-card .mini-terms b {
  color: var(--gold-soft);
  min-width: 96px;
  font-weight: 700;
}

.promo-card .more {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- Formulir ---------- */
.form-card {
  background: linear-gradient(180deg, var(--bg3), var(--bg2));
  border: 1px solid rgba(246, 183, 60, 0.25);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
}

.form-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.form-note {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 18px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.form-note::before {
  content: "🛡";
  font-size: 15px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(12, 17, 29, 0.7);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font);
}

.field input:focus {
  outline: 2px solid rgba(246, 183, 60, 0.55);
  outline-offset: 1px;
  border-color: rgba(246, 183, 60, 0.55);
}

.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 16px;
  font-size: 13.5px;
  color: var(--muted);
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--gold);
}

.form-card .btn {
  width: 100%;
  font-size: 16px;
  padding: 13px 20px;
}

.ext-hint {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  margin: 12px 0 0;
}

/* ---------- Halaman pencarian ---------- */
.search-hero {
  padding: 46px 0 8px;
  text-align: center;
}

.search-box {
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin: 22px auto 14px;
}

.search-box input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--text);
  font-size: 16px;
  font-family: var(--font);
}

.search-box input:focus {
  outline: 2px solid rgba(246, 183, 60, 0.55);
  border-color: rgba(246, 183, 60, 0.55);
}

.tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 6px 0 8px;
}

.tagcloud a {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.tagcloud a:hover {
  border-color: rgba(246, 183, 60, 0.5);
  color: var(--gold-soft);
  text-decoration: none;
}

.result-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  text-align: left;
}

.result {
  display: block;
  background: linear-gradient(180deg, var(--bg3), var(--bg2));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--text);
}

.result:hover {
  border-color: rgba(246, 183, 60, 0.45);
  text-decoration: none;
}

.result .u {
  color: var(--green);
  font-size: 12.5px;
}

.result h3 {
  margin: 2px 0 4px;
  font-size: 16px;
  color: var(--gold-soft);
}

.result p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.search-empty {
  color: var(--muted);
  text-align: center;
  padding: 26px 0 8px;
}

/* ---------- Footer ---------- */
.site-foot {
  background: #090d16;
  border-top: 1px solid var(--line);
  padding: 46px 0 0;
  /* ruang untuk widget melayang agar konten terakhir tetap terlihat */
  padding-bottom: 120px;
}

.foot-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}

.foot-brand p {
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0 0;
  max-width: 340px;
}

.foot-col h3 {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 14px;
}

.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.foot-col a {
  color: var(--muted);
  font-size: 14px;
}

.foot-col a:hover {
  color: var(--gold-soft);
}

.legal {
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding: 18px 0 8px;
  color: var(--muted);
  font-size: 12.5px;
}

.legal .adult {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 4px 10px;
  border-radius: 10px;
  border: 1.5px solid var(--red);
  color: #ff9b9e;
  font-weight: 800;
  margin-bottom: 10px;
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  padding: 12px 0 20px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- Widget melayang: mesin slot + koin ---------- */
.cta-float {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  padding: 0 10px calc(10px + env(safe-area-inset-bottom));
  pointer-events: none;
}

.cta-float .bar {
  pointer-events: auto;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-radius: 18px;
  border: 1px solid rgba(246, 183, 60, 0.35);
  background: linear-gradient(90deg, #171f33 0%, #131a2a 55%, #1d1626 100%);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
}

.slotbox {
  position: relative;
  flex: none;
  width: 108px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(180deg, #2a1c0e, #191008);
  border: 1.5px solid rgba(246, 183, 60, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: visible;
}

.reel {
  width: 26px;
  height: 34px;
  border-radius: 7px;
  overflow: hidden;
  background: linear-gradient(180deg, #f7f2e4, #d9cfb4);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.reel .strip {
  display: flex;
  flex-direction: column;
  animation: c4d-spin 2.4s linear infinite;
}

.reel .strip span {
  height: 34px;
  line-height: 34px;
  text-align: center;
  font-size: 17px;
}

.reel:nth-child(2) .strip {
  animation-duration: 3s;
}

.reel:nth-child(3) .strip {
  animation-duration: 2s;
}

@keyframes c4d-spin {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-136px);
  }
}

.coin {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffe9a8, #f6b73c 58%, #a97a1c);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  animation: c4d-bob 2.8s ease-in-out infinite alternate;
}

.coin.c1 {
  width: 18px;
  height: 18px;
  top: -9px;
  left: -8px;
}

.coin.c2 {
  width: 14px;
  height: 14px;
  top: -7px;
  right: -6px;
  animation-delay: 0.9s;
}

.coin.c3 {
  width: 11px;
  height: 11px;
  bottom: -6px;
  right: 12px;
  animation-delay: 1.6s;
}

@keyframes c4d-bob {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-5px);
  }
}

.cta-float .txt {
  min-width: 0;
  line-height: 1.3;
}

.cta-float .txt b {
  display: block;
  font-size: 15.5px;
  color: var(--gold-soft);
  white-space: nowrap;
}

.cta-float .txt small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cta-float .btns {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex: none;
}

@media (prefers-reduced-motion: reduce) {

  .reel .strip,
  .coin {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---------- Halaman auth dua kolom ---------- */
.auth-grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

/* ---------- Responsif ---------- */
@media (min-width: 720px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gloss-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .promo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }

  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: block;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
  }

  .main-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 0;
  }

  .main-nav a {
    padding: 8px 11px;
    font-size: 14px;
  }

  .head-actions {
    display: flex;
  }

  .head-row {
    gap: 18px;
  }

  .cta-float .bar {
    border-radius: 999px;
  }

  .auth-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .split {
    grid-template-columns: 1fr 1fr;
  }

  .why {
    grid-template-columns: 1.1fr 1fr;
    gap: 34px;
  }

  .article-wrap {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }

  .head-search {
    display: block;
    margin-left: auto;
  }

  .head-actions {
    margin-left: 0;
  }

  .search-form input {
    width: 150px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--bg2);
    color: var(--text);
    font-size: 13.5px;
    font-family: var(--font);
  }

  .search-form button {
    padding: 8px 13px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(180deg, var(--gold-soft), var(--gold));
    color: #241a05;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
  }
}

/* ---------- Utilitas ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--gold);
  color: #241a05;
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: 800;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}
