/* ============================================================
   Slot39 — Tema Kasino (wp-content/themes/slot39)
   Palet: navy gelap, emas, merah, pink, ungu, biru, hijau, putih
   ============================================================ */
:root {
  --navy: #0b1026;
  --navy-2: #111736;
  --navy-3: #1a2148;
  --gold: #f5c542;
  --gold-2: #ffd76a;
  --red: #e63950;
  --pink: #ff4d8d;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --green: #22c55e;
  --white: #ffffff;
  --muted: #aab1d6;
  --card: #141b3d;
  --line: rgba(255, 255, 255, 0.09);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  padding-bottom: 86px; /* ruang untuk sticky CTA */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: #111; padding: 8px 16px; z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Topbar ---------- */
.topbar {
  background: linear-gradient(90deg, #14102e, #241047 55%, #14102e);
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem; color: var(--muted);
}
.topbar .container { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; flex-wrap: wrap; }
.topbar .badge18 {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 20px; border: 1.5px solid var(--red);
  color: var(--red); border-radius: 5px; font-weight: 800; font-size: 0.72rem;
  margin-right: 6px; padding: 0 4px;
}
.topbar a { color: var(--muted); }
.topbar a:hover { color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(11, 16, 38, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 132px; height: auto; }
.brand .domain { font-size: 0.72rem; color: var(--muted); letter-spacing: 1px; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.main-nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--white); font-size: 0.92rem; font-weight: 600;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.18), rgba(255, 77, 141, 0.14));
  color: var(--gold);
}
.nav-toggle {
  display: none; margin-left: auto; background: var(--navy-3);
  border: 1px solid var(--line); color: var(--gold);
  font-size: 1.3rem; border-radius: 8px; padding: 6px 12px; cursor: pointer;
}
.header-cta { display: flex; gap: 8px; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 10px;
  font-weight: 800; font-size: 0.95rem; letter-spacing: 0.3px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: none; cursor: pointer; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #ff9d2e);
  color: #231303 !important; box-shadow: 0 6px 18px rgba(245, 197, 66, 0.35);
}
.btn-pink {
  background: linear-gradient(135deg, var(--pink), var(--red));
  color: #fff !important; box-shadow: 0 6px 18px rgba(255, 77, 141, 0.3);
}
.btn-ghost {
  background: transparent; color: var(--white) !important;
  border: 1.5px solid var(--gold);
}
.btn-green {
  background: linear-gradient(135deg, var(--green), #0ea5a0);
  color: #04160b !important;
}
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 80% 20%, rgba(139, 92, 246, 0.25), transparent 60%),
              radial-gradient(900px 420px at 10% 90%, rgba(255, 77, 141, 0.16), transparent 60%),
              var(--navy);
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 34px;
  align-items: center; padding: 56px 0 48px;
}
.hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.9rem); line-height: 1.22;
  background: linear-gradient(120deg, #fff 30%, var(--gold) 70%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 16px;
}
.hero p.lead { color: var(--muted); font-size: 1.05rem; margin-bottom: 24px; }
.hero .hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.hero-badges { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.hero-badges span {
  font-size: 0.78rem; color: var(--muted); border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.03);
}

/* ---------- Marquee pengumuman ---------- */
.announce {
  background: linear-gradient(90deg, var(--red), var(--pink), var(--purple));
  color: #fff; font-size: 0.88rem; font-weight: 600;
  overflow: hidden; white-space: nowrap; padding: 8px 0;
}
.announce .track { display: inline-block; padding-left: 100%; animation: marquee 28s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Sections ---------- */
.section { padding: 54px 0; }
.section:nth-of-type(even) { background: var(--navy-2); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.section-head .kicker {
  color: var(--pink); font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; font-size: 0.78rem;
}
.section-head h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); margin: 8px 0 10px; color: var(--white); }
.section-head p { color: var(--muted); }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(245, 197, 66, 0.45); }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; font-size: 1.5rem;
  margin-bottom: 14px; background: linear-gradient(135deg, rgba(245, 197, 66, 0.2), rgba(255, 77, 141, 0.15));
}
.card h3 { font-size: 1.08rem; margin-bottom: 8px; color: var(--gold); }
.card p { color: var(--muted); font-size: 0.93rem; }

/* ---------- Game category tiles ---------- */
.game-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.game-tile {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); min-height: 210px; display: flex;
  align-items: flex-end; box-shadow: var(--shadow);
}
.game-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.game-tile:hover img { transform: scale(1.06); }
.game-tile .tile-body {
  position: relative; width: 100%; padding: 16px;
  background: linear-gradient(180deg, transparent, rgba(5, 8, 24, 0.92) 55%);
}
.game-tile h3 { color: #fff; font-size: 1.1rem; }
.game-tile p { color: var(--muted); font-size: 0.82rem; margin: 4px 0 10px; }

/* ---------- Payment wall ---------- */
.pay-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pay-group {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.pay-group h3 { font-size: 0.95rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.pay-group h3 .dot { width: 10px; height: 10px; border-radius: 50%; }
.pay-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-badges span {
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 8px; font-size: 0.82rem; font-weight: 700; color: #dfe4ff;
}

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--card); }
table.compare th, table.compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
table.compare thead th {
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.16), rgba(139, 92, 246, 0.16));
  color: var(--gold); font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.5px;
}
table.compare td.yes { color: var(--green); font-weight: 700; }
table.compare td.no { color: var(--red); font-weight: 700; }
table.compare tr:last-child td { border-bottom: none; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px 22px; counter-increment: step;
}
.step::before {
  content: counter(step); position: absolute; top: -16px; left: 20px;
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--pink));
  color: #1b0f2e; font-weight: 900; display: flex; align-items: center; justify-content: center;
}
.step h3 { margin: 8px 0 6px; font-size: 1.05rem; color: var(--gold); }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Promo cards ---------- */
.promo-card { display: flex; flex-direction: column; }
.promo-card .promo-tag {
  align-self: flex-start; background: linear-gradient(135deg, var(--red), var(--pink));
  color: #fff; font-size: 0.72rem; font-weight: 800; letter-spacing: 1px;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; text-transform: uppercase;
}
.promo-card .promo-value { font-size: 1.9rem; font-weight: 900; color: var(--gold); line-height: 1.1; }
.promo-card ul { margin: 12px 0 16px; padding-left: 18px; color: var(--muted); font-size: 0.88rem; }
.promo-card ul li { margin-bottom: 4px; }
.promo-card .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: var(--card); overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--white);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; font-weight: 900; flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 20px 18px; color: var(--muted); font-size: 0.94rem; }

/* ---------- Tag cloud ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag-cloud a {
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  color: #dfe4ff; padding: 7px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
}
.tag-cloud a:hover { border-color: var(--gold); color: var(--gold); }
.tag-cloud a.t-lg { font-size: 1rem; color: var(--gold); border-color: rgba(245, 197, 66, 0.4); }
.tag-cloud a.t-sm { font-size: 0.76rem; }

/* ---------- Search ---------- */
.search-box { display: flex; gap: 10px; max-width: 620px; margin: 0 auto; }
.search-box input {
  flex: 1; padding: 13px 18px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--navy-3); color: #fff; font-size: 0.95rem; min-width: 0;
}
.search-box input:focus { outline: 2px solid var(--gold); }
.search-results { max-width: 760px; margin: 22px auto 0; text-align: left; }
.search-results .sr-item {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; color: var(--white);
}
.search-results .sr-item:hover { border-color: var(--gold); }
.search-results .sr-item small { display: block; color: var(--muted); margin-top: 4px; }
.search-results .sr-empty { color: var(--muted); text-align: center; padding: 18px; }

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

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 34px 0 10px; }
.page-hero h1 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); color: var(--white); margin-bottom: 10px; }
.page-hero h1 span.brand-word { color: var(--gold); }
.page-hero .meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 18px; }
.page-hero figure { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); margin: 18px 0 8px; }

/* ---------- Article ---------- */
.article { max-width: 860px; margin: 0 auto; padding: 26px 0 40px; }
.article h2 { color: var(--gold); font-size: 1.35rem; margin: 34px 0 12px; }
.article h3 { color: var(--pink); font-size: 1.1rem; margin: 24px 0 8px; }
.article p { color: #d6daf2; margin-bottom: 14px; }
.article ul, .article ol { color: #d6daf2; margin: 0 0 14px 22px; }
.article li { margin-bottom: 6px; }
.article blockquote {
  border-left: 4px solid var(--gold); background: rgba(245, 197, 66, 0.07);
  padding: 14px 18px; border-radius: 0 10px 10px 0; color: #e8ebff; margin: 18px 0;
}
.article .note-box {
  border: 1px solid rgba(34, 197, 94, 0.4); background: rgba(34, 197, 94, 0.08);
  border-radius: 12px; padding: 16px 20px; margin: 20px 0; color: #d9fbe7; font-size: 0.93rem;
}
.article .warn-box {
  border: 1px solid rgba(230, 57, 80, 0.45); background: rgba(230, 57, 80, 0.08);
  border-radius: 12px; padding: 16px 20px; margin: 20px 0; color: #ffe0e5; font-size: 0.93rem;
}
.article table { width: 100%; border-collapse: collapse; margin: 16px 0 22px; font-size: 0.9rem; }
.article th, .article td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article th { background: var(--navy-3); color: var(--gold); }
.article td { color: #d6daf2; }
.article .table-scroll { overflow-x: auto; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, #2a1052, #4c1d95 45%, #9d174d);
  border-radius: var(--radius); padding: 40px 30px; text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.cta-band h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); margin-bottom: 10px; }
.cta-band p { color: #e9d5ff; max-width: 640px; margin: 0 auto 22px; }

/* ---------- Footer ---------- */
.site-footer { background: #080c1f; border-top: 1px solid var(--line); padding: 46px 0 26px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: var(--gold); font-size: 0.95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { color: var(--muted); font-size: 0.88rem; }
.site-footer a:hover { color: var(--gold); }
.site-footer p { color: var(--muted); font-size: 0.85rem; }
.footer-brand img { width: 120px; margin-bottom: 12px; }
.footer-legal {
  border-top: 1px solid var(--line); margin-top: 30px; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
}
.footer-legal p { font-size: 0.78rem; color: #7c84ad; max-width: 760px; }
.age-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 2.5px solid var(--red); border-radius: 50%;
  color: var(--red); font-weight: 900; font-size: 1rem; flex-shrink: 0;
}

/* ---------- Sticky bottom CTA (slot machine style) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  background: linear-gradient(180deg, #1c1040, #120a2e);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.55);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  overflow: hidden;
}
.sticky-cta .reels {
  display: flex; justify-content: center; gap: 6px; margin-bottom: 8px;
}
.sticky-cta .reel {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(180deg, #fff, #ffe9a8);
  color: #b45309; font-weight: 900; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15);
  animation: reelspin 2.6s ease-in-out infinite;
}
.sticky-cta .reel:nth-child(2) { animation-delay: 0.35s; }
.sticky-cta .reel:nth-child(3) { animation-delay: 0.7s; }
@keyframes reelspin {
  0%, 100% { transform: translateY(0); }
  12% { transform: translateY(-6px); }
  24% { transform: translateY(0); }
}
.sticky-cta .cta-row { display: flex; gap: 10px; justify-content: center; }
.sticky-cta .btn {
  flex: 1; max-width: 260px; padding: 13px 10px; font-size: 1rem;
  text-transform: uppercase; letter-spacing: 1px; position: relative; overflow: hidden;
}
.sticky-cta .btn::after {
  content: ""; position: absolute; top: -60%; left: -30%; width: 40%; height: 220%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: rotate(20deg); animation: shine 2.8s ease-in-out infinite;
}
@keyframes shine { 0% { left: -40%; } 60%, 100% { left: 130%; } }
.coin {
  position: absolute; bottom: -24px; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9a8, var(--gold) 60%, #b45309);
  box-shadow: 0 0 8px rgba(245, 197, 66, 0.7);
  animation: coinrise linear forwards; pointer-events: none; z-index: 0;
}
@keyframes coinrise {
  0% { transform: translateY(0) rotate(0deg) scale(0.6); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(-140px) rotate(320deg) scale(1); opacity: 0; }
}

/* ---------- Auth pages ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; padding: 30px 0 50px; }
.auth-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.auth-card label { display: block; font-size: 0.85rem; color: var(--muted); margin: 14px 0 6px; font-weight: 600; }
.auth-card input {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--navy-3); color: #fff; font-size: 0.95rem;
}
.auth-card input:focus { outline: 2px solid var(--gold); }
.auth-card .btn { width: 100%; margin-top: 20px; }
.auth-card .alt { text-align: center; margin-top: 16px; font-size: 0.88rem; color: var(--muted); }
.auth-figure figure { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.notice-legal {
  background: rgba(230, 57, 80, 0.1); border: 1px solid rgba(230, 57, 80, 0.4);
  border-radius: 12px; padding: 14px 18px; color: #ffd9de; font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .game-tiles { grid-template-columns: repeat(2, 1fr); }
  .pay-wall { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 36px 0; }
  .hero figure { order: -1; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-figure { display: none; }
  .steps { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-2); border-bottom: 1px solid var(--line); padding: 10px 4%;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { padding: 12px; }
  .nav-toggle { display: block; }
  .header-cta .btn-ghost { display: none; }
}
@media (max-width: 560px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .game-tiles { grid-template-columns: 1fr; }
  .pay-wall { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand img { width: 108px; }
  .sticky-cta .btn { font-size: 0.88rem; }
  .section { padding: 40px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .announce .track, .sticky-cta .reel, .sticky-cta .btn::after, .coin { animation: none !important; }
}
