/* ==========================================================================
   Bonus138 — Casino Theme Design System
   Palette: deep black base, casino red, gold yellow, emerald green, royal blue
   ========================================================================== */
:root {
  --black: #0c0e13;
  --black-2: #12151d;
  --black-3: #1a1e29;
  --white: #ffffff;
  --muted: #aab2c5;
  --red: #e01f3d;
  --red-dark: #a80f2a;
  --gold: #f7b500;
  --gold-soft: #ffd75e;
  --green: #17a95b;
  --green-dark: #0e7a40;
  --blue: #2f6df6;
  --blue-dark: #1c47ad;
  --border: rgba(255, 255, 255, 0.09);
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--black);
  color: #e8ebf4;
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--white); font-weight: 700; }
h1 { font-size: clamp(1.7rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 18px; }
h3 { font-size: 1.15rem; margin-bottom: 10px; }
p { margin-bottom: 16px; color: #cfd5e4; }
ul, ol { margin: 0 0 16px 22px; color: #cfd5e4; }
li { margin-bottom: 8px; }
strong { color: var(--white); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0 24px; border-radius: 12px; }
.table-scroll table { width: 100%; min-width: 640px; border-collapse: collapse; margin: 0; font-size: 0.95rem; }
th, td { padding: 12px 14px; border: 1px solid var(--border); text-align: left; }
th { background: var(--black-3); color: var(--gold-soft); }
td { color: #cfd5e4; }
tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.alt { background: var(--black-2); }
.kicker {
  display: inline-block; font-size: 0.78rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 12px;
}
.lead { font-size: 1.08rem; color: #dfe4f0; max-width: 780px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Age bar ---------- */
.agebar {
  background: linear-gradient(90deg, var(--red-dark), var(--red), var(--red-dark));
  color: #fff; font-size: 0.8rem; text-align: center; padding: 7px 14px; font-weight: 600;
  letter-spacing: 0.4px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(12, 14, 19, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-in { display: flex; align-items: center; gap: 18px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.45rem; font-weight: 800; color: #fff; }
.logo .chip {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-soft), var(--gold) 55%, #b97f00);
  border: 3px dashed rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 14px rgba(247, 181, 0, 0.55);
  flex: 0 0 auto;
}
.logo b { color: var(--gold); }
.logo span { color: var(--red); }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; }
.main-nav a {
  display: block; padding: 9px 13px; border-radius: 10px; color: #dfe4f0;
  font-size: 0.92rem; font-weight: 500;
}
.main-nav a:hover, .main-nav a.active { background: var(--black-3); color: var(--gold-soft); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  border: 0; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: #3a2a00; box-shadow: 0 8px 22px rgba(247, 181, 0, 0.35); }
.btn-gold:hover { color: #3a2a00; box-shadow: 0 12px 28px rgba(247, 181, 0, 0.5); }
.btn-red { background: linear-gradient(180deg, #f43f5c, var(--red)); color: #fff; box-shadow: 0 8px 22px rgba(224, 31, 61, 0.35); }
.btn-red:hover { color: #fff; }
.btn-ghost { background: transparent; border: 1.5px solid var(--border); color: #dfe4f0; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; margin-left: auto; }

/* ---------- 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; margin: 0; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: #5b6378; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold-soft); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 96px 0 84px; overflow: hidden;
  background:
    linear-gradient(115deg, rgba(12, 14, 19, 0.96) 20%, rgba(12, 14, 19, 0.72) 60%, rgba(168, 15, 42, 0.55)),
    url("../img/hero-casino.jpg") center/cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 120px;
  background: linear-gradient(180deg, transparent, var(--black));
}
.hero-in { position: relative; z-index: 2; max-width: 720px; }
.hero h1 span { color: var(--gold); }
.hero .badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }
.hero .badges span {
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 999px; font-size: 0.8rem; color: #dfe4f0;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 18px; font-size: 0.82rem; color: var(--muted); }

/* ---------- 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: var(--black-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(247, 181, 0, 0.45); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(247, 181, 0, 0.18), rgba(224, 31, 61, 0.18));
  border: 1px solid var(--border);
}
.card p { margin-bottom: 0; font-size: 0.94rem; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 0.9rem; }

/* steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; margin-bottom: 26px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 2px; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: #3a2a00;
  font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(247, 181, 0, 0.35);
}
.step h3 { margin-bottom: 6px; }
.step p { margin-bottom: 0; font-size: 0.95rem; }

/* media split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.split.rev > .split-media { order: 2; }

/* testimonials */
.quote-card { position: relative; }
.quote-card::before {
  content: "\201C"; position: absolute; top: 6px; right: 20px; font-size: 4.4rem;
  color: rgba(247, 181, 0, 0.22); font-family: Georgia, serif;
}
.quote-card .who { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.quote-card .ava {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; font-weight: 800; color: #3a2a00;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
}
.quote-card .who small { display: block; color: var(--muted); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 0.9rem; }

/* FAQ */
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; background: var(--black-2); overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; color: #fff; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; font-weight: 700; flex: 0 0 auto; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 20px 18px; }
.faq-item .faq-body p { margin-bottom: 8px; font-size: 0.94rem; }

/* tag cloud */
.tagcloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tagcloud a {
  background: var(--black-3); border: 1px solid var(--border); color: #dfe4f0;
  padding: 7px 15px; border-radius: 999px; font-size: 0.84rem;
}
.tagcloud a:hover { border-color: var(--gold); color: var(--gold-soft); }

/* search */
.searchbox { display: flex; gap: 10px; max-width: 560px; margin: 0 auto; }
.searchbox input {
  flex: 1; min-width: 0; padding: 13px 18px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--black-3); color: #fff; font-size: 0.95rem; font-family: inherit;
}
.searchbox input:focus { outline: 2px solid var(--gold); }
.search-results { max-width: 720px; margin: 26px auto 0; text-align: left; }
.search-results .hit {
  display: block; background: var(--black-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 18px; margin-bottom: 10px; color: #dfe4f0;
}
.search-results .hit:hover { border-color: var(--gold); }
.search-results .hit b { color: var(--gold-soft); display: block; }
.search-results .hit small { color: var(--muted); }

/* article */
.article-hero { padding: 40px 0 10px; }
.article-hero .meta { color: var(--muted); font-size: 0.85rem; margin: 12px 0 0; }
.article-hero .meta span + span::before { content: "•"; margin: 0 8px; }
.article-img { border-radius: var(--radius); margin: 26px 0; box-shadow: var(--shadow); border: 1px solid var(--border); }
.article-body { max-width: 820px; }
.article-body h2 { margin-top: 40px; }
.article-body h3 { margin-top: 28px; }
.callout {
  border-left: 4px solid var(--gold); background: rgba(247, 181, 0, 0.07);
  padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 22px 0;
}
.callout.red { border-left-color: var(--red); background: rgba(224, 31, 61, 0.08); }
.callout.green { border-left-color: var(--green); background: rgba(23, 169, 91, 0.08); }
.callout p { margin-bottom: 6px; }
.callout p:last-child { margin-bottom: 0; }

/* category cards */
.cat-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.cat-card img { height: 190px; object-fit: cover; width: 100%; }
.cat-card .pad { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.cat-card .pad p { flex: 1; }

/* promo terms */
.terms { font-size: 0.88rem; }
.terms li { margin-bottom: 6px; }

/* auth pages */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-card { background: var(--black-2); border: 1px solid var(--border); border-radius: 20px; padding: 36px; box-shadow: var(--shadow); }
.auth-card label { display: block; font-size: 0.88rem; font-weight: 600; margin: 16px 0 6px; color: #dfe4f0; }
.auth-card input {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--black-3); color: #fff; font-size: 0.95rem; font-family: inherit;
}
.auth-card input:focus { outline: 2px solid var(--gold); }
.auth-card .btn { width: 100%; margin-top: 22px; padding: 14px; }
.auth-alt { text-align: center; margin-top: 18px; font-size: 0.9rem; color: var(--muted); }
.auth-note { font-size: 0.8rem; color: var(--muted); margin-top: 16px; text-align: center; }

/* footer */
.site-footer { background: #08090d; border-top: 1px solid var(--border); padding: 56px 0 110px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: var(--gold-soft); font-size: 0.95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; }
.site-footer ul a { color: var(--muted); font-size: 0.88rem; }
.site-footer ul a:hover { color: var(--gold-soft); }
.site-footer p { font-size: 0.86rem; color: var(--muted); }
.footer-legal { border-top: 1px solid var(--border); margin-top: 36px; padding-top: 22px; font-size: 0.8rem; color: #6d7590; }
.badge-18 {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; border: 3px solid var(--red); color: var(--red); font-weight: 800; font-size: 0.9rem;
}

/* ---------- Floating slot machine CTA ---------- */
.float-cta {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 14px; z-index: 1000; width: min(480px, calc(100% - 24px));
  pointer-events: none;
}
.slot-machine {
  pointer-events: auto; position: relative;
  background: linear-gradient(180deg, #232838, #12151d 70%);
  border: 2px solid var(--gold); border-radius: 22px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.65), 0 0 26px rgba(247, 181, 0, 0.28);
  padding: 12px 14px 14px;
  overflow: hidden;
}
.slot-reels { display: flex; justify-content: center; gap: 8px; margin-bottom: 10px; }
.reel {
  width: 46px; height: 46px; border-radius: 10px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; color: var(--red);
  border: 2px solid #d8dbe6; box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.12);
  animation: reelspin 2.6s ease-in-out infinite;
}
.reel:nth-child(2) { animation-delay: 0.35s; color: var(--blue); }
.reel:nth-child(3) { animation-delay: 0.7s; color: var(--green); }
@keyframes reelspin {
  0%, 100% { transform: translateY(0); }
  12% { transform: translateY(-7px); }
  24% { transform: translateY(3px); }
  36% { transform: translateY(0); }
}
.slot-actions { display: flex; gap: 10px; }
.slot-btn {
  flex: 1; text-align: center; padding: 12px 8px; border-radius: 14px;
  font-weight: 800; font-size: 1rem; letter-spacing: 0.5px; position: relative; overflow: hidden;
}
.slot-btn.daftar { background: linear-gradient(180deg, var(--gold-soft), var(--gold) 60%, #d99a00); color: #3a2a00; box-shadow: 0 6px 18px rgba(247, 181, 0, 0.45); }
.slot-btn.masuk { background: linear-gradient(180deg, #f43f5c, var(--red) 60%, var(--red-dark)); color: #fff; box-shadow: 0 6px 18px rgba(224, 31, 61, 0.4); }
.slot-btn::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: shine 2.8s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { left: -80%; } 100% { left: 130%; } }
.coin {
  position: absolute; top: -14px; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe89a, var(--gold) 60%, #b97f00);
  border: 1.5px solid #fff3c4; box-shadow: 0 0 8px rgba(247, 181, 0, 0.8);
  animation: coinfall linear infinite; pointer-events: none;
}
@keyframes coinfall {
  0% { transform: translateY(-16px) rotate(0deg); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translateY(130px) rotate(340deg); opacity: 0; }
}

/* utility */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.notice-strip {
  background: linear-gradient(90deg, rgba(23, 169, 91, 0.14), rgba(47, 109, 246, 0.14));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.rev > .split-media { order: 0; }
  .main-nav {
    position: fixed; inset: 68px 0 auto 0; background: rgba(12, 14, 19, 0.98);
    border-bottom: 1px solid var(--border); display: none; margin: 0;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 14px 20px 20px; gap: 2px; }
  .main-nav a { padding: 12px 14px; }
  .nav-toggle { display: block; }
  .header-cta .btn-ghost { display: none; }
  .section { padding: 54px 0; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 60px; }
  .header-cta .btn { padding: 9px 14px; font-size: 0.85rem; }
  .auth-card { padding: 26px 20px; }
  .float-cta { bottom: 10px; }
  .reel { width: 40px; height: 40px; font-size: 1.3rem; }
  .slot-btn { font-size: 0.92rem; padding: 11px 6px; }
  .searchbox { flex-direction: column; }
  .searchbox .btn { width: 100%; }
}
