/* ============================================================
   Slot39 — Tema Kasino (wp-theme style sheet)
   Palet: Merah #E01F3D · Putih #FFFFFF · Hijau #1FBF75
          Kuning/Emas #FFC93C · Biru #1F6FEB · Hitam #0B0F1A
   ============================================================ */
:root {
  --c-black: #0b0f1a;
  --c-black-2: #111830;
  --c-black-3: #182242;
  --c-red: #e01f3d;
  --c-green: #1fbf75;
  --c-gold: #ffc93c;
  --c-blue: #1f6feb;
  --c-white: #ffffff;
  --c-muted: #9aa7c7;
  --c-line: rgba(255, 255, 255, 0.09);
  --radius: 14px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", "Helvetica Neue", Arial, 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(--c-black);
  color: #e8ecf7;
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-gold); text-decoration: none; }
a:hover { color: #ffe08a; }
h1, h2, h3, h4 { color: var(--c-white); line-height: 1.3; font-weight: 800; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); margin-bottom: 18px; }
h3 { font-size: 1.15rem; margin-bottom: 10px; }
p { margin-bottom: 16px; color: #cdd5ea; }
ul, ol { margin: 0 0 16px 22px; color: #cdd5ea; }
li { margin-bottom: 8px; }
table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 0.95rem; display: block; overflow-x: auto; }
th, td { padding: 12px 14px; border: 1px solid var(--c-line); text-align: left; white-space: nowrap; }
th { background: var(--c-black-3); color: var(--c-gold); }
td { background: rgba(255, 255, 255, 0.02); color: #cdd5ea; }
tr:hover td { background: rgba(255, 201, 60, 0.05); }
.container { width: min(1180px, 92%); margin: 0 auto; }
.section { padding: 64px 0; }
.section-alt { background: linear-gradient(180deg, var(--c-black-2), var(--c-black)); }
.kicker {
  display: inline-block; font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--c-gold); border: 1px solid rgba(255, 201, 60, 0.4); border-radius: 999px;
  padding: 4px 14px; margin-bottom: 14px; background: rgba(255, 201, 60, 0.06);
}
.text-center { text-align: center; }
.lead { font-size: 1.08rem; color: #dfe5f5; }

/* ---------- Header (wp-site-header) ---------- */
.wp-site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(11, 15, 26, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.wp-site-header .container { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.site-branding { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-branding img { width: 42px; height: 42px; }
.site-branding .site-title { font-size: 1.35rem; font-weight: 900; color: var(--c-white); letter-spacing: 0.5px; }
.site-branding .site-title span { color: var(--c-gold); }
.main-navigation { margin-left: auto; }
.main-navigation ul { display: flex; gap: 4px; list-style: none; margin: 0; }
.main-navigation a {
  display: block; padding: 10px 13px; color: #dbe2f4; font-size: 0.92rem; font-weight: 600;
  border-radius: 8px;
}
.main-navigation a:hover, .main-navigation .current-menu-item > a { background: rgba(255, 201, 60, 0.12); color: var(--c-gold); }
.menu-has-children { position: relative; }
.menu-has-children .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 210px; display: none;
  background: var(--c-black-2); border: 1px solid var(--c-line); border-radius: 10px;
  padding: 8px; box-shadow: var(--shadow); flex-direction: column;
}
.menu-has-children:hover .sub-menu, .menu-has-children:focus-within .sub-menu { display: flex; }
.header-actions { display: flex; gap: 10px; margin-left: 14px; flex-shrink: 0; }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--c-line); border-radius: 8px;
  color: var(--c-white); font-size: 1.3rem; padding: 6px 12px; cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 10px; font-weight: 800;
  font-size: 0.95rem; cursor: pointer; border: none; transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, #ffd76a, var(--c-gold) 55%, #e0a812); color: #231a02; box-shadow: 0 6px 18px rgba(255, 201, 60, 0.35); }
.btn-gold:hover { color: #231a02; box-shadow: 0 10px 26px rgba(255, 201, 60, 0.5); }
.btn-red { background: linear-gradient(135deg, #f43f5e, var(--c-red)); color: #fff; box-shadow: 0 6px 18px rgba(224, 31, 61, 0.35); }
.btn-red:hover { color: #fff; }
.btn-green { background: linear-gradient(135deg, #2fe39a, var(--c-green)); color: #03210f; box-shadow: 0 6px 18px rgba(31, 191, 117, 0.3); }
.btn-green:hover { color: #03210f; }
.btn-outline { background: transparent; border: 1.5px solid var(--c-gold); color: var(--c-gold); }
.btn-outline:hover { background: rgba(255, 201, 60, 0.1); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 520px; display: flex; align-items: center;
  background: var(--c-black) url("../img/hero-home.jpg") center right / cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11, 15, 26, 0.97) 22%, rgba(11, 15, 26, 0.72) 55%, rgba(11, 15, 26, 0.25));
}
.hero .container { position: relative; z-index: 2; padding: 70px 0; }
.hero h1 { max-width: 640px; margin-bottom: 18px; }
.hero h1 .hl { color: var(--c-gold); }
.hero .lead { max-width: 560px; margin-bottom: 26px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-badges span {
  font-size: 0.8rem; font-weight: 700; color: #dbe2f4; border: 1px solid var(--c-line);
  padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.04);
}
.hero-badges .b-18 { color: var(--c-red); border-color: rgba(224, 31, 61, 0.55); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; padding: 64px 0 48px;
  background: radial-gradient(900px 320px at 20% 0%, rgba(31, 111, 235, 0.18), transparent 60%),
              radial-gradient(700px 300px at 85% 20%, rgba(224, 31, 61, 0.14), transparent 60%), var(--c-black-2);
  border-bottom: 1px solid var(--c-line);
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { max-width: 760px; margin-bottom: 0; }

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

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.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: linear-gradient(160deg, var(--c-black-3), var(--c-black-2));
  border: 1px solid var(--c-line); border-radius: var(--radius); padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 201, 60, 0.45); }
.card .icon { font-size: 1.9rem; margin-bottom: 12px; display: inline-block; }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }
.card-img { padding: 0; overflow: hidden; }
.card-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-img .card-body { padding: 22px 24px 26px; }
.tag-chip {
  display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 6px; margin-bottom: 10px;
}
.tag-red { background: rgba(224, 31, 61, 0.16); color: #ff8fa3; }
.tag-green { background: rgba(31, 191, 117, 0.16); color: #6fe6b0; }
.tag-blue { background: rgba(31, 111, 235, 0.18); color: #8ab6ff; }
.tag-gold { background: rgba(255, 201, 60, 0.14); color: var(--c-gold); }

/* ---------- Payments ---------- */
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.pay-item {
  background: var(--c-black-2); border: 1px solid var(--c-line); border-radius: 12px;
  padding: 18px 14px; text-align: center; font-weight: 700; color: #e8ecf7; font-size: 0.95rem;
}
.pay-item small { display: block; color: var(--c-muted); font-weight: 500; margin-top: 4px; font-size: 0.78rem; }
.pay-item .pay-ic { font-size: 1.5rem; display: block; margin-bottom: 8px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
  position: relative; padding: 22px 22px 22px 78px; background: var(--c-black-2);
  border: 1px solid var(--c-line); border-radius: var(--radius);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 20px; top: 20px; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #ffd76a, var(--c-gold)); color: #231a02;
  font-weight: 900; display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.step h3 { margin-bottom: 6px; }
.step p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--c-line); border-radius: 12px; margin-bottom: 12px; background: var(--c-black-2); overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--c-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(--c-gold); font-size: 1.3rem; font-weight: 900; flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-a { padding: 0 20px 18px; }
.faq-item .faq-a p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Article (wp-post) ---------- */
.wp-post .entry-content { max-width: 860px; margin: 0 auto; }
.entry-content > h2 { margin-top: 42px; padding-top: 8px; border-top: 2px solid rgba(255, 201, 60, 0.25); }
.entry-content > h2:first-of-type { border-top: none; margin-top: 0; }
.entry-content h3 { margin-top: 26px; color: var(--c-gold); }
.post-featured { border-radius: var(--radius); overflow: hidden; margin: 26px 0 34px; box-shadow: var(--shadow); }
.post-meta { font-size: 0.85rem; color: var(--c-muted); margin-bottom: 8px; }
.post-meta time { color: var(--c-gold); }
.callout {
  border-left: 4px solid var(--c-gold); background: rgba(255, 201, 60, 0.07);
  padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 22px 0;
}
.callout p { margin-bottom: 0; }
.callout-red { border-left-color: var(--c-red); background: rgba(224, 31, 61, 0.08); }
.callout-green { border-left-color: var(--c-green); background: rgba(31, 191, 117, 0.08); }

/* ---------- Search & tag cloud ---------- */
.search-form { display: flex; gap: 10px; max-width: 560px; margin: 0 auto; }
.search-form input {
  flex: 1; padding: 13px 18px; border-radius: 10px; border: 1px solid var(--c-line);
  background: var(--c-black-2); color: var(--c-white); font-size: 1rem; min-width: 0;
}
.search-form input:focus { outline: 2px solid rgba(255, 201, 60, 0.5); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag-cloud a {
  font-size: 0.85rem; padding: 7px 16px; border-radius: 999px; background: var(--c-black-2);
  border: 1px solid var(--c-line); color: #cdd5ea; font-weight: 600;
}
.tag-cloud a:hover { border-color: var(--c-gold); color: var(--c-gold); }
.search-result-item { padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.search-result-item h3 { margin-bottom: 4px; }
.search-result-item p { margin-bottom: 0; font-size: 0.9rem; color: var(--c-muted); }

/* ---------- Auth pages ---------- */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-box {
  background: linear-gradient(160deg, var(--c-black-3), var(--c-black-2));
  border: 1px solid var(--c-line); border-radius: 18px; padding: 36px 32px; box-shadow: var(--shadow);
}
.auth-box .site-branding { justify-content: center; margin-bottom: 18px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 700; color: #dbe2f4; margin-bottom: 6px; }
.form-group input, .form-group select {
  width: 100%; padding: 13px 16px; border-radius: 10px; border: 1px solid var(--c-line);
  background: rgba(11, 15, 26, 0.7); color: var(--c-white); font-size: 0.95rem;
}
.form-group input:focus { outline: 2px solid rgba(255, 201, 60, 0.5); }
.form-note { font-size: 0.8rem; color: var(--c-muted); text-align: center; margin-top: 14px; }
.form-note a { font-weight: 700; }
.btn-block { width: 100%; }

/* ---------- Floating CTA (slot machine style) ---------- */
.float-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  display: flex; justify-content: center; gap: 14px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(11, 15, 26, 0), rgba(11, 15, 26, 0.94) 30%);
  pointer-events: none;
}
.float-cta > * { pointer-events: auto; }
.slot-btn {
  position: relative; display: flex; align-items: center; gap: 10px; overflow: hidden;
  padding: 13px 30px; border-radius: 999px; font-weight: 900; font-size: 1rem; letter-spacing: 0.5px;
  border: 2px solid rgba(255, 255, 255, 0.25); cursor: pointer;
  animation: slotPulse 2.2s ease-in-out infinite;
}
.slot-btn .reels { display: inline-flex; gap: 3px; font-size: 1.05rem; }
.slot-btn .reels i { font-style: normal; display: inline-block; animation: reelSpin 1.6s ease-in-out infinite; }
.slot-btn .reels i:nth-child(2) { animation-delay: 0.2s; }
.slot-btn .reels i:nth-child(3) { animation-delay: 0.4s; }
.slot-btn-register { background: linear-gradient(135deg, #ffd76a, var(--c-gold) 60%, #f0a500); color: #231a02; box-shadow: 0 8px 26px rgba(255, 201, 60, 0.45); }
.slot-btn-login { background: linear-gradient(135deg, #f43f5e, var(--c-red)); color: #fff; box-shadow: 0 8px 26px rgba(224, 31, 61, 0.45); animation-delay: 0.6s; }
.slot-btn:hover { filter: brightness(1.1); }
.coin {
  position: absolute; top: 100%; font-size: 1rem; pointer-events: none;
  animation: coinFly 1.5s ease-out forwards; z-index: 5;
}
@keyframes slotPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.03); }
}
@keyframes reelSpin {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes coinFly {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translate(var(--cx, 20px), -90px) rotate(320deg) scale(0.6); }
}
body { padding-bottom: 86px; }

/* ---------- Footer (wp-site-footer) ---------- */
.wp-site-footer { background: #070a12; border-top: 1px solid var(--c-line); padding: 56px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-grid h4 { color: var(--c-gold); font-size: 0.95rem; margin-bottom: 14px; letter-spacing: 1px; text-transform: uppercase; }
.footer-grid ul { list-style: none; margin: 0; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid a { color: #aab4d0; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--c-gold); }
.footer-brand p { font-size: 0.88rem; color: #8b96b5; }
.footer-bottom { border-top: 1px solid var(--c-line); padding-top: 22px; font-size: 0.8rem; color: #77839f; }
.footer-bottom p { margin-bottom: 8px; font-size: 0.8rem; color: #77839f; }
.badge-18 {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 3px solid var(--c-red); border-radius: 50%; color: var(--c-red); font-weight: 900; font-size: 0.95rem;
}

/* ---------- Misc ---------- */
.notice-legal {
  background: rgba(224, 31, 61, 0.08); border: 1px solid rgba(224, 31, 61, 0.35);
  border-radius: 12px; padding: 16px 20px; font-size: 0.88rem; color: #f3c2cc; margin: 22px 0;
}
.notice-legal strong { color: #ff8fa3; }
.promo-card { display: flex; flex-direction: column; }
.promo-card .btn { margin-top: auto; }
.mt-40 { margin-top: 40px; }
.list-check { list-style: none; margin-left: 0; }
.list-check li { padding-left: 28px; position: relative; }
.list-check li::before { content: "✔"; position: absolute; left: 0; color: var(--c-green); font-weight: 900; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; margin-left: auto; }
  .main-navigation {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    background: var(--c-black-2); border-bottom: 1px solid var(--c-line); padding: 10px 4%;
  }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { flex-direction: column; gap: 2px; }
  .main-navigation a { padding: 12px 10px; }
  .menu-has-children .sub-menu { position: static; display: flex; border: none; box-shadow: none; padding: 0 0 0 16px; background: transparent; }
  .header-actions { margin-left: 0; }
  .header-actions .btn { padding: 8px 14px; font-size: 0.8rem; }
  .hero { min-height: 460px; background-position: 68% center; }
  .hero::before { background: linear-gradient(180deg, rgba(11, 15, 26, 0.9) 30%, rgba(11, 15, 26, 0.65)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .float-cta { gap: 10px; }
  .slot-btn { padding: 12px 18px; font-size: 0.88rem; }
  .step { padding: 18px 18px 18px 70px; }
  th, td { padding: 10px; font-size: 0.85rem; }
}
