/* ============================================================
   Ombak123 — ombak123.games
   Tema: Kasino (merah · putih · hijau · kuning · biru · hitam)
   Responsif penuh: ponsel · tablet · desktop
   ============================================================ */

:root {
  --bg-dark: #0c0e1d;
  --bg-dark-2: #141832;
  --bg-dark-3: #1b2044;
  --red: #e0243c;
  --red-2: #b81f33;
  --gold: #f7b933;
  --gold-2: #d99a12;
  --green: #17a558;
  --blue: #2563eb;
  --ink: #1d2333;
  --ink-soft: #3d4459;
  --muted: #6b7280;
  --paper: #ffffff;
  --paper-2: #f6f7fb;
  --line: #e5e8f0;
  --shadow: 0 10px 30px rgba(12, 14, 29, .12);
  --shadow-lg: 0 18px 44px rgba(12, 14, 29, .22);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", system-ui, -apple-system, sans-serif;
  --maxw: 1200px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  overflow-wrap: break-word;
  /* ruang untuk bar mengambang tanpa menciptakan area kosong */
  padding-bottom: 74px;
}

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

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

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.3rem); }
p { margin: 0 0 1em; }

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

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

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ============ Tombol ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--font); font-size: .95rem; font-weight: 800; letter-spacing: .02em;
  text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-daftar { background: linear-gradient(135deg, var(--gold) 0%, #ffdd70 55%, var(--gold-2) 100%); color: #241a00; box-shadow: 0 6px 18px rgba(247, 185, 51, .45); }
.btn-masuk { background: linear-gradient(135deg, var(--red) 0%, var(--red-2) 100%); color: #fff; box-shadow: 0 6px 18px rgba(224, 36, 60, .4); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .55); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-green { background: linear-gradient(135deg, #1db968, var(--green)); color: #fff; box-shadow: 0 6px 18px rgba(23, 165, 88, .35); }
.btn-blue { background: linear-gradient(135deg, #3b74f0, var(--blue)); color: #fff; box-shadow: 0 6px 18px rgba(37, 99, 235, .35); }
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-lg { padding: 15px 34px; font-size: 1.05rem; }

/* ============ Header ============ */
.topbar {
  background: #07091a; color: #cdd3ea; font-size: .78rem;
  border-bottom: 1px solid rgba(247, 185, 51, .25);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; }
.topbar-left { display: flex; align-items: center; gap: 8px; }
.badge-18 {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 22px; padding: 0 6px; border-radius: 6px;
  background: var(--red); color: #fff; font-weight: 900; font-size: .72rem;
  border: 1px solid #ff5c70;
}
.topbar-note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-right a { color: var(--gold); font-weight: 700; text-decoration: none; }
.topbar-right a:hover { text-decoration: underline; }

.site-header {
  position: sticky; top: 0; z-index: 900;
  background: linear-gradient(180deg, #10142c, #0c0e1d);
  border-bottom: 2px solid rgba(247, 185, 51, .35);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .35);
}
.header-main { display: flex; align-items: center; gap: 14px; padding: 10px 0; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none !important; flex-shrink: 0; }
.logo-mark { width: 42px; height: 42px; flex: 0 0 42px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name { color: #fff; font-weight: 900; font-size: 1.3rem; letter-spacing: .03em; }
.logo-name span { color: var(--gold); }
.logo-tag { color: #93a0c7; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 9px 13px; color: #d7dcef; font-weight: 700; font-size: .92rem;
  border-radius: 9px; text-decoration: none !important;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold); background: rgba(247, 185, 51, .1); }

.header-cta { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none !important;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.icon-btn svg { width: 20px; height: 20px; }

.nav-toggle { display: none; }

/* ============ Hero (beranda) ============ */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(115deg, rgba(10, 12, 26, .96) 0%, rgba(20, 24, 50, .88) 45%, rgba(10, 12, 26, .72) 100%),
    url("../img/hero.jpg") center 30% / cover no-repeat;
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px; align-items: center;
  padding: 58px 0 64px;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(247, 185, 51, .14); border: 1px solid rgba(247, 185, 51, .45);
  color: var(--gold); font-weight: 800; font-size: .8rem; letter-spacing: .08em;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; text-transform: uppercase;
}
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-sub { color: #c6cde6; font-size: 1.05rem; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }

.hero-search { display: flex; max-width: 560px; background: #fff; border-radius: 999px; padding: 5px; box-shadow: var(--shadow-lg); }
.hero-search input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  padding: 10px 16px; font-size: .95rem; color: var(--ink); font-family: var(--font);
}
.hero-search button {
  border: 0; cursor: pointer; border-radius: 999px; padding: 10px 22px;
  background: linear-gradient(135deg, var(--red), var(--red-2)); color: #fff; font-weight: 800; font-family: var(--font);
}

.tag-cloud { margin-top: 16px; }
.tag-cloud-title { color: #8f9ac2; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  color: #e6e9f7; font-size: .8rem; font-weight: 600; padding: 5px 13px; border-radius: 999px;
  cursor: pointer; text-decoration: none !important; transition: all .15s ease;
}
.tag-chip:hover { border-color: var(--gold); color: var(--gold); background: rgba(247, 185, 51, .1); }
.tag-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-badge {
  display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; color: #dfe4f6;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; padding: 7px 12px;
}
.hero-badge svg { width: 16px; height: 16px; flex: 0 0 16px; }

.hero-card {
  background: linear-gradient(160deg, rgba(27, 32, 68, .92), rgba(13, 16, 33, .95));
  border: 1px solid rgba(247, 185, 51, .35); border-radius: 20px; padding: 26px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.hero-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 180px at 85% -10%, rgba(247, 185, 51, .18), transparent 70%);
  pointer-events: none;
}
.hero-card h2 { color: #fff; font-size: 1.15rem; }
.hero-card-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.hero-card-list li { display: flex; gap: 10px; align-items: flex-start; color: #c9d0ea; font-size: .9rem; }
.hero-card-list svg { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; }
.hero-card .btn { width: 100%; }

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

.section-head { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.section-head p { color: var(--muted); margin: 0; }
.section-dark .section-head p { color: #a8b0d4; }
.eyebrow {
  display: inline-block; color: var(--red); font-weight: 900; font-size: .76rem;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px;
}
.section-dark .eyebrow { color: var(--gold); }

/* Kartu keunggulan */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.adv-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column; gap: 10px;
}
.adv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.adv-icon {
  width: 52px; height: 52px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
}
.adv-icon svg { width: 26px; height: 26px; }
.ic-red { background: rgba(224, 36, 60, .1); color: var(--red); }
.ic-gold { background: rgba(247, 185, 51, .14); color: var(--gold-2); }
.ic-green { background: rgba(23, 165, 88, .12); color: var(--green); }
.ic-blue { background: rgba(37, 99, 235, .1); color: var(--blue); }
.adv-card p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

/* Mengapa memilih kami */
.why-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.why-item {
  display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow);
}
.why-num {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #241a00;
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: .9rem;
}
.why-item h3 { font-size: 1rem; margin: 0 0 3px; }
.why-item p { margin: 0; font-size: .88rem; color: var(--ink-soft); }
.why-media { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); border: 4px solid #fff; }
.why-media img { width: 100%; height: 100%; object-fit: cover; }

/* Seluler */
.mobile-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: center; }
.mobile-media { position: relative; }
.mobile-media img { border-radius: 18px; box-shadow: var(--shadow-lg); }
.mobile-float {
  position: absolute; left: -12px; bottom: -14px;
  background: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--line);
}
.mobile-float svg { width: 26px; height: 26px; }
.mobile-float b { font-size: .9rem; display: block; line-height: 1.2; }
.mobile-float small { color: var(--muted); font-size: .74rem; }
.mobile-points { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.mobile-points li { display: flex; gap: 10px; align-items: flex-start; color: #c9d0ea; font-size: .95rem; }
.mobile-points svg { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 1px; }
.pay-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pay-pill {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #e6e9f7;
  font-size: .78rem; font-weight: 700; padding: 6px 13px; border-radius: 999px;
}

/* Testimoni */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card {
  background: #141832; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
}
.testi-stars { color: var(--gold); letter-spacing: 2px; font-size: .95rem; }
.testi-card blockquote { margin: 0; color: #d6dbf0; font-size: .92rem; flex: 1; }
.testi-who { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: #241a00; font-size: .95rem;
}
.av-gold { background: linear-gradient(135deg, var(--gold), #ffdd70); }
.av-red { background: linear-gradient(135deg, #ff6b7f, var(--red)); color: #fff; }
.av-green { background: linear-gradient(135deg, #3ddc8e, var(--green)); color: #fff; }
.av-blue { background: linear-gradient(135deg, #6d97f5, var(--blue)); color: #fff; }
.testi-who b { color: #fff; font-size: .9rem; display: block; line-height: 1.2; }
.testi-who small { color: #8f9ac2; font-size: .76rem; }
.testi-note { text-align: center; color: #7d86ad; font-size: .78rem; margin-top: 22px; margin-bottom: 0; }

/* Glosarium */
.glossary-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 26px; }
.gfilter {
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #d7dcef;
  padding: 7px 16px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: .82rem; font-family: var(--font);
}
.gfilter.is-active, .gfilter:hover { background: var(--gold); border-color: var(--gold); color: #241a00; }
.term-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.term-card {
  background: #141832; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-sm);
  padding: 18px 16px;
}
.term-card h3 { color: var(--gold); font-size: .98rem; margin: 0 0 6px; }
.term-card p { margin: 0; color: #b9c0de; font-size: .82rem; line-height: 1.55; }
.term-card[hidden] { display: none; }

/* Keamanan & privasi */
.sec-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: center; }
.sec-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sec-points li { display: flex; gap: 12px; align-items: flex-start; }
.sec-points svg { width: 24px; height: 24px; flex: 0 0 24px; margin-top: 2px; color: var(--green); }
.sec-points b { display: block; font-size: .98rem; }
.sec-points p { margin: 2px 0 0; font-size: .88rem; color: var(--ink-soft); }
.sec-media img { border-radius: 18px; box-shadow: var(--shadow-lg); }

/* Artikel */
.article-wrap { max-width: 820px; margin: 0 auto; }
.article-featured { border-radius: 18px; overflow: hidden; margin-bottom: 26px; box-shadow: var(--shadow-lg); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .8rem; color: var(--muted); margin-bottom: 18px; }
.article-meta .cat {
  background: rgba(224, 36, 60, .08); color: var(--red); border: 1px solid rgba(224, 36, 60, .25);
  padding: 3px 12px; border-radius: 999px; font-weight: 800; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em;
}
.article-body { font-size: 1.02rem; color: #2a3047; }
.article-body h2 { margin-top: 1.4em; }
.article-body ul li, .article-body ol li { margin-bottom: .4em; }
.article-body .note {
  background: rgba(37, 99, 235, .06); border-left: 4px solid var(--blue);
  padding: 14px 18px; border-radius: 0 10px 10px 0; font-size: .92rem; color: var(--ink-soft);
}
.article-body .warn {
  background: rgba(247, 185, 51, .1); border-left: 4px solid var(--gold-2);
  padding: 14px 18px; border-radius: 0 10px 10px 0; font-size: .92rem; color: var(--ink-soft);
}

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
details.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0; overflow: hidden; box-shadow: var(--shadow);
}
details.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 52px 16px 18px; font-weight: 800; font-size: .98rem;
  position: relative; color: var(--ink);
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: rgba(224, 36, 60, .08); color: var(--red);
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.05rem;
}
details.faq-item[open] summary::after { content: "−"; }
details.faq-item[open] summary { color: var(--red); }
.faq-item-body { padding: 0 18px 16px; color: var(--ink-soft); font-size: .93rem; }
.faq-item-body p { margin: 0; }

/* CTA strip */
.cta-strip {
  background:
    radial-gradient(600px 300px at 12% 0%, rgba(224, 36, 60, .35), transparent 60%),
    radial-gradient(600px 300px at 88% 100%, rgba(247, 185, 51, .22), transparent 60%),
    var(--bg-dark-2);
  color: #fff; text-align: center; padding: 50px 0;
}
.cta-strip h2 { color: #fff; }
.cta-strip p { color: #b7bee0; max-width: 620px; margin: 0 auto 22px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-legal { margin-top: 16px; font-size: .76rem; color: #7d86ad; }

/* ============ Halaman dalam ============ */
.page-hero {
  background:
    linear-gradient(115deg, rgba(10, 12, 26, .94) 0%, rgba(20, 24, 50, .86) 55%, rgba(10, 12, 26, .7) 100%),
    var(--bg-dark);
  color: #fff; padding: 38px 0 42px; position: relative; overflow: hidden;
}
.page-hero.with-img {
  background:
    linear-gradient(115deg, rgba(10, 12, 26, .95) 0%, rgba(20, 24, 50, .85) 55%, rgba(10, 12, 26, .55) 100%),
    var(--page-img, none) center / cover no-repeat;
}
.page-hero h1 { color: #fff; margin-bottom: .35em; }
.page-hero .lead { color: #c3cae8; max-width: 720px; font-size: 1.02rem; margin: 0; }
.page-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; font-size: .78rem; color: #939dc7; }

.breadcrumb { padding: 12px 0; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: .8rem; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; color: #b6bccf; font-weight: 900; }
.breadcrumb a { color: var(--ink-soft); font-weight: 700; text-decoration: none; }
.breadcrumb a:hover { color: var(--red); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--red); font-weight: 700; }

.content-split { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; padding: 44px 0; }
.content-full { max-width: 880px; margin: 0 auto; padding: 44px 0; }

/* cegah konten (tabel/gambar) memaksa kolom grid melebihi layar */
.content-split > *, .content-full > *, .article-body, .article-featured { min-width: 0; max-width: 100%; }

/* Sidebar */
.side-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px;
}
.side-card h2 { font-size: 1.02rem; border-bottom: 2px solid var(--gold); display: table; padding-bottom: 6px; margin-bottom: 14px; }
.side-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.side-links a {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px;
  color: var(--ink); font-weight: 700; font-size: .88rem; text-decoration: none !important;
}
.side-links a:hover { background: var(--paper-2); color: var(--red); }
.side-links .arr { color: var(--gold-2); font-weight: 900; }
.side-cta {
  background: linear-gradient(150deg, #141832, #0c0e1d); border: 1px solid rgba(247, 185, 51, .35);
  color: #fff; text-align: center;
}
.side-cta p { color: #b7bee0; font-size: .86rem; }
.side-cta .btn { width: 100%; }

/* Kartu promo */
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promo-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .18s ease;
}
.promo-card:hover { transform: translateY(-4px); }
.promo-media { position: relative; }
.promo-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.promo-badge {
  position: absolute; top: 12px; left: 12px;
  background: linear-gradient(135deg, var(--red), var(--red-2)); color: #fff;
  font-size: .7rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; box-shadow: 0 4px 12px rgba(224, 36, 60, .45);
}
.promo-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.promo-body h2, .promo-body h3 { font-size: 1.05rem; margin: 0; }
.promo-body p { color: var(--ink-soft); font-size: .86rem; margin: 0; flex: 1; }
.promo-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.promo-meta span {
  font-size: .72rem; font-weight: 800; color: var(--ink-soft);
  background: var(--paper-2); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px;
}
.promo-card .btn { margin-top: 6px; }

/* Tabel syarat */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); border: 1px solid var(--line); max-width: 100%; }
table.ttable { width: 100%; border-collapse: collapse; background: #fff; font-size: .88rem; min-width: 480px; }
.ttable th, .ttable td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.ttable th { background: var(--bg-dark-2); color: #fff; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.ttable tr:last-child td { border-bottom: 0; }
.ttable td:first-child { font-weight: 800; color: var(--ink); white-space: nowrap; }

/* Langkah */
.steps { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; padding: 14px 16px 14px 62px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step); position: absolute; left: 14px; top: 14px; width: 34px; height: 34px;
  border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--red-2)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 900;
}
.steps li b { display: block; }
.steps li p { margin: 2px 0 0; font-size: .88rem; color: var(--ink-soft); }

/* Grid kategori beranda */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4 / 5; display: flex; align-items: flex-end; color: #fff; text-decoration: none !important;
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12, 14, 29, 0) 35%, rgba(12, 14, 29, .92) 100%);
}
.cat-card-body { position: relative; z-index: 2; padding: 18px; width: 100%; }
.cat-card-body h3 { color: #fff; margin: 0 0 4px; font-size: 1.08rem; }
.cat-card-body p { margin: 0 0 10px; font-size: .8rem; color: #ccd3ef; }
.cat-card-body .btn { width: 100%; }

/* ============ Formulir auth ============ */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 48px 0; min-height: 60vh; }
.auth-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px 30px;
  box-shadow: var(--shadow-lg); max-width: 460px; margin: 0 auto; width: 100%;
}
.auth-card h1, .auth-card h2 { font-size: 1.5rem; }
.auth-card .sub { color: var(--muted); font-size: .88rem; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 800; font-size: .84rem; margin-bottom: 6px; color: var(--ink); }
.field input[type="text"], .field input[type="password"], .field input[type="tel"] {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: .95rem; font-family: var(--font); color: var(--ink); background: var(--paper-2); outline: none;
  transition: border-color .15s ease;
}
.field input:focus { border-color: var(--gold-2); background: #fff; }
.field-hint { font-size: .74rem; color: var(--muted); margin-top: 4px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--ink-soft); margin-bottom: 18px; }
.check-row input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--red); }
.auth-card .btn { width: 100%; }
.auth-alt { text-align: center; font-size: .86rem; color: var(--muted); margin: 16px 0 0; }
.auth-alt a { font-weight: 800; color: var(--red); }
.auth-note {
  background: rgba(247, 185, 51, .1); border: 1px dashed rgba(217, 154, 18, .5);
  padding: 10px 14px; border-radius: 10px; font-size: .76rem; color: var(--ink-soft); margin-top: 16px;
}
.auth-side h2 { color: #fff; }
.auth-side p { color: #c3cae8; font-size: .95rem; }
.auth-points { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 12px; }
.auth-points li { display: flex; gap: 10px; align-items: flex-start; color: #d3d9f2; font-size: .9rem; }
.auth-points svg { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 1px; }

/* ============ Footer ============ */
.site-footer { background: #07091a; color: #aab2d4; font-size: .86rem; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 30px; padding: 46px 0 34px; }
.footer-brand p { color: #8d96bd; font-size: .84rem; margin: 12px 0 16px; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo .logo-mark { width: 38px; height: 38px; flex: 0 0 38px; }
.footer-logo b { color: #fff; font-size: 1.15rem; }
.footer-logo b span { color: var(--gold); }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.f-badge {
  border: 1px solid rgba(255, 255, 255, .18); color: #d7dcef; font-size: .7rem; font-weight: 800;
  padding: 5px 11px; border-radius: 8px; letter-spacing: .04em;
}
.f-badge.red { border-color: rgba(224, 36, 60, .6); color: #ff8b9b; }
.f-badge.green { border-color: rgba(23, 165, 88, .5); color: #4fd894; }
.f-badge.gold { border-color: rgba(247, 185, 51, .5); color: var(--gold); }
.site-footer h2 { color: #fff; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { color: #aab2d4; text-decoration: none; }
.footer-links a:hover { color: var(--gold); text-decoration: underline; }
.footer-methods { display: flex; flex-wrap: wrap; gap: 7px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.fm-pill {
  border: 1px solid rgba(255, 255, 255, .16); color: #c7cde8; font-size: .72rem; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
}
.footer-legal { padding: 18px 0 26px; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-legal p { color: #767fa6; font-size: .76rem; margin: 0 0 8px; }
.footer-legal .fine { color: #5d668c; }
.copyright { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 14px; color: #5d668c; font-size: .76rem; }

/* ============ Bar mengambang (gaya slot + koin) ============ */
.floatbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 990;
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .03) 0 14px, transparent 14px 28px),
    linear-gradient(180deg, #171b38, #0a0c1c);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -8px 26px rgba(0, 0, 0, .45);
}
.floatbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 9px 14px;
  display: flex; align-items: center; gap: 14px;
}
.floatbar-reels { display: flex; gap: 5px; flex: 0 0 auto; }
.reel {
  width: 30px; height: 40px; border-radius: 7px; overflow: hidden; position: relative;
  background: linear-gradient(180deg, #232849, #12152e);
  border: 2px solid var(--gold-2); box-shadow: inset 0 0 8px rgba(0, 0, 0, .6);
}
.reel-strip {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; flex-direction: column; align-items: center; font-size: 17px; line-height: 40px;
  animation: reelspin 1.15s linear infinite;
}
.reel-strip span { height: 40px; }
.reel:nth-child(2) .reel-strip { animation-duration: 1.45s; }
.reel:nth-child(3) .reel-strip { animation-duration: .95s; }
@keyframes reelspin {
  0% { transform: translateY(0); }
  100% { transform: translateY(-240px); }
}
.floatbar-label { color: #e8ebfa; font-weight: 800; font-size: .8rem; line-height: 1.25; display: none; }
.floatbar-label small { display: block; color: var(--gold); font-size: .68rem; font-weight: 700; }
.floatbar-actions { display: flex; gap: 10px; margin-left: auto; align-items: center; position: relative; }
.btn-float {
  position: relative; overflow: visible;
  padding: 11px 30px; border-radius: 12px; border: 0; cursor: pointer;
  font-family: var(--font); font-weight: 900; font-size: 1rem; letter-spacing: .06em;
  text-decoration: none !important; white-space: nowrap;
}
.btn-float-daftar {
  background: linear-gradient(180deg, #ffdd70, var(--gold) 55%, var(--gold-2));
  color: #241a00; border: 2px solid #fff3cf;
  box-shadow: 0 0 0 3px rgba(247, 185, 51, .28), 0 5px 16px rgba(247, 185, 51, .5);
  animation: glowPulse 1.8s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(247, 185, 51, .22), 0 5px 16px rgba(247, 185, 51, .45); transform: translateY(0); }
  50% { box-shadow: 0 0 0 6px rgba(247, 185, 51, .38), 0 8px 22px rgba(247, 185, 51, .65); transform: translateY(-2px); }
}
.btn-float-masuk {
  background: linear-gradient(180deg, var(--red), var(--red-2)); color: #fff;
  border: 2px solid #ff5c70; box-shadow: 0 5px 16px rgba(224, 36, 60, .5);
}
.coin {
  position: absolute; width: 16px; height: 16px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 32% 30%, #ffe9a8, var(--gold) 55%, #b87f0a);
  box-shadow: 0 0 8px rgba(247, 185, 51, .8);
  opacity: 0; animation: coinUp 2.6s ease-in infinite;
}
.coin::after {
  content: "Rp"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 7px; font-weight: 900; color: #7a5406;
}
.coin.c1 { left: 12%; bottom: 6px; animation-delay: 0s; }
.coin.c2 { left: 30%; bottom: 6px; width: 12px; height: 12px; animation-delay: .8s; }
.coin.c3 { left: 55%; bottom: 6px; animation-delay: 1.5s; }
.coin.c4 { left: 78%; bottom: 6px; width: 13px; height: 13px; animation-delay: 2.1s; }
@keyframes coinUp {
  0% { opacity: 0; transform: translateY(0) scale(.6) rotate(0deg); }
  18% { opacity: 1; }
  60% { opacity: .9; }
  100% { opacity: 0; transform: translateY(-56px) scale(1.05) rotate(180deg); }
}

/* ============ Pencarian ============ */
.search-overlay {
  position: fixed; inset: 0; z-index: 1200; background: rgba(7, 9, 22, .82);
  backdrop-filter: blur(6px); display: none; padding: 8vh 16px 16px; overflow-y: auto;
}
.search-overlay.is-open { display: block; }
.search-panel {
  max-width: 680px; margin: 0 auto; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  overflow: hidden; border: 1px solid var(--line);
}
.search-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.search-head svg { width: 20px; height: 20px; color: var(--muted); flex: 0 0 20px; }
#searchInput {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font-size: 1.05rem; font-family: var(--font); color: var(--ink);
}
.search-close {
  border: 0; background: rgba(224, 36, 60, .1); color: var(--red); font-weight: 900;
  width: 34px; height: 34px; border-radius: 9px; cursor: pointer; font-size: 1rem;
}
.search-hint { padding: 10px 16px; color: var(--muted); font-size: .78rem; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.search-hint button {
  border: 1px solid var(--line); background: var(--paper-2); color: var(--ink-soft);
  font-size: .74rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; cursor: pointer; font-family: var(--font);
}
.search-hint button:hover { border-color: var(--gold-2); color: var(--ink); }
.search-results { max-height: 52vh; overflow-y: auto; }
.sr-item { display: block; padding: 13px 18px; border-bottom: 1px solid var(--line); text-decoration: none !important; }
.sr-item:hover { background: var(--paper-2); }
.sr-item b { color: var(--ink); font-size: .92rem; display: block; }
.sr-item small { color: var(--muted); font-size: .78rem; }
.sr-item .sr-cat { color: var(--red); font-weight: 800; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; margin-right: 6px; }
.sr-empty { padding: 26px 18px; text-align: center; color: var(--muted); font-size: .88rem; }

/* ============ Utilitas ============ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ============ Responsif ============ */
@media (max-width: 1080px) {
  .term-grid { grid-template-columns: repeat(3, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav a { padding: 9px 9px; font-size: .86rem; }
}

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; padding: 44px 0 50px; }
  .hero-card { max-width: 560px; }
  .why-wrap, .mobile-wrap, .sec-grid, .auth-wrap { grid-template-columns: 1fr; }
  .mobile-media { max-width: 560px; }
  .content-split { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    background: #10142c; border-bottom: 2px solid rgba(247, 185, 51, .35);
    box-shadow: 0 18px 30px rgba(0, 0, 0, .4); display: none; max-height: 70vh; overflow-y: auto;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 14px 16px; }
  .main-nav a { padding: 12px 14px; font-size: 1rem; }
  .site-header { position: sticky; }
  .header-main { position: relative; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .section { padding: 40px 0; }
  .adv-grid, .term-grid, .testi-grid, .promo-grid, .grid-2 { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card { aspect-ratio: 16 / 10; }
  .footer-top { grid-template-columns: 1fr; gap: 22px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .topbar-note { display: none; }
  .header-cta .btn { display: none; }
  .floatbar-label { display: none !important; }
  .floatbar-reels { display: none; }
  .floatbar-inner { padding: 8px 12px; gap: 10px; }
  .floatbar-actions { gap: 8px; }
  .btn-float { flex: 1 1 auto; padding: 11px 10px; font-size: .95rem; }
  body { padding-bottom: 76px; }
  .hero-search { flex-direction: column; border-radius: 16px; padding: 8px; gap: 6px; }
  .hero-search button { width: 100%; }
  .mobile-float { left: 8px; bottom: 8px; }
}

@media (max-width: 380px) {
  .logo-name { font-size: 1.05rem; }
  .logo-tag { display: none; }
}

/* Gerak ringan untuk pengguna yang sensitif */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* Mode uji statis (?diam=1): hentikan animasi untuk pengujian tangkapan layar */
body.no-anim *, body.no-anim *::before, body.no-anim *::after {
  animation: none !important;
  transition: none !important;
}
