/* ============================================================
   Sawer4d — sawer4d.games
   Tema: kasino merah / emas / hitam dengan aksen putih, hijau,
   kuning, dan biru. Responsif untuk semua perangkat.
   ============================================================ */

:root {
  --red: #d2103c;
  --red-deep: #9b0b2b;
  --red-dark: #6d0620;
  --gold: #ffc23c;
  --gold-2: #ffad0a;
  --gold-3: #ffdf8e;
  --green: #17a863;
  --green-dark: #0e7a47;
  --blue: #2364e0;
  --blue-dark: #1747a8;
  --black: #120611;
  --dark: #1c0b18;
  --dark-2: #2a1122;
  --ink: #2a1b24;
  --mut: #75636e;
  --line: #eddfd7;
  --paper: #fbf6ef;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(43, 6, 22, 0.12);
  --shadow-lg: 0 18px 50px rgba(43, 6, 22, 0.22);
  --radius: 16px;
  --radius-sm: 10px;
  --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%;
  overflow-x: hidden; /* diteruskan ke viewport: tidak ada scrollbar horizontal */
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-deep); }
ul, ol { padding-left: 1.25rem; }
p { margin: 0 0 1rem; }

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

/* ---------- Utilitas ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--black); padding: 8px 16px; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

.section { padding: 64px 0; }
.section-tight { padding: 44px 0; }
.section-alt { background: var(--paper); }
.section-dark {
  background:
    radial-gradient(1000px 400px at 85% -10%, rgba(210, 16, 60, 0.35), transparent 60%),
    linear-gradient(160deg, var(--black), var(--dark) 55%, #24091e);
  color: #f7eef2;
}
.section-dark h2, .section-dark h3 { color: var(--white); }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--red);
  background: rgba(210, 16, 60, 0.08);
  border: 1px solid rgba(210, 16, 60, 0.22);
  border-radius: 999px; padding: 5px 14px; margin-bottom: 14px;
}
.kicker-gold { color: var(--gold-2); background: rgba(255, 173, 10, 0.1); border-color: rgba(255, 173, 10, 0.35); }
.section-dark .kicker { color: var(--gold); background: rgba(255, 194, 60, 0.12); border-color: rgba(255, 194, 60, 0.3); }

.section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section-head h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.25;
  color: var(--black); letter-spacing: -0.01em; margin-bottom: 12px;
}
.section-head p { color: var(--mut); margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 800; font-size: 0.95rem;
  border-radius: 999px; padding: 12px 26px; border: 2px solid transparent;
  cursor: pointer; line-height: 1.2; transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-3), var(--gold) 45%, var(--gold-2));
  color: #4a2a00;
  box-shadow: 0 6px 18px rgba(255, 173, 10, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.btn-gold:hover { color: #4a2a00; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255, 173, 10, 0.55); }
.btn-red {
  background: linear-gradient(180deg, #e8254e, var(--red) 45%, var(--red-deep));
  color: var(--white);
  box-shadow: 0 6px 18px rgba(210, 16, 60, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-red:hover { color: var(--white); transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}
.btn-ghost:hover { color: var(--gold); border-color: var(--gold); }
.btn-outline {
  border-color: var(--red); color: var(--red); background: transparent;
}
.btn-outline:hover { background: var(--red); color: var(--white); }
.btn-lg { font-size: 1.05rem; padding: 15px 34px; }
.btn-block { width: 100%; }

.badge-18 {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 8px; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--gold);
  font-weight: 900; font-size: 0.85rem; background: rgba(0, 0, 0, 0.35);
}

/* ---------- Topbar + Header ---------- */
.topbar {
  background: linear-gradient(90deg, var(--red-dark), var(--red) 40%, #e8254e 70%, var(--red-dark));
  color: #ffe9c9; font-size: 0.8rem; text-align: center;
  padding: 7px 14px; letter-spacing: 0.02em;
}
.topbar strong { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(18, 6, 17, 0.97);
  border-bottom: 1px solid rgba(255, 194, 60, 0.18);
  backdrop-filter: blur(8px);
}
.header-main {
  display: flex; align-items: center; gap: 18px;
  min-height: 66px; padding: 8px 20px; max-width: 1280px; margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand svg { width: 38px; height: 38px; }
.brand-name {
  font-size: 1.32rem; font-weight: 900; letter-spacing: 0.01em;
  color: var(--white); line-height: 1;
}
.brand-name b { color: var(--gold); }
.brand-tag { display: block; font-size: 0.6rem; color: #b99fae; letter-spacing: 0.22em; font-weight: 700; }

.main-nav { margin-left: 8px; }
.main-nav ul { display: flex; gap: 4px; list-style: none; padding: 0; flex-wrap: wrap; }
.main-nav a {
  display: block; color: #f1e3ea; font-weight: 700; font-size: 0.86rem;
  padding: 8px 11px; border-radius: 8px; white-space: nowrap;
}
.main-nav a:hover { color: var(--gold); background: rgba(255, 194, 60, 0.1); }
.main-nav a.is-active { color: var(--gold); background: rgba(255, 194, 60, 0.14); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.icon-btn svg { width: 19px; height: 19px; }
.header-actions .btn { padding: 10px 20px; font-size: 0.88rem; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 110% 20%, rgba(255, 173, 10, 0.22), transparent 55%),
    radial-gradient(700px 420px at -10% 90%, rgba(210, 16, 60, 0.5), transparent 60%),
    linear-gradient(150deg, #1a0716 10%, #360a22 55%, #200714 95%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.6px);
  background-size: 26px 26px;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px;
  align-items: center; padding: 66px 0 74px;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255, 194, 60, 0.12); border: 1px solid rgba(255, 194, 60, 0.4);
  color: var(--gold-3); border-radius: 999px; padding: 6px 16px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.14;
  letter-spacing: -0.015em; margin-bottom: 18px; color: var(--white);
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-lead { color: #ecd9e2; max-width: 560px; font-size: 1.02rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 22px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f6e9ef; font-size: 0.78rem; font-weight: 700;
  border-radius: 999px; padding: 6px 14px;
}
.chip svg { width: 14px; height: 14px; color: var(--green); }

/* Mesin slot ilustratif (CSS murni) */
.slot-visual { position: relative; display: grid; place-items: center; }
.slot-cabinet {
  width: min(340px, 100%); border-radius: 22px; padding: 18px;
  background: linear-gradient(165deg, #3a0f2b, #1e0918 70%);
  border: 2px solid rgba(255, 194, 60, 0.55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  position: relative;
}
.slot-cabinet .slot-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.slot-top .lamp {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 12px 2px rgba(255, 194, 60, 0.8);
  animation: lamp-blink 1.6s infinite;
}
.slot-top .lamp:nth-child(2) { animation-delay: 0.3s; }
.slot-top .lamp:nth-child(3) { animation-delay: 0.6s; }
.slot-top .slot-title {
  font-size: 0.72rem; font-weight: 900; letter-spacing: 0.24em; color: var(--gold);
}
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.reel {
  height: 92px; border-radius: 12px; overflow: hidden; position: relative;
  background: linear-gradient(180deg, #fffdf7, #f4e5d0);
  border: 2px solid #caa14a;
}
.reel span {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 2.1rem;
  animation: reel-spin 2.8s cubic-bezier(0.45, 0, 0.35, 1) infinite;
}
.reel:nth-child(2) span { animation-delay: 0.45s; }
.reel:nth-child(3) span { animation-delay: 0.9s; }
@keyframes reel-spin {
  0% { transform: translateY(-100%); }
  62% { transform: translateY(0); }
  100% { transform: translateY(0); }
}
@keyframes lamp-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.slot-payline {
  margin-top: 12px; text-align: center; font-size: 0.75rem; font-weight: 800;
  color: var(--gold-3); letter-spacing: 0.12em; text-transform: uppercase;
}
.slot-coin {
  position: absolute; z-index: 3; border-radius: 50%;
  width: 34px; height: 34px;
  background: radial-gradient(circle at 32% 30%, #ffe9a8, var(--gold) 45%, #c98a00 85%);
  border: 2px solid #a87400;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
  animation: coin-rise 4.5s ease-in infinite;
}
.slot-coin::before {
  content: "Rp"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 0.6rem; font-weight: 900; color: #7a5200;
}
.slot-coin.c1 { left: -22px; bottom: 18%; animation-delay: 0s; }
.slot-coin.c2 { right: -18px; bottom: 30%; animation-delay: 1.5s; }
.slot-coin.c3 { left: 12%; bottom: -14px; width: 26px; height: 26px; animation-delay: 2.8s; }
@keyframes coin-rise {
  0% { transform: translateY(16px) scale(0.6); opacity: 0; }
  22% { opacity: 1; }
  78% { opacity: 1; }
  100% { transform: translateY(-130px) scale(1); opacity: 0; }
}

/* ---------- Kartu kategori ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.cat-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.cat-media img { width: 100%; height: 100%; object-fit: cover; }
.cat-media .cat-emoji {
  position: absolute; left: 12px; top: 12px; width: 42px; height: 42px;
  display: grid; place-items: center; font-size: 1.3rem;
  background: rgba(18, 6, 17, 0.82); border: 1px solid rgba(255, 194, 60, 0.5);
  border-radius: 12px;
}
.cat-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cat-body h3 { font-size: 1.08rem; color: var(--black); }
.cat-body p { font-size: 0.88rem; color: var(--mut); margin: 0; flex: 1; }
.cat-link { font-weight: 800; font-size: 0.86rem; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Keunggulan ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.adv-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.adv-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--red));
}
.adv-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 14px;
  background: linear-gradient(160deg, rgba(255, 194, 60, 0.2), rgba(210, 16, 60, 0.12));
  border: 1px solid rgba(210, 16, 60, 0.15);
}
.adv-card h3 { font-size: 1.02rem; margin-bottom: 6px; color: var(--black); }
.adv-card p { font-size: 0.88rem; color: var(--mut); margin: 0; }

/* ---------- Strip statistik ---------- */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: linear-gradient(120deg, var(--red-dark), var(--red) 55%, #b3163f);
  border-radius: var(--radius); padding: 26px 24px; color: #fff;
  box-shadow: var(--shadow-lg);
}
.stat { text-align: center; }
.stat b { display: block; font-size: 1.5rem; color: var(--gold); line-height: 1.2; }
.stat span { font-size: 0.8rem; color: #ffd9e3; font-weight: 700; }

/* ---------- Testimoni ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
}
.testi-stars { color: var(--gold-2); letter-spacing: 2px; font-size: 0.95rem; }
.testi-card blockquote { font-size: 0.92rem; color: var(--ink); margin: 0; flex: 1; }
.testi-who { display: flex; align-items: center; gap: 10px; }
.testi-ava {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 900; color: #fff; font-size: 0.85rem;
  background: linear-gradient(150deg, var(--red), var(--red-deep));
}
.testi-who b { font-size: 0.88rem; color: var(--black); display: block; line-height: 1.3; }
.testi-who span { font-size: 0.75rem; color: var(--mut); }
.testi-note { text-align: center; color: var(--mut); font-size: 0.78rem; margin-top: 18px; }

/* ---------- Kalkulator turnover (fitur inovatif) ---------- */
.calc-wrap {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 26px; align-items: start;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 194, 60, 0.3);
  border-radius: var(--radius); padding: 28px;
}
.calc-form { display: grid; gap: 16px; }
.field label { display: block; font-size: 0.82rem; font-weight: 800; color: var(--gold-3); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 12px 14px; border-radius: 10px; font-family: var(--font);
  font-size: 0.95rem; border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.35); color: #fff;
}
.field input:focus, .field select:focus { outline: 2px solid var(--gold); }
.calc-result {
  background: linear-gradient(160deg, rgba(255, 194, 60, 0.14), rgba(210, 16, 60, 0.12));
  border: 1px solid rgba(255, 194, 60, 0.4); border-radius: var(--radius-sm);
  padding: 22px; min-height: 200px;
}
.calc-result h3 { font-size: 1rem; color: var(--gold); margin-bottom: 10px; }
.calc-row {
  display: flex; justify-content: space-between; gap: 12px; padding: 9px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2); font-size: 0.9rem;
}
.calc-row b { color: var(--gold-3); white-space: nowrap; }
.calc-total { font-size: 1.25rem; font-weight: 900; color: var(--gold); padding-top: 12px; }
.calc-note { font-size: 0.78rem; color: #d9c3ce; margin-top: 12px; }

/* ---------- Artikel / prosa ---------- */
.prose { font-size: 1rem; color: var(--ink); }
.prose h2 { font-size: 1.35rem; color: var(--black); margin: 26px 0 10px; }
.prose h3 { font-size: 1.1rem; color: var(--red-deep); margin: 20px 0 8px; }
.prose ul, .prose ol { margin: 0 0 1rem; }
.prose li { margin-bottom: 6px; }
.prose .lead { font-size: 1.05rem; color: #55424e; }
.article-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 22px; position: relative; }
.article-media img { width: 100%; object-fit: cover; }
.article-media figcaption { font-size: 0.78rem; color: var(--mut); padding: 10px 4px 0; }
.meta-line { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.8rem; color: var(--mut); margin-bottom: 16px; }
.meta-line span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Layout dua kolom konten ---------- */
.page-layout { display: grid; grid-template-columns: 1fr 330px; gap: 34px; align-items: start; }
.page-layout > article, .page-layout > aside { min-width: 0; }
.page-layout.narrow { grid-template-columns: 1.4fr 0.8fr; max-width: 1020px; margin: 0 auto; }
.side-box {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); margin-bottom: 22px;
}
.side-box h3 { font-size: 0.95rem; color: var(--black); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.side-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.side-list a { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; font-weight: 700; color: var(--ink); }
.side-list a:hover { color: var(--red); }
.side-list .n {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(210, 16, 60, 0.1); color: var(--red); font-size: 0.72rem; font-weight: 900;
}

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: 0.78rem; padding: 14px 0; color: var(--mut); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "›"; color: var(--gold-2); font-weight: 900; }
.crumbs a { color: var(--mut); font-weight: 700; }
.crumbs a:hover { color: var(--red); }
.crumbs [aria-current] { color: var(--red); font-weight: 800; }

/* ---------- Page hero (halaman dalam) ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(800px 400px at 90% -20%, rgba(255, 173, 10, 0.2), transparent 55%),
    radial-gradient(600px 340px at -10% 110%, rgba(210, 16, 60, 0.45), transparent 60%),
    linear-gradient(150deg, #1a0716, #360a22 55%, #200714);
  padding: 46px 0 50px;
}
.page-hero h1 { font-size: clamp(1.6rem, 3.8vw, 2.4rem); color: #fff; margin: 8px 0 12px; line-height: 1.2; }
.page-hero .crumbs { color: #cbb6c1; padding: 0 0 6px; }
.page-hero .crumbs a, .page-hero .crumbs [aria-current] { color: #e9d5dd; }
.page-hero p { color: #e7d3db; max-width: 720px; margin: 0; font-size: 0.98rem; }
.page-hero .crumbs li + li::before { color: var(--gold); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; box-shadow: 0 4px 14px rgba(43, 6, 22, 0.06);
}
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; font-weight: 800; color: var(--black); font-size: 0.96rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "+"; flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; font-weight: 900;
  background: linear-gradient(160deg, var(--gold-3), var(--gold));
  color: #5c3400; transition: transform 0.2s ease;
}
.faq-item[open] summary::before { content: "–"; }
.faq-item[open] summary { color: var(--red-deep); }
.faq-item .faq-a { padding: 0 18px 16px 56px; font-size: 0.9rem; color: #4c3a44; }

/* ---------- Tabel syarat & ketentuan ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); margin: 0 0 1.2rem; }
table.tkey { width: 100%; border-collapse: collapse; min-width: 480px; background: var(--white); font-size: 0.88rem; }
table.tkey th, table.tkey td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.tkey th {
  background: linear-gradient(120deg, var(--red-dark), var(--red));
  color: #fff; font-size: 0.8rem; letter-spacing: 0.04em; white-space: nowrap;
}
table.tkey tr:last-child td { border-bottom: 0; }
table.tkey td:first-child { font-weight: 800; color: var(--black); white-space: nowrap; }

/* ---------- Promo ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promo-card {
  position: relative; background: var(--white); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.promo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.promo-media { aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.promo-media img { width: 100%; height: 100%; object-fit: cover; }
.promo-tag {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  background: linear-gradient(160deg, var(--gold-3), var(--gold-2));
  color: #4a2a00; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.06em;
  padding: 5px 12px; border-radius: 999px; text-transform: uppercase;
}
.promo-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.promo-body h3 { font-size: 1.02rem; color: var(--black); }
.promo-body p { font-size: 0.86rem; color: var(--mut); margin: 0; flex: 1; }
.promo-mini { display: flex; flex-wrap: wrap; gap: 8px; }
.promo-mini span {
  font-size: 0.7rem; font-weight: 800; color: var(--red-deep);
  background: rgba(210, 16, 60, 0.07); border: 1px solid rgba(210, 16, 60, 0.2);
  padding: 3px 10px; border-radius: 999px;
}

/* ---------- Pembayaran & metode ---------- */
.pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pay-card {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm); padding: 18px 16px; text-align: center;
}
.pay-icon {
  width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.25rem;
  background: rgba(255, 194, 60, 0.14); border: 1px solid rgba(255, 194, 60, 0.35);
}
.pay-card b { display: block; color: #fff; font-size: 0.9rem; margin-bottom: 4px; }
.pay-card span { font-size: 0.76rem; color: #d3bcc7; }

/* ---------- Keamanan / checklist ---------- */
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.check-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px; box-shadow: 0 4px 14px rgba(43, 6, 22, 0.05);
}
.check-item .ck {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, var(--green), var(--green-dark));
}
.check-item .ck svg { width: 17px; height: 17px; }
.check-item b { display: block; color: var(--black); font-size: 0.94rem; margin-bottom: 3px; }
.check-item p { font-size: 0.84rem; color: var(--mut); margin: 0; }

/* ---------- Tag cloud ---------- */
.tagcloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tagcloud button {
  font-family: var(--font); font-size: 0.8rem; font-weight: 800; cursor: pointer;
  color: var(--red-deep); background: var(--white);
  border: 1px solid rgba(210, 16, 60, 0.3); border-radius: 999px; padding: 7px 16px;
  transition: all 0.15s ease;
}
.tagcloud button:hover { background: var(--red); color: #fff; transform: translateY(-2px); }
.tagcloud button.hot::after { content: " 🔥"; }

/* ---------- Search overlay ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 120; display: none;
  background: rgba(14, 4, 12, 0.92); backdrop-filter: blur(6px);
  padding: 90px 20px 40px; overflow-y: auto;
}
.search-overlay.open { display: block; }
.search-box { max-width: 680px; margin: 0 auto; }
.search-input-wrap { display: flex; gap: 10px; }
.search-input-wrap input {
  flex: 1; padding: 15px 20px; border-radius: 999px; font-size: 1rem;
  border: 2px solid var(--gold); background: #fff; font-family: var(--font);
}
.search-input-wrap input:focus { outline: 3px solid rgba(255, 194, 60, 0.4); }
.search-close {
  width: 52px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(160deg, var(--gold-3), var(--gold-2)); color: #4a2a00;
  font-weight: 900; font-size: 1.1rem;
}
.search-hint { color: #bfa9b4; font-size: 0.8rem; margin-top: 14px; text-align: center; }
.search-results { max-width: 680px; margin: 24px auto 0; display: grid; gap: 10px; }
.search-result {
  display: block; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px; padding: 14px 18px; color: #f2e6ec;
}
.search-result:hover { border-color: var(--gold); color: #fff; }
.search-result b { display: block; color: var(--gold); font-size: 0.95rem; margin-bottom: 3px; }
.search-result span { font-size: 0.82rem; color: #cbb6c1; }

/* ---------- Form auth ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.auth-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 34px 30px;
}
.auth-card h1 { font-size: 1.5rem; color: var(--black); margin-bottom: 6px; }
.auth-card .auth-sub { font-size: 0.88rem; color: var(--mut); margin-bottom: 22px; }
.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-size: 0.82rem; font-weight: 800; color: var(--black); margin-bottom: 6px; }
.auth-field input {
  width: 100%; padding: 12px 14px; border-radius: 10px; font-size: 0.95rem;
  border: 1.5px solid var(--line); background: var(--paper); font-family: var(--font); color: var(--ink);
}
.auth-field input:focus { outline: 2px solid var(--gold-2); border-color: var(--gold-2); }
.auth-note { font-size: 0.76rem; color: var(--mut); margin-top: 14px; }
.auth-side h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 14px; }
.auth-side h2 em { font-style: normal; color: var(--gold); }
.auth-side p { color: #e5d0da; font-size: 0.95rem; }
.auth-side ul { margin: 18px 0 0; display: grid; gap: 10px; list-style: none; padding: 0; }
.auth-side li { display: flex; gap: 10px; align-items: flex-start; color: #f0e2e9; font-size: 0.9rem; }
.auth-side li::before { content: "✔"; color: var(--green); font-weight: 900; flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, #170814, #0e040c); color: #cbb6c1; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 30px; padding: 52px 0 34px;
}
.footer-brand p { font-size: 0.84rem; color: #a8909c; }
.footer-col h3 {
  color: var(--gold); font-size: 0.86rem; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: #cbb6c1; font-size: 0.86rem; font-weight: 600; }
.footer-col a:hover { color: var(--gold); }
.footer-18 { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.footer-pay { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.footer-pay span {
  font-size: 0.7rem; font-weight: 800; color: #e8d9df;
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
}
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0 96px; font-size: 0.76rem; color: #8f7883;
}
.footer-legal p { margin: 0 0 8px; }
.footer-legal .legal-links { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 10px; }
.footer-legal a { color: #bda7b2; font-weight: 700; }
.footer-legal a:hover { color: var(--gold); }

/* ---------- Floating bar (slot machine style) ---------- */
.float-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(20, 7, 17, 0.94), rgba(10, 3, 8, 0.98));
  border-top: 2px solid rgba(255, 194, 60, 0.55);
  box-shadow: 0 -12px 34px rgba(0, 0, 0, 0.5);
}
.float-reel {
  display: none; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 194, 60, 0.4);
  border-radius: 10px; padding: 6px 10px;
}
.float-reel span { font-size: 1.05rem; display: inline-block; }
.float-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 150px; padding: 12px 22px; border-radius: 12px;
  font-family: var(--font); font-weight: 900; font-size: 0.95rem; letter-spacing: 0.05em;
  text-transform: uppercase; border: 0; cursor: pointer; text-decoration: none;
}
.float-btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 46px; left: -70px;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg); animation: shine 2.6s infinite;
}
@keyframes shine { 0% { left: -70px; } 38%, 100% { left: 130%; } }
.float-register {
  background: linear-gradient(180deg, var(--gold-3), var(--gold) 40%, #f29c00);
  color: #432600;
  box-shadow: 0 0 0 2px #7a5200, 0 0 22px rgba(255, 194, 60, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  animation: cta-pulse 2.2s infinite;
}
.float-register:hover { color: #2e1a00; }
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 2px #7a5200, 0 0 18px rgba(255, 194, 60, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.8); }
  50% { box-shadow: 0 0 0 2px #7a5200, 0 0 34px rgba(255, 194, 60, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.8); }
}
.float-login {
  background: linear-gradient(180deg, #ef3157, var(--red) 45%, var(--red-deep));
  color: #fff;
  box-shadow: 0 0 0 2px #5c0417, 0 0 20px rgba(210, 16, 60, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.float-login:hover { color: #ffe9c9; }
.float-coins { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.float-coins i {
  position: absolute; bottom: -18px; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ffefb5, var(--gold) 50%, #c98a00);
  box-shadow: 0 0 8px rgba(255, 194, 60, 0.8);
  animation: fcoin 3.2s linear infinite;
}
.float-coins i:nth-child(1) { left: 6%; animation-delay: 0s; }
.float-coins i:nth-child(2) { left: 22%; animation-delay: 1.1s; width: 12px; height: 12px; }
.float-coins i:nth-child(3) { left: 47%; animation-delay: 2s; }
.float-coins i:nth-child(4) { left: 68%; animation-delay: 0.6s; width: 13px; height: 13px; }
.float-coins i:nth-child(5) { left: 86%; animation-delay: 1.6s; }
.float-coins i:nth-child(6) { left: 34%; animation-delay: 2.7s; width: 11px; height: 11px; }
@keyframes fcoin {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  12% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(-64px) rotate(220deg); opacity: 0; }
}

/* ---------- Notifikasi / banner PG ---------- */
.pg-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between;
  background: linear-gradient(120deg, #0d3d24, var(--green-dark) 60%, #0b4a2c);
  border-radius: var(--radius); color: #eafaf1; padding: 20px 24px; box-shadow: var(--shadow);
}
.pg-banner b { color: #a8f0c9; }
.pg-banner p { margin: 0; font-size: 0.88rem; flex: 1; min-width: 220px; }

/* ---------- Divider teks ---------- */
.divider { border: 0; border-top: 1px dashed var(--line); margin: 34px 0; }

/* ============================================================
   Responsif
   ============================================================ */
@media (max-width: 1100px) {
  .main-nav {
    display: none;
  }
  .main-nav.open {
    display: block;
    position: fixed; top: 0; right: 0; bottom: 0; width: 300px; z-index: 110;
    background: linear-gradient(170deg, #1c0b18, #120611);
    border-left: 1px solid rgba(255, 194, 60, 0.25);
    padding: 84px 22px 30px; margin: 0; overflow-y: auto;
    animation: drawer-in 0.22s ease;
  }
  @keyframes drawer-in {
    from { opacity: 0; transform: translateX(-24px); }
    to { opacity: 1; transform: none; }
  }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { font-size: 1rem; padding: 12px 14px; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { font-size: 1rem; padding: 12px 14px; }
  .nav-backdrop {
    position: fixed; inset: 0; z-index: 105; background: rgba(10, 3, 8, 0.6);
    opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
  }
  .nav-backdrop.show { opacity: 1; pointer-events: auto; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn span { display: none; }
  .header-actions .btn { padding: 10px 14px; }
  .cat-grid, .pay-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .page-layout { grid-template-columns: 1fr; }
  .page-layout.narrow { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 56px; }
  .slot-visual { order: -1; }
  .calc-wrap { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; gap: 28px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .check-grid { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
}

@media (max-width: 640px) {
  .header-main { gap: 12px; padding: 8px 14px; }
  .header-actions { gap: 8px; }
  .header-actions .btn-login { display: none; }
  .header-actions .btn { padding: 9px 13px; font-size: 0.8rem; }
  .brand svg { width: 32px; height: 32px; }
  .brand-name { font-size: 1.05rem; }
  .brand-tag { display: none; }
  .cat-grid { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .promo-grid, .testi-grid { grid-template-columns: 1fr; }
  .pay-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding: 40px 0 24px; }
  .hero-cta .btn { flex: 1; min-width: 150px; }
  .float-bar { gap: 10px; }
  .float-btn { min-width: 0; flex: 1; padding: 13px 10px; font-size: 0.92rem; }
  .faq-item .faq-a { padding-left: 18px; }
  .section { padding: 42px 0; }
  .crumbs { font-size: 0.72rem; }
}

@media (max-width: 400px) {
  .container { padding: 0 14px; }
  .header-main { padding: 8px 14px; }
  .float-btn { font-size: 0.85rem; padding: 12px 8px; }
  .brand-name { font-size: 1rem; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { min-width: 0; padding: 13px 16px; }
  .calc-wrap { padding: 20px 16px; }
}

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