/* ==========================================================================
   Goldwin678 — goldwin678.games
   Tema: Kasino modern (merah · emas · hijau · biru · hitam · putih)
   Responsif penuh: ponsel · tablet · desktop
   ========================================================================== */

:root {
  --bg: #0a0e17;
  --bg-2: #0f1522;
  --panel: #141c2e;
  --panel-2: #1a2440;
  --line: #263352;
  --gold: #f0c24b;
  --gold-2: #d9a429;
  --gold-soft: #f7dd9a;
  --red: #e23b47;
  --red-2: #b52a35;
  --green: #35b56f;
  --blue: #4a8cff;
  --white: #f2f5fb;
  --muted: #9daac2;
  --shadow: 0 12px 34px rgba(0, 0, 0, .38);
  --radius: 16px;
  --header-h: 74px;
  --float-h: 74px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-soft); }

ul, ol { padding-left: 1.3rem; }

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

/* ---------- Utilitas ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.75rem; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.gold-text {
  background: linear-gradient(92deg, #f7dd9a, #f0c24b 45%, #d9a429);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 700; letter-spacing: .4px;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(20, 28, 46, .85); color: var(--muted);
}
.badge-18 { border-color: #7a2b31; color: #ff9aa2; background: rgba(179, 42, 49, .18); }
.badge-green { border-color: #235c3f; color: #7fe0a8; background: rgba(53, 181, 111, .12); }
.badge-blue { border-color: #274b8f; color: #9dc0ff; background: rgba(74, 140, 255, .12); }
.badge-gold { border-color: #8a6a1e; color: var(--gold-soft); background: rgba(240, 194, 75, .12); }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 800; font-size: .95rem;
  padding: 13px 30px; border-radius: 12px; border: 0; cursor: pointer;
  transition: transform .18s, box-shadow .18s, filter .18s;
  text-decoration: none; line-height: 1.2; white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-gold {
  background: linear-gradient(180deg, #ffe9a8, #f0c24b 40%, #d9a429);
  color: #3a2a05; box-shadow: 0 6px 20px rgba(240, 194, 75, .35);
}
.btn-gold:hover { filter: brightness(1.07); color: #3a2a05; box-shadow: 0 8px 26px rgba(240, 194, 75, .5); }
.btn-red {
  background: linear-gradient(180deg, #f05560, #e23b47 45%, #b52a35);
  color: #fff; box-shadow: 0 6px 20px rgba(226, 59, 71, .35);
}
.btn-red:hover { filter: brightness(1.08); color: #fff; }
.btn-green {
  background: linear-gradient(180deg, #46c67e, #35b56f 50%, #24945a);
  color: #06281; color: #052b17; box-shadow: 0 6px 20px rgba(53, 181, 111, .3);
}
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid var(--line);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 9px 20px; font-size: .87rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(10, 14, 23, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar {
  background: linear-gradient(90deg, #8f1f28, #b52a35 35%, #8f1f28);
  font-size: .8rem; color: #ffd9dc; text-align: center;
  padding: 6px 12px;
}
.topbar strong { color: #ffe9a8; }
.nav-wrap { display: flex; align-items: center; gap: 22px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand svg { width: 42px; height: 42px; }
.brand-name { font-size: 1.32rem; font-weight: 900; letter-spacing: .4px; }
.brand-name span { color: var(--gold); }
.brand-tag { display: block; font-size: .62rem; color: var(--muted); letter-spacing: 2.2px; font-weight: 700; }

.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.main-nav a {
  color: var(--white); font-weight: 600; font-size: .92rem;
  padding: 9px 13px; border-radius: 9px; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); background: rgba(240, 194, 75, .09); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 11px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); color: var(--white);
  transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }

.nav-toggle { display: none; }

/* ---------- Pencarian ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 950; display: none;
  background: rgba(6, 9, 15, .82); backdrop-filter: blur(6px);
  padding: 90px 20px 40px;
}
.search-overlay.open { display: block; }
.search-box {
  max-width: 680px; margin: 0 auto; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow);
}
.search-box h3 { margin-bottom: 12px; font-size: 1.05rem; }
.search-input-wrap { position: relative; }
.search-input-wrap input {
  width: 100%; padding: 14px 46px 14px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--white);
  font-size: 1rem; font-family: var(--font);
}
.search-input-wrap input:focus { outline: 2px solid var(--gold); }
.search-input-wrap .s-ico { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-results { margin-top: 14px; max-height: 46vh; overflow-y: auto; }
.search-result {
  display: block; padding: 11px 14px; border-radius: 10px; margin-bottom: 6px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--white);
}
.search-result:hover { border-color: var(--gold); }
.search-result .sr-t { font-weight: 700; color: var(--gold); font-size: .93rem; }
.search-result .sr-d { font-size: .8rem; color: var(--muted); }
.search-close { float: right; background: none; border: 0; color: var(--muted); font-size: 1.4rem; cursor: pointer; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 16px 0 4px; font-size: .84rem; color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "›"; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb [aria-current] { color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10, 14, 23, .78), rgba(10, 14, 23, .92)),
    url("../img/hero-casino.jpg") center 32% / cover no-repeat;
}
.hero-inner { padding: 92px 0 96px; max-width: 640px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.18; font-weight: 900; margin-bottom: 18px; }
.hero p.lead { color: #cdd7e8; font-size: clamp(1rem, 2vw, 1.13rem); max-width: 560px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-strip {
  border-top: 1px solid rgba(240, 194, 75, .25);
  background: rgba(15, 21, 34, .75);
}
.hero-strip .container {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 26px;
  padding-top: 14px; padding-bottom: 14px;
}
.hero-strip .stat { display: flex; align-items: baseline; gap: 8px; font-size: .9rem; color: var(--muted); }
.hero-strip .stat b { font-size: 1.06rem; color: var(--gold); }

/* ---------- Section umum ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-kicker {
  font-size: .78rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: var(--red); margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); font-weight: 900; line-height: 1.25; }
.section-head p { color: var(--muted); margin-top: 12px; }

/* ---------- Kartu promo ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(240, 194, 75, .55); box-shadow: var(--shadow); }
.card-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .tag {
  position: absolute; top: 12px; left: 12px;
  background: linear-gradient(180deg, #f05560, #c02c38);
  color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .8px;
  padding: 4px 11px; border-radius: 999px; text-transform: uppercase;
}
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 1.08rem; font-weight: 800; }
.card-body p { color: var(--muted); font-size: .92rem; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Kartu kategori ---------- */
.cat-card { text-align: left; }
.cat-card .card-img { aspect-ratio: 16 / 10; }
.cat-card .card-body h3 { display: flex; align-items: center; gap: 9px; font-size: 1.14rem; }
.cat-ico {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem;
  background: linear-gradient(180deg, rgba(240, 194, 75, .22), rgba(217, 164, 41, .1));
  border: 1px solid rgba(240, 194, 75, .35);
}

/* ---------- Kartu keunggulan (ikon) ---------- */
.adv-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; text-align: center;
  transition: border-color .2s, transform .2s;
}
.adv-card:hover { border-color: rgba(74, 140, 255, .6); transform: translateY(-4px); }
.adv-ico {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
}
.ico-gold { background: rgba(240, 194, 75, .13); border: 1px solid rgba(240, 194, 75, .4); }
.ico-red { background: rgba(226, 59, 71, .13); border: 1px solid rgba(226, 59, 71, .4); }
.ico-green { background: rgba(53, 181, 111, .13); border: 1px solid rgba(53, 181, 111, .4); }
.ico-blue { background: rgba(74, 140, 255, .13); border: 1px solid rgba(74, 140, 255, .4); }
.adv-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.adv-card p { color: var(--muted); font-size: .89rem; }

/* ---------- Pembayaran ---------- */
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.pay-item {
  background: var(--panel); border: 1px solid var(--line); border-radius: 13px;
  padding: 16px 12px; text-align: center;
}
.pay-item .p-ico { font-size: 1.55rem; margin-bottom: 8px; }
.pay-item b { display: block; font-size: .92rem; }
.pay-item span { font-size: .78rem; color: var(--muted); }

/* ---------- Testimoni ---------- */
.testi-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 14px;
}
.testi-card .stars { color: var(--gold); letter-spacing: 2px; font-size: .95rem; }
.testi-card blockquote { color: #d7dfec; font-size: .95rem; font-style: italic; flex: 1; }
.testi-who { display: flex; align-items: center; gap: 12px; }
.testi-ava {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1rem; color: #241a04;
  background: linear-gradient(180deg, #ffe9a8, #d9a429);
}
.testi-who b { display: block; font-size: .92rem; }
.testi-who span { font-size: .78rem; color: var(--muted); }

/* ---------- Tag cloud ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag-cloud a {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--white); font-size: .86rem; font-weight: 600;
  transition: all .2s;
}
.tag-cloud a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.tag-cloud a b { color: var(--red); font-weight: 800; margin-right: 4px; }

/* ---------- Artikel / prose ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.5rem; margin: 34px 0 14px; line-height: 1.3; }
.prose h3 { font-size: 1.15rem; margin: 26px 0 10px; }
.prose p { margin-bottom: 16px; color: #d7dfec; }
.prose ul, .prose ol { margin: 0 0 16px; color: #d7dfec; }
.prose li { margin-bottom: 7px; }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); margin: 22px 0; }
.prose figure { margin: 22px 0; }
.prose figcaption { font-size: .8rem; color: var(--muted); margin-top: 8px; text-align: center; }
.prose blockquote {
  border-left: 4px solid var(--gold); background: rgba(240, 194, 75, .07);
  padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 20px 0; color: #e8e2cf;
}
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .9rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; vertical-align: top; }
.prose th { background: var(--panel-2); color: var(--gold-soft); }
.prose tr:nth-child(even) td { background: rgba(20, 28, 46, .5); }

.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .84rem; color: var(--muted); margin-bottom: 18px; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 13px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 17px 20px;
  font-weight: 700; font-size: .98rem; display: flex; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "+"; flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(240, 194, 75, .15); color: var(--gold); font-weight: 900;
  transition: transform .2s;
}
.faq-item[open] summary::before { content: "−"; }
.faq-item[open] { border-color: rgba(240, 194, 75, .45); }
.faq-item .faq-a { padding: 0 20px 18px 58px; color: var(--muted); font-size: .93rem; }
.faq-item .faq-a p + p { margin-top: 10px; }

/* ---------- Form ---------- */
.form-wrap { max-width: 520px; margin: 0 auto; }
.form-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow);
}
.form-card h1 { font-size: 1.55rem; margin-bottom: 6px; }
.form-card .sub { color: var(--muted); font-size: .9rem; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .86rem; font-weight: 700; margin-bottom: 7px; }
.field input, .field select {
  width: 100%; padding: 13px 15px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--white);
  font-size: .95rem; font-family: var(--font);
}
.field input:focus, .field select:focus { outline: 2px solid var(--gold); }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: 5px; }
.field .err { font-size: .78rem; color: #ff8f98; margin-top: 5px; display: none; }
.field.invalid input { border-color: #c0392b; outline-color: #c0392b; }
.field.invalid .err { display: block; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--muted); margin: 18px 0; }
.form-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold); flex-shrink: 0; }
.form-note { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 16px; }
.form-alt { text-align: center; margin-top: 18px; font-size: .9rem; color: var(--muted); }

.auth-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.auth-side { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; }
.auth-side img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.auth-side .auth-side-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px;
  background: linear-gradient(180deg, transparent, rgba(8, 11, 18, .93));
  font-size: .95rem; color: #e4ebf6;
}

/* ---------- Kalkulator & kamus (modul inovatif) ---------- */
.tool-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.tool-card h3 { margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.tool-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; margin-top: 14px; }
.tool-out {
  margin-top: 18px; background: var(--bg-2); border: 1px dashed var(--line);
  border-radius: 12px; padding: 16px 18px; font-size: .92rem;
}
.tool-out b { color: var(--gold); }
.glossary-filter { width: 100%; padding: 12px 15px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg-2); color: var(--white); font-size: .95rem; margin-top: 12px; }
.glossary-list { margin-top: 14px; display: grid; gap: 10px; max-height: 320px; overflow-y: auto; }
.glossary-item { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 15px; }
.glossary-item b { color: var(--gold); }

/* ---------- Langkah / steps ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step {
  display: flex; gap: 16px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 13px; padding: 18px 20px; align-items: flex-start;
}
.step-n {
  counter-increment: step; flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: #241a04;
  background: linear-gradient(180deg, #ffe9a8, #d9a429);
}
.step-n::before { content: counter(step); }
.step h3 { font-size: 1rem; margin-bottom: 5px; }
.step p { color: var(--muted); font-size: .9rem; }

/* ---------- Halaman kategori header ---------- */
.page-hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 14, 23, .8), rgba(10, 14, 23, .95)), var(--page-hero-bg, none) center 30% / cover no-repeat;
}
.page-hero-inner { padding: 54px 0 50px; max-width: 720px; }
.page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.2; margin-bottom: 14px; }
.page-hero p { color: #cdd7e8; }

/* ---------- Notice ---------- */
.notice {
  border-radius: 13px; padding: 16px 18px; font-size: .88rem; margin: 18px 0;
}
.notice-warn { background: rgba(226, 59, 71, .1); border: 1px solid rgba(226, 59, 71, .4); color: #ffc7cc; }
.notice-info { background: rgba(74, 140, 255, .1); border: 1px solid rgba(74, 140, 255, .4); color: #bcd4ff; }
.notice-gold { background: rgba(240, 194, 75, .08); border: 1px solid rgba(240, 194, 75, .4); color: #f2e3b4; }
.notice b { color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-2); border-top: 1px solid var(--line);
  padding: 56px 0 40px; margin-top: 0;
  /* ruang untuk floating bar agar konten tidak tertutup, tanpa area kosong ekstra */
  padding-bottom: calc(40px + var(--float-h) + 16px);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
.footer-grid h3 { font-size: .95rem; margin-bottom: 15px; color: var(--gold); letter-spacing: .4px; }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.footer-grid ul a { color: var(--muted); font-size: .89rem; }
.footer-grid ul a:hover { color: var(--gold); }
.footer-brand p { color: var(--muted); font-size: .87rem; margin: 12px 0 16px; }
.footer-legal {
  border-top: 1px solid var(--line); margin-top: 40px; padding-top: 24px;
  font-size: .8rem; color: var(--muted);
  display: flex; flex-direction: column; gap: 12px;
}
.footer-legal .badges { display: flex; flex-wrap: wrap; gap: 9px; }
.footer-copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.img-credits { font-size: .72rem; color: #67748c; line-height: 1.9; }
.img-credits a { color: #8493ad; text-decoration: underline; }

/* ---------- Floating CTA bar (gaya mesin slot) ---------- */
.float-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 920;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(20, 16, 4, .86), rgba(12, 9, 2, .97));
  border-top: 2px solid var(--gold);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .55), 0 -2px 18px rgba(240, 194, 75, .16);
  backdrop-filter: blur(8px);
}
.float-reels { display: flex; gap: 6px; }
.reel {
  width: 34px; height: 34px; border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(240, 194, 75, .55);
  background: linear-gradient(180deg, #2a2410, #171307);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.reel span {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
}
.reel .spin-a { animation: reelJump 2.4s infinite; }
.reel .spin-b { animation: reelJump 2.4s .8s infinite; }
.reel .spin-c { animation: reelJump 2.4s 1.6s infinite; }
@keyframes reelJump {
  0%, 24% { transform: translateY(0); opacity: 1; }
  32% { transform: translateY(-40px); opacity: 0; }
  40% { transform: translateY(40px); opacity: 0; }
  48%, 100% { transform: translateY(0); opacity: 1; }
}
.float-cta .f-label {
  font-size: .74rem; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--gold-soft); display: none; white-space: nowrap;
}
.float-cta .btn { padding: 12px 34px; font-size: 1rem; letter-spacing: .6px; position: relative; }
.float-cta .btn-gold { animation: ctaPulse 2.6s infinite; }
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240, 194, 75, .55), 0 6px 20px rgba(240, 194, 75, .35); }
  55% { box-shadow: 0 0 0 12px rgba(240, 194, 75, 0), 0 6px 20px rgba(240, 194, 75, .5); }
}
/* koin emas melayang */
.coin-fx { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.coin {
  position: absolute; bottom: 8px; font-size: .95rem; opacity: 0;
  animation: coinUp 3.8s infinite linear;
}
.coin.c1 { left: 12%; animation-delay: 0s; }
.coin.c2 { left: 38%; animation-delay: 1.1s; font-size: .8rem; }
.coin.c3 { left: 63%; animation-delay: 2.2s; }
.coin.c4 { left: 86%; animation-delay: 1.7s; font-size: 1.05rem; }
.coin.c5 { left: 24%; animation-delay: 3s; font-size: .72rem; }
@keyframes coinUp {
  0% { transform: translateY(0) rotate(0deg) scale(.7); opacity: 0; }
  12% { opacity: .95; }
  100% { transform: translateY(-130px) rotate(340deg) scale(1.15); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .float-cta .f-label { display: none; }
}

/* Link CTA di dalam menu mobile (muncul hanya saat menu terbuka) */
.nav-cta-links { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 14px 20px 18px; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav.open .nav-cta-links {
    display: flex; gap: 10px; margin-top: 10px; padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .nav-cta-links .btn { flex: 1; }
  .main-nav a { padding: 12px 14px; }
  .nav-actions .btn-word { display: none; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-side img { min-height: 220px; max-height: 260px; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .nav-actions .btn { display: none; } /* CTA pindah ke menu tarik turun di ponsel */
  .hero-inner { padding: 60px 0 64px; }
  .section { padding: 48px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .float-reels { display: none; }
  .float-cta .btn { flex: 1; max-width: 230px; }
  .prose h2 { font-size: 1.3rem; }
  .prose table { display: block; overflow-x: auto; white-space: nowrap; }
  .page-hero-inner { padding: 40px 0 36px; }
}

@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-cta .btn { width: 100%; }
  .brand-tag { display: none; }
  .float-cta { gap: 10px; }
  .float-cta .btn { padding: 12px 16px; font-size: .95rem; }
  .faq-item .faq-a { padding-left: 20px; }
  .hero-strip .container { justify-content: flex-start; }
}
