/* ==========================================================================
   Warung168 — Casino theme (merah · emas · hijau · biru · hitam · putih)
   Mobile-first, fully responsive. WordPress-style class names.
   ========================================================================== */

:root {
  --bg: #0b0e16;
  --bg-2: #10141f;
  --card: #151b2a;
  --card-2: #1a2133;
  --line: #273044;
  --red: #d81e34;
  --red-2: #a80f26;
  --gold: #f5c24b;
  --gold-2: #ffd86e;
  --green: #17a34a;
  --green-2: #0e7a37;
  --blue: #2f6bff;
  --white: #ffffff;
  --text: #e8ebf3;
  --muted: #9aa3b8;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

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

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

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

h1, h2, h3, h4 { line-height: 1.25; color: var(--white); margin: 0 0 0.6em; }
h1 { font-size: 1.75rem; font-weight: 800; }
h2 { font-size: 1.45rem; font-weight: 800; }
h3 { font-size: 1.08rem; font-weight: 700; }

p { margin: 0 0 1em; }

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

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

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  border: 0;
}

.skip-link:focus {
  position: fixed; top: 10px; left: 10px;
  width: auto; height: auto; clip: auto;
  z-index: 3000; background: var(--gold); color: #20140a;
  padding: 10px 18px; border-radius: 8px; font-weight: 700;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); filter: brightness(1.06); }

.btn-register {
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, #e2a72e);
  color: #231303;
  box-shadow: 0 8px 24px rgba(245, 194, 75, 0.35);
}

.btn-login {
  background: linear-gradient(135deg, #1fbf5f, var(--green-2));
  color: #fff;
  box-shadow: 0 8px 22px rgba(23, 163, 74, 0.32);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-lg { padding: 14px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }

.text-link { color: var(--gold-2); font-weight: 700; font-size: 0.92rem; }

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

.header-inner {
  max-width: 1160px; margin: 0 auto;
  padding: 10px 18px;
  display: flex; align-items: center; gap: 14px;
}

.site-title {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; color: var(--white); font-size: 1.18rem;
  white-space: nowrap;
}
.site-title:hover { text-decoration: none; }
.brand-name { color: var(--white); }
.brand-dot { color: var(--gold); }

.main-navigation { margin-left: auto; }
.menu { display: none; list-style: none; margin: 0; padding: 0; gap: 4px; }

.header-actions {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto;
}
.main-navigation + .header-actions { margin-left: 0; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text); cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.12); }

.header-actions .btn { padding: 9px 16px; font-size: 0.85rem; }

.menu-toggle { position: relative; }
.menu-toggle .bar,
.menu-toggle .bar::before {
  display: block; width: 18px; height: 2px;
  background: var(--text); border-radius: 2px;
  content: ""; position: absolute; left: 10px;
}
.menu-toggle .bar { top: 13px; }
.menu-toggle .bar::before { top: 8px; left: 0; }
.menu-toggle .bar + .bar { top: 21px; }

/* Mobile drawer */
.main-navigation.open {
  display: block;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.main-navigation.open .menu { display: block; }
.main-navigation .menu-item a {
  display: block;
  padding: 13px 20px;
  color: var(--text);
  border-left: 3px solid transparent;
  font-weight: 600;
}
.main-navigation .menu-item a:hover,
.main-navigation .menu-item a.active {
  color: var(--gold-2);
  border-left-color: var(--gold);
  background: rgba(245, 194, 75, 0.06);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */
.site-content { padding-bottom: 0; }
.breadcrumbs { padding: 14px 0 0; }
.breadcrumb-list {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0; padding: 0; font-size: 0.82rem; color: var(--muted);
}
.breadcrumb-item { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb-item a { color: var(--muted); }
.breadcrumb-item a:hover { color: var(--gold-2); }
.breadcrumb-item .sep { color: var(--gold); }
.breadcrumbs + .content-area { padding-top: 6px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 64px 0 56px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url("/assets/img/hero-casino.jpg");
  background-size: cover; background-position: center;
  filter: saturate(1.05);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(1000px 420px at 50% -10%, rgba(216, 30, 52, 0.35), transparent 60%),
    linear-gradient(180deg, rgba(11, 14, 22, 0.82), rgba(11, 14, 22, 0.94) 70%, var(--bg));
}
.hero-inner { position: relative; }

.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold-2);
  margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(1.7rem, 5.4vw, 3rem);
  color: var(--white);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}
.hero-sub {
  max-width: 640px; margin: 0 auto 26px;
  color: #cfd5e4; font-size: 1.02rem;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 18px;
}
.hero-chips {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin: 0; padding: 0;
}
.hero-chips li {
  font-size: 0.78rem; font-weight: 600; color: #d9def0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 5px 12px; border-radius: 999px; margin: 0;
}

.badge-18 {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 26px; padding: 0 8px;
  border-radius: 7px;
  background: var(--red); color: #fff;
  font-weight: 800; font-size: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.badge-18.big { min-width: 84px; height: 52px; font-size: 1.5rem; border-radius: 12px; }
.badge-rg {
  display: inline-flex; align-items: center;
  border: 1px solid var(--gold); color: var(--gold-2);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 999px;
}

/* Search strip under hero */
.search-strip {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  padding: 13px 0;
}
.strip-inner { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.strip-label {
  font-size: 0.78rem; font-weight: 700; color: var(--gold-2);
  text-transform: uppercase; letter-spacing: 0.07em;
}

/* Tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block;
  font-size: 0.8rem; font-weight: 600;
  color: #dfe4f2;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  transition: all 0.15s ease;
}
.tag:hover {
  color: #231303; background: var(--gold);
  border-color: var(--gold); text-decoration: none;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 56px 0; }
.section-dark { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-red {
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(216, 30, 52, 0.22), transparent 60%),
    var(--bg-2);
}

.section-head { max-width: 720px; margin: 0 auto 34px; text-align: center; }
.section-kicker {
  font-size: 0.78rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gold); margin-bottom: 8px;
}
.section-head p { color: var(--muted); }
.section-note { font-size: 0.8rem; color: var(--muted); }

/* Steps */
.steps-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
  counter-reset: step;
}
.step-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px 20px;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  color: #fff; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(216, 30, 52, 0.35);
  margin-bottom: 12px;
}
.step-card p { color: var(--muted); font-size: 0.92rem; }

/* Feature / mini / quote cards */
.cards-grid { display: grid; gap: 16px; }
.feature-card, .mini-card, .quote-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.mini-card { display: block; color: inherit; transition: all 0.15s ease; }
.mini-card:hover { border-color: var(--gold); transform: translateY(-3px); text-decoration: none; }
.mini-card p { color: var(--muted); font-size: 0.86rem; }
.feature-card p { color: var(--muted); font-size: 0.9rem; }

.feature-icon, .mini-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px;
  font-size: 1.3rem; margin-bottom: 12px;
}
.icon-gold { background: rgba(245, 194, 75, 0.14); border: 1px solid rgba(245, 194, 75, 0.4); }
.icon-red { background: rgba(216, 30, 52, 0.15); border: 1px solid rgba(216, 30, 52, 0.45); }
.icon-green { background: rgba(23, 163, 74, 0.15); border: 1px solid rgba(23, 163, 74, 0.45); }
.icon-blue { background: rgba(47, 107, 255, 0.15); border: 1px solid rgba(47, 107, 255, 0.45); }

/* Why section */
.why-layout { display: grid; gap: 24px; }
.why-text > p { color: #cfd5e4; }
.check-list { list-style: none; padding: 0; }
.check-list li {
  position: relative; padding-left: 30px; color: #cfd5e4;
}
.check-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(23, 163, 74, 0.18); border: 1px solid rgba(23, 163, 74, 0.55);
  color: #3ddc7f; font-size: 0.72rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.promo-read-box {
  margin-top: 20px;
  background: linear-gradient(135deg, rgba(245, 194, 75, 0.09), rgba(216, 30, 52, 0.07));
  border: 1px solid rgba(245, 194, 75, 0.35);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.promo-read-box h3 { color: var(--gold-2); }
.promo-read-box p { margin: 0; color: #cfd5e4; font-size: 0.94rem; }

.why-stats { display: grid; gap: 14px; align-content: start; }
.stat-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px;
}
.stat-num {
  font-size: 2rem; font-weight: 800; color: var(--gold);
  min-width: 54px; text-align: center;
  text-shadow: 0 0 22px rgba(245, 194, 75, 0.45);
}
.stat-label { font-size: 0.85rem; color: var(--muted); }

/* Mobile experience */
.mobile-layout { display: grid; gap: 30px; align-items: center; }
.mobile-text .small-note { color: var(--muted); font-size: 0.85rem; }

.phone-mockup {
  width: 240px; margin: 0 auto;
  border: 10px solid #1c2333;
  border-radius: 34px;
  background: var(--bg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 0 0 2px #2c3550;
  overflow: hidden;
}
.phone-notch {
  width: 96px; height: 16px; margin: 6px auto 0;
  background: #1c2333; border-radius: 999px;
}
.phone-screen { padding: 10px 12px 16px; }
.ps-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.ps-logo {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--red-2), var(--red));
  color: var(--gold-2); font-weight: 800; font-size: 0.85rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.ps-menu { flex: 1; height: 7px; border-radius: 4px; background: #232c42; }
.ps-hero {
  border-radius: 12px; padding: 14px 12px;
  background:
    radial-gradient(160px 90px at 30% 0%, rgba(216, 30, 52, 0.5), transparent 70%),
    #171f31;
  margin-bottom: 10px;
}
.ps-chip {
  display: inline-block; font-size: 0.6rem; font-weight: 800;
  background: var(--red); color: #fff; border-radius: 5px; padding: 2px 7px;
  margin-bottom: 8px;
}
.ps-line { height: 8px; border-radius: 4px; background: #e8ebf3; margin-bottom: 7px; }
.ps-line.strong { width: 85%; height: 11px; }
.ps-line.w80 { width: 80%; }
.ps-line.w60 { width: 60%; background: #4a5674; }
.ps-btn {
  height: 26px; border-radius: 999px; margin-top: 8px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 4px 12px rgba(245, 194, 75, 0.4);
}
.ps-btn.green { background: linear-gradient(135deg, #1fbf5f, var(--green-2)); }
.ps-btn.w-half { width: 55%; margin-top: 7px; }
.ps-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ps-card {
  height: 58px; border-radius: 10px;
  background: #1a2133; border: 1px solid #273044;
}

/* Quotes */
.quote-card { margin: 0; }
.quote-card blockquote { margin: 0 0 14px; }
.quote-card blockquote p { color: #dbe0ee; font-size: 0.95rem; }
.quote-card figcaption {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: 0.82rem; font-weight: 600;
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue), #1b3fa8);
  color: #fff; font-size: 0.75rem; font-weight: 800; flex: none;
}

/* Calculator */
.calc-widget {
  display: grid; gap: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.calc-field { margin-bottom: 14px; }
.calc-field label {
  display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px;
}
.calc-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--white);
  font-size: 1rem;
  font-family: inherit;
}
.calc-field input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.calc-note { font-size: 0.78rem; color: var(--muted); }

.calc-result {
  background: linear-gradient(160deg, rgba(245, 194, 75, 0.08), rgba(216, 30, 52, 0.06));
  border: 1px solid rgba(245, 194, 75, 0.3);
  border-radius: 12px; padding: 18px;
}
.calc-result h3 { color: var(--gold-2); }
.calc-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}
.calc-row:last-of-type { border-bottom: 0; }
.calc-row strong { color: var(--gold-2); white-space: nowrap; }
.calc-reminder { margin: 10px 0 0; font-size: 0.83rem; color: var(--muted); }

/* Responsible gaming */
.rg-layout { display: grid; gap: 26px; }
.rg-text > p { color: #cfd5e4; }
.rg-panel {
  background: var(--card);
  border: 1px solid rgba(216, 30, 52, 0.5);
  border-radius: var(--radius);
  padding: 24px 22px;
  text-align: center;
  align-self: start;
}
.rg-panel .badge-18 { margin-bottom: 12px; }
.rg-panel p { color: var(--muted); font-size: 0.9rem; }

/* FAQ */
.faq-list { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.faq-q {
  display: flex; align-items: baseline; gap: 12px;
  padding: 16px 18px;
  cursor: pointer; list-style: none;
  font-weight: 700; color: var(--white); font-size: 0.96rem;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+"; margin-left: auto; color: var(--gold);
  font-size: 1.3rem; font-weight: 400; flex: none;
}
.faq-item[open] .faq-q::after { content: "\2212"; }
.faq-idx {
  color: var(--gold); font-size: 0.8rem; font-weight: 800; flex: none;
}
.faq-a { padding: 0 18px 16px 44px; color: var(--muted); font-size: 0.92rem; }
.faq-a p { margin: 0; }

/* --------------------------------------------------------------------------
   Article pages (entry-content)
   -------------------------------------------------------------------------- */
.content-area { padding: 26px 18px 40px; }
article.post { max-width: 860px; margin: 0 auto; }

.entry-kicker {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 6px;
}
.entry-title { font-size: clamp(1.4rem, 4.4vw, 2.1rem); }
.entry-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 0.8rem; color: var(--muted); margin-bottom: 20px;
}

.post-thumb { margin: 0 0 24px; }
.post-thumb img {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--line); display: block;
}
.post-thumb figcaption {
  font-size: 0.75rem; color: var(--muted); margin-top: 8px; text-align: right;
}

.entry-content { font-size: 0.98rem; color: #d3d9e8; }
.entry-content > p.lead {
  font-size: 1.06rem; color: #e8ebf3; font-weight: 500;
  border-left: 3px solid var(--gold); padding-left: 16px;
}
.entry-content h2 {
  font-size: 1.3rem; margin: 1.6em 0 0.6em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--line);
}
.entry-content h2::before {
  content: ""; display: inline-block; width: 8px; height: 20px;
  background: linear-gradient(180deg, var(--gold), var(--red));
  border-radius: 3px; margin-right: 10px; vertical-align: -3px;
}
.entry-content h3 { color: var(--gold-2); margin-top: 1.3em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content strong { color: var(--white); }
.entry-content em { color: #e8ebf3; }

.toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px; margin: 0 0 24px;
}
.toc h2 { font-size: 1rem; border: 0; margin: 0 0 8px; padding: 0; color: var(--gold-2); }
.toc h2::before { display: none; }
.toc ol { margin: 0; padding-left: 1.2em; font-size: 0.9rem; }
.toc a { color: #d3d9e8; text-decoration: none; }
.toc a:hover { color: var(--gold-2); }

.info-box, .warn-box {
  border-radius: var(--radius);
  padding: 18px 20px; margin: 1.4em 0;
}
.info-box {
  background: rgba(47, 107, 255, 0.08);
  border: 1px solid rgba(47, 107, 255, 0.35);
}
.warn-box {
  background: rgba(216, 30, 52, 0.08);
  border: 1px solid rgba(216, 30, 52, 0.4);
}
.info-box h3, .warn-box h3 { color: var(--gold-2); margin-top: 0; }
.info-box p, .warn-box p, .info-box li { color: #cfd5e4; }
.info-box ul, .warn-box ul { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 1.2em 0; border-radius: 12px; border: 1px solid var(--line); }
.terms-table {
  width: 100%; border-collapse: collapse; font-size: 0.88rem;
  background: var(--card); min-width: 480px;
}
.terms-table caption {
  caption-side: bottom; padding: 10px 14px;
  font-size: 0.75rem; color: var(--muted); text-align: left;
  border-top: 1px solid var(--line);
}
.terms-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.terms-table tr:last-child td { border-bottom: 0; }
.terms-table td:first-child { color: var(--gold-2); font-weight: 700; white-space: normal; width: 38%; }

.read-list li { margin-bottom: 0.8em; }

.entry-footer { margin-top: 34px; }
.entry-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  background: linear-gradient(135deg, rgba(245, 194, 75, 0.1), rgba(216, 30, 52, 0.09));
  border: 1px solid rgba(245, 194, 75, 0.35);
  border-radius: var(--radius);
  padding: 22px 22px;
}
.entry-cta .cta-text { flex: 1 1 320px; }
.entry-cta h3 { color: var(--gold-2); }
.entry-cta p { margin: 0; color: #cfd5e4; font-size: 0.92rem; }
.entry-cta .btn { flex: none; }

.related-block {
  margin-top: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.related-block h3 { font-size: 0.95rem; color: var(--white); }
.related-block ul { list-style: none; margin: 0; padding: 0; }
.related-block a {
  color: #d3d9e8; font-size: 0.9rem; text-decoration: none;
  display: block; padding: 7px 0; border-bottom: 1px dashed var(--line);
}
.related-block li:last-child a { border-bottom: 0; }
.related-block a:hover { color: var(--gold-2); }

/* Promo hub */
.promo-grid {
  display: grid; gap: 16px;
  max-width: 860px; margin: 0 auto 26px;
  padding: 0 18px;
}
.promo-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  transition: all 0.15s ease;
}
.promo-card:hover { border-color: var(--gold); transform: translateY(-3px); text-decoration: none; }
.promo-media { position: relative; }
.promo-media img { width: 100%; display: block; aspect-ratio: 16 / 10; object-fit: cover; }
.promo-tag {
  position: absolute; left: 12px; top: 12px;
  background: rgba(11, 14, 22, 0.85);
  border: 1px solid var(--gold);
  color: var(--gold-2);
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 999px;
}
.promo-body { padding: 16px 18px 18px; }
.promo-body h3 { font-size: 1.05rem; }
.promo-body p { color: var(--muted); font-size: 0.88rem; margin-bottom: 8px; }
.hub-note { max-width: 860px; margin: 0 auto; padding: 0 18px; }
.hub-note .warn-box { margin: 0; }

/* --------------------------------------------------------------------------
   Auth pages (daftar / login)
   -------------------------------------------------------------------------- */
.page-auth { max-width: 980px; margin: 0 auto; }
.auth-layout { display: grid; gap: 24px; }
.auth-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 0.86rem; font-weight: 700; margin-bottom: 6px; }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--white);
  font-size: 0.98rem;
  font-family: inherit;
}
.form-field input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.form-field input:invalid:not(:placeholder-shown) { border-color: rgba(216, 30, 52, 0.6); }
.field-hint { font-size: 0.75rem; color: var(--muted); margin: 5px 0 0; }

.form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold); flex: none; }
.form-check label { font-weight: 400; font-size: 0.84rem; color: var(--muted); margin: 0; }

.form-msg {
  border-radius: 10px; padding: 11px 14px;
  font-size: 0.86rem; font-weight: 600;
  background: rgba(216, 30, 52, 0.14);
  border: 1px solid rgba(216, 30, 52, 0.5);
  color: #ffb3bd;
}
.form-msg.ok {
  background: rgba(23, 163, 74, 0.13);
  border-color: rgba(23, 163, 74, 0.5);
  color: #8fe6b0;
}

.auth-alt { text-align: center; font-size: 0.88rem; color: var(--muted); margin: 16px 0 0; }
.auth-note { font-size: 0.78rem; color: var(--muted); margin: 14px 0 0; }

.auth-side { display: grid; gap: 16px; align-content: start; }
.side-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.side-block h2 { font-size: 0.98rem; color: var(--gold-2); }
.side-block p, .side-block li { color: var(--muted); font-size: 0.88rem; }
.side-warn { border-color: rgba(216, 30, 52, 0.5); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #080a10;
  border-top: 1px solid var(--line);
  padding: 44px 0 0;
}
.footer-grid {
  display: grid; gap: 28px;
  padding-bottom: 30px;
}
.footer-about p { color: var(--muted); font-size: 0.86rem; margin: 12px 0 14px; }
.footer-badges { display: flex; gap: 10px; }
.footer-col h3 {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--gold-2);
}
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu a {
  color: var(--muted); font-size: 0.88rem; text-decoration: none;
  display: inline-block; padding: 5px 0;
}
.footer-menu a:hover { color: var(--gold-2); }

.footer-tags { border-top: 1px solid var(--line); padding: 20px 0; }
.footer-tags h3 {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--gold-2); margin-bottom: 10px;
}
.footer-tags .tag { font-size: 0.74rem; padding: 5px 11px; }

.footer-legal { border-top: 1px solid var(--line); padding: 18px 0 22px; }
.footer-legal p { color: #77809a; font-size: 0.76rem; margin-bottom: 10px; }
.footer-legal .copyright { margin-bottom: 0; text-align: center; color: #5d6680; }

/* --------------------------------------------------------------------------
   Floating CTA (slot style + coins) — fixed, tanpa ruang kosong ekstra
   -------------------------------------------------------------------------- */
.float-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1200;
  display: flex; justify-content: center;
  padding: 0 10px calc(8px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.float-cta-inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: 10px;
  background: rgba(13, 17, 27, 0.94);
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  padding: 8px 10px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.6), 0 0 22px rgba(245, 194, 75, 0.22);
  max-width: 100%;
}

.float-slot { display: flex; gap: 4px; padding: 0 4px; }
.reel {
  width: 26px; height: 34px;
  overflow: hidden; border-radius: 7px;
  background: linear-gradient(180deg, #1c2333, #121828);
  border: 1px solid #2c3550;
  position: relative;
}
.reel::before {
  content: "7\A ★\A ◆\A 7\A ★";
  white-space: pre;
  position: absolute; left: 0; right: 0; top: 0;
  height: 34px; line-height: 34px;
  text-align: center;
  font-weight: 800; font-size: 0.95rem;
  color: var(--gold-2);
}
.reel.r1::before { animation: reel-spin 0.9s steps(5) infinite; color: var(--gold-2); }
.reel.r2::before { animation: reel-spin 1.15s steps(5) infinite; color: #ff738d; }
.reel.r3::before { animation: reel-spin 1.35s steps(5) infinite; color: #4fe08a; }
@keyframes reel-spin {
  0% { transform: translateY(0); }
  100% { transform: translateY(-170px); }
}

.float-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  font-weight: 800; font-size: 0.92rem; letter-spacing: 0.05em;
  padding: 12px 22px;
  min-width: 108px;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.float-btn:hover { text-decoration: none; transform: translateY(-2px); filter: brightness(1.08); }
.float-register {
  background: linear-gradient(135deg, #ffd86e, var(--gold) 55%, #e2a72e);
  color: #231303;
  box-shadow: 0 6px 20px rgba(245, 194, 75, 0.45);
  animation: cta-pulse 2.2s ease-in-out infinite;
}
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(245, 194, 75, 0.45); }
  50% { box-shadow: 0 6px 30px rgba(245, 194, 75, 0.8); }
}
.float-login {
  background: linear-gradient(135deg, #1fbf5f, var(--green-2));
  color: #fff;
}

.coin {
  position: absolute;
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ffe9a8, var(--gold) 55%, #b97f14);
  border: 1px solid #a86f10;
  opacity: 0;
  animation: coin-rise 2.4s linear infinite;
  pointer-events: none;
}
.coin.c1 { left: 16%; animation-delay: 0s; }
.coin.c2 { left: 48%; animation-delay: 0.8s; width: 11px; height: 11px; }
.coin.c3 { left: 74%; animation-delay: 1.5s; width: 12px; height: 12px; }
@keyframes coin-rise {
  0% { transform: translateY(16px) scale(0.5); opacity: 0; }
  18% { opacity: 1; }
  70% { opacity: 0.9; }
  100% { transform: translateY(-46px) scale(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reel::before, .coin, .float-register { animation: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Search overlay
   -------------------------------------------------------------------------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 1500;
  background: rgba(5, 7, 12, 0.82);
  backdrop-filter: blur(8px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 70px 18px 30px;
  overflow-y: auto;
}
.search-overlay[hidden] { display: none; }
.search-panel {
  width: 100%; max-width: 620px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px;
  position: relative;
}
.search-panel h2 { font-size: 1.15rem; }
.search-close { position: absolute; top: 14px; right: 14px; }
.search-form input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--white);
  font-size: 1rem;
  font-family: inherit;
}
.search-form input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.search-hint { font-size: 0.78rem; color: var(--muted); margin: 16px 0 8px; }
.search-results { margin-top: 16px; display: grid; gap: 8px; }
.search-result {
  display: block;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: inherit;
}
.search-result:hover { border-color: var(--gold); text-decoration: none; }
.search-result .sr-title { color: var(--gold-2); font-weight: 700; font-size: 0.92rem; }
.search-result .sr-desc { color: var(--muted); font-size: 0.8rem; display: block; margin-top: 2px; }
.search-empty { color: var(--muted); font-size: 0.88rem; text-align: center; padding: 10px 0; }

/* --------------------------------------------------------------------------
   Responsive breakpoints
   -------------------------------------------------------------------------- */
@media (min-width: 560px) {
  .strip-inner { flex-direction: row; align-items: center; }
  .cards-grid.grid-2, .cards-grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
  .auth-layout { grid-template-columns: 1.1fr 0.9fr; }
}

@media (min-width: 720px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid.grid-3 { grid-template-columns: repeat(2, 1fr); }
  .promo-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-widget { grid-template-columns: 1fr 1fr; align-items: start; }
  .calc-widget .calc-form { padding-right: 4px; }
}

@media (min-width: 900px) {
  h1 { font-size: 2.1rem; }
  .section { padding: 72px 0; }

  .menu-toggle { display: none; }
  .main-navigation { margin-left: auto; }
  .main-navigation .menu { display: flex; }
  .main-navigation.open { position: static; box-shadow: none; border: 0; background: transparent; }
  .main-navigation .menu-item a {
    padding: 8px 11px; border-left: 0; border-radius: 8px;
    font-size: 0.86rem;
  }
  .main-navigation .menu-item a:hover,
  .main-navigation .menu-item a.active {
    background: rgba(245, 194, 75, 0.1); color: var(--gold-2);
  }

  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .cards-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
  .why-layout { grid-template-columns: 1.6fr 1fr; }
  .mobile-layout { grid-template-columns: 300px 1fr; }
  .rg-layout { grid-template-columns: 1.6fr 1fr; }
  .promo-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

/* Rentang tablet-landscape: rapatkan header agar tidak meluber */
@media (min-width: 900px) and (max-width: 1159px) {
  .header-inner { gap: 10px; }
  .site-title { font-size: 1.05rem; }
  .main-navigation .menu-item a { padding: 8px 7px; font-size: 0.8rem; }
  .header-actions { gap: 6px; }
  .header-actions .btn-login { display: none; }
}

@media (min-width: 1024px) {
  .header-actions .btn { padding: 10px 18px; }
}

/* Small phones: compact header actions */
@media (max-width: 559px) {
  .header-actions .btn-login { display: none; }
  .header-actions .btn-register { padding: 9px 13px; }
  .float-btn { min-width: 96px; padding: 11px 16px; font-size: 0.86rem; }
  .reel { width: 22px; height: 30px; }
  .reel::before { line-height: 30px; font-size: 0.8rem; height: 30px; }
  @keyframes reel-spin { to { transform: translateY(-150px); } }
}

/* Print */
@media print {
  .site-header, .float-cta, .search-overlay, .footer-tags { display: none; }
  body { background: #fff; color: #000; }
}
