/* ==========================================================================
   Mega338 — Portal Informasi Game Online (Indonesia)
   Palet: merah / putih / hijau / kuning / biru / hitam
   ========================================================================== */

:root {
  --red: #c8102e;
  --red-2: #a30d25;
  --red-soft: #fdeef0;
  --green: #16a34a;
  --green-2: #12813b;
  --green-soft: #eaf7ef;
  --blue: #1d6ff2;
  --blue-2: #1558c4;
  --blue-soft: #ecf3fe;
  --gold: #f7b500;
  --gold-2: #d99b00;
  --gold-soft: #fff7e0;
  --ink: #101525;
  --ink-2: #232b42;
  --body: #3c4459;
  --muted: #6b7387;
  --line: #e4e7ef;
  --bg: #ffffff;
  --bg-soft: #f5f6fa;
  --dark: #0d1220;
  --dark-2: #141b30;
  --dark-3: #1b2440;
  --shadow: 0 10px 30px rgba(16, 21, 37, 0.10);
  --shadow-sm: 0 4px 14px rgba(16, 21, 37, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "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);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-2); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.25rem; }
p { overflow-wrap: break-word; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; font-weight: 800; overflow-wrap: break-word; }

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

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-red    { background: linear-gradient(180deg, #e5193b, var(--red)); color: #fff; box-shadow: 0 6px 18px rgba(200, 16, 46, 0.35); }
.btn-green  { background: linear-gradient(180deg, #1cb455, var(--green-2)); color: #fff; box-shadow: 0 6px 18px rgba(18, 129, 59, 0.35); }
.btn-blue   { background: linear-gradient(180deg, #3b82f6, var(--blue-2)); color: #fff; box-shadow: 0 6px 18px rgba(21, 88, 196, 0.35); }
.btn-gold   { background: linear-gradient(180deg, #ffcf33, var(--gold)); color: #4a3600; box-shadow: 0 6px 18px rgba(217, 155, 0, 0.4); }
.btn-ghost  { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-outline { background: #fff; color: var(--red); border-color: var(--red); }
.btn-outline:hover { background: var(--red-soft); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Bar atas (pemberitahuan 18+) ---------- */
.topbar {
  background: linear-gradient(90deg, var(--red-2), var(--red) 45%, #7c0a1d);
  color: #fff;
  font-size: 0.82rem;
  overflow: hidden;
}
.topbar-in { display: flex; align-items: center; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.tb-badge {
  flex: 0 0 auto;
  background: var(--gold);
  color: #4a3600;
  font-weight: 900;
  border-radius: 6px;
  padding: 1px 8px;
  font-size: 0.78rem;
}
.topbar p { color: #ffe9ec; min-width: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: #0d1220;
  border-bottom: 1px solid rgba(247, 181, 0, 0.25);
}
.header-in { display: flex; align-items: center; gap: 18px; padding-top: 10px; padding-bottom: 10px; }

.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand svg { width: 42px; height: 42px; }
.brand-name { font-size: 1.35rem; font-weight: 900; color: #fff; letter-spacing: 0.03em; line-height: 1.05; }
.brand-name b { color: var(--gold); }
.brand-name small { display: block; font-size: 0.6rem; font-weight: 600; color: #aab3c8; letter-spacing: 0.16em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; flex-wrap: wrap; }
.nav a {
  color: #d7dcea;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); text-decoration: none; }
.nav a.active { color: var(--gold); background: rgba(247, 181, 0, 0.12); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* Pencarian */
.search { position: relative; }
.search input {
  width: 210px;
  padding: 9px 14px 9px 36px;
  border-radius: 999px;
  border: 1px solid #2a3352;
  background: #1a2238 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23aab3c8' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 12px center no-repeat;
  color: #fff;
  font-family: var(--font);
  font-size: 0.88rem;
  outline: none;
  transition: width 0.2s ease, border-color 0.2s ease;
}
.search input:focus { border-color: var(--gold); width: 250px; }
.search input::placeholder { color: #8891a8; }
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 6px;
  display: none;
  z-index: 200;
}
.search-results.open { display: block; }
.search-results a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}
.search-results a:hover { background: var(--bg-soft); text-decoration: none; }
.search-results a span { display: block; font-weight: 400; color: var(--muted); font-size: 0.78rem; }
.search-results .sr-empty { padding: 10px 12px; color: var(--muted); font-size: 0.85rem; }

.burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  display: block;
  width: 24px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(rgba(13, 18, 32, 0.82), rgba(13, 18, 32, 0.94)),
    url("../../img/hero-casino.jpg") center 30% / cover no-repeat;
  overflow: hidden;
}
.hero-in { position: relative; padding: 72px 20px 84px; max-width: 860px; }
.hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(247, 181, 0, 0.15);
  border: 1px solid rgba(247, 181, 0, 0.5);
  color: var(--gold);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { color: #fff; font-size: clamp(1.75rem, 4vw, 2.7rem); margin-bottom: 16px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p.lead { color: #d9def0; font-size: clamp(1rem, 2vw, 1.13rem); max-width: 640px; margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e7ebf5;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
}
.hero-badge b { color: var(--gold); }

/* ---------- Bagian umum ---------- */
.section { padding: 58px 0; }
.section-alt { background: var(--bg-soft); }
.section-dark { background: var(--dark); color: #c9d0e2; }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker-line {
  display: inline-block;
  color: var(--red);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 10px; }
.section-head p { color: var(--muted); }
.section-dark .section-head p { color: #9aa3ba; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Kartu */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 1.05rem; }
.card p { font-size: 0.92rem; color: var(--body); }
.card .more { font-weight: 800; font-size: 0.88rem; margin-top: auto; }

.imgbox { position: relative; overflow: hidden; background: var(--dark-2); }
.imgbox img { width: 100%; height: 100%; object-fit: cover; }
.ratio-169 { aspect-ratio: 16 / 9; }
.ratio-1610 { aspect-ratio: 16 / 10; }
.ratio-43 { aspect-ratio: 4 / 3; }

.card-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex: 0 0 auto;
}
.ico-red   { background: var(--red-soft); }
.ico-green { background: var(--green-soft); }
.ico-blue  { background: var(--blue-soft); }
.ico-gold  { background: var(--gold-soft); }

/* ---------- Kartu promosi ---------- */
.promo-card { position: relative; }
.promo-card .ribbon {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
.promo-card .ribbon.gold { background: var(--gold); color: #4a3600; }
.promo-card .ribbon.green { background: var(--green); }
.promo-card .ribbon.blue { background: var(--blue); }
.promo-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.chip b { color: var(--red); }

/* ---------- Mengapa memilih ---------- */
.feature-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.feature-list .dot {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  font-size: 1rem;
}
.feature-list strong { display: block; color: var(--ink); margin-bottom: 2px; }
.feature-list p { font-size: 0.9rem; margin: 0; }

/* ---------- Bagian mobile ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.phone {
  position: relative;
  width: 270px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 34px;
  border: 8px solid #05070f;
  background: var(--dark);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  aspect-ratio: 9 / 18.5;
}
.phone .notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 90px; height: 16px; background: #05070f; border-radius: 999px; z-index: 3; }
.phone .screen { position: absolute; inset: 0; display: flex; flex-direction: column; }
.phone .p-head { background: linear-gradient(160deg, var(--red-2), var(--red)); padding: 34px 14px 12px; color: #fff; }
.phone .p-head b { font-size: 0.95rem; }
.phone .p-head small { display: block; color: #ffdfe4; font-size: 0.62rem; }
.phone .p-cta { display: flex; gap: 8px; margin-top: 8px; }
.phone .p-cta span { flex: 1; text-align: center; font-size: 0.66rem; font-weight: 800; padding: 7px 0; border-radius: 8px; }
.phone .p-cta .a { background: var(--gold); color: #4a3600; }
.phone .p-cta .b { background: #fff; color: var(--red); }
.phone .p-body { flex: 1; background: var(--bg-soft); padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.phone .p-body i {
  display: block;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  height: 52px;
  position: relative;
}
.phone .p-body i::after {
  content: "";
  position: absolute;
  inset: 8px 8px 20px;
  border-radius: 6px;
  background: linear-gradient(140deg, var(--blue-soft), var(--gold-soft));
}
.phone .p-body i::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  height: 5px;
  border-radius: 3px;
  background: var(--line);
}
.phone .p-nav { background: #fff; border-top: 1px solid var(--line); display: flex; justify-content: space-around; padding: 8px 0 12px; }
.phone .p-nav span { width: 34px; height: 5px; border-radius: 3px; background: var(--line); }
.phone .p-nav span:first-child { background: var(--red); }

/* ---------- Testimoni ---------- */
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; }
.testimonial .stars { color: var(--gold); letter-spacing: 2px; font-size: 0.95rem; }
.testimonial blockquote { color: var(--ink-2); font-size: 0.95rem; margin: 0; }
.testimonial .who { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.testimonial .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  flex: 0 0 auto;
}
.testimonial .who b { display: block; color: var(--ink); font-size: 0.9rem; }
.testimonial .who small { color: var(--muted); font-size: 0.78rem; }
.t-note { font-size: 0.8rem; color: var(--muted); margin-top: 16px; }

/* ---------- Kalkulator rollingan ---------- */
.calc {
  background: linear-gradient(150deg, #101729, #182138);
  border: 1px solid #263252;
  border-radius: var(--radius);
  padding: 30px;
  color: #dbe1f0;
  box-shadow: var(--shadow);
}
.calc h3 { color: #fff; margin-bottom: 6px; }
.calc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.calc label { display: block; font-size: 0.8rem; font-weight: 700; color: #9fb7e8; margin-bottom: 6px; }
.calc input, .calc select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid #31405f;
  background: #0d1322;
  color: #fff;
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
}
.calc input:focus, .calc select:focus { border-color: var(--gold); }
.calc-out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.calc-box { background: rgba(247, 181, 0, 0.1); border: 1px dashed rgba(247, 181, 0, 0.5); border-radius: 12px; padding: 14px 16px; }
.calc-box small { display: block; font-size: 0.75rem; color: #b7a86e; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.calc-box b { font-size: 1.25rem; color: var(--gold); }
.calc .note { font-size: 0.78rem; color: #8b95ad; margin-top: 14px; }

/* ---------- Keamanan ---------- */
.sec-card { display: flex; gap: 14px; align-items: flex-start; }
.sec-card .sn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.sec-card h3 { font-size: 0.98rem; margin-bottom: 4px; }
.sec-card p { font-size: 0.88rem; margin: 0; }

/* ---------- Artikel / prose ---------- */
.prose { max-width: 800px; }
.prose .figure { margin: 26px 0; }
.prose .figure .imgbox { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.prose .figure figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 10px; text-align: center; }
.prose h2 { font-size: 1.45rem; margin: 34px 0 12px; }
.prose h3 { font-size: 1.12rem; margin: 24px 0 8px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose .meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 0.82rem; color: var(--muted); margin-bottom: 18px; }
.prose .meta .chip { background: var(--red-soft); border-color: #f3ccd3; color: var(--red-2); }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.9rem; background: #fff; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); color: var(--ink); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0; }
.table-wrap table { margin: 0; min-width: 520px; }
.article-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }

.notice {
  background: var(--gold-soft);
  border: 1px solid #eeddab;
  border-left: 5px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.88rem;
  color: #6b5518;
  margin: 20px 0;
}
.notice.blue { background: var(--blue-soft); border-color: #c9dbf8; border-left-color: var(--blue); color: #1f4b96; }
.notice.green { background: var(--green-soft); border-color: #bfe5cd; border-left-color: var(--green); color: #1c6236; }
.notice.red { background: var(--red-soft); border-color: #f3ccd3; border-left-color: var(--red); color: #8c1024; }
.notice b { display: block; margin-bottom: 4px; }

.steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 18px 16px 62px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--red), var(--red-2));
  color: #fff;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps strong { display: block; color: var(--ink); }

.check-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-2);
  font-weight: 900;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}
.x-list li::before { content: "✕"; background: var(--red-soft); color: var(--red); }

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

/* ---------- Tag cloud ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tags a {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 0.15s ease;
}
.tags a:hover { background: var(--red); border-color: var(--red); color: #fff; text-decoration: none; transform: translateY(-2px); }
.tags a b { color: var(--gold-2); }

/* ---------- Pita CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--red-2), var(--red) 60%, #8f0b20); color: #fff; padding: 46px 0; }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; justify-content: space-between; }
.cta-band h2 { color: #fff; font-size: clamp(1.25rem, 2.6vw, 1.65rem); margin-bottom: 6px; }
.cta-band p { color: #ffdfe4; margin: 0; max-width: 640px; }
.cta-band .btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Halaman dalam ---------- */
.page-hero {
  background:
    linear-gradient(rgba(13, 18, 32, 0.88), rgba(13, 18, 32, 0.96)),
    url("../../img/hero-casino.jpg") center 40% / cover no-repeat;
  color: #fff;
  padding: 40px 0 44px;
}
.page-hero h1 { color: #fff; font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin-bottom: 10px; max-width: 820px; }
.page-hero p { color: #ccd3e6; max-width: 760px; margin: 0; }

.breadcrumb { font-size: 0.82rem; margin-bottom: 16px; color: #9aa3ba; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "›"; color: var(--gold); font-weight: 900; }
.breadcrumb a { color: #c8cfdf; font-weight: 700; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb [aria-current] { color: var(--gold); font-weight: 700; }

.page-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: start; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.side-box h3 { font-size: 1rem; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); display: inline-block; }
.side-box ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.side-box ul a { font-size: 0.9rem; font-weight: 700; }
.side-box .btn { width: 100%; margin-top: 6px; }

/* ---------- Formulir ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; }
.form-card h2 { font-size: 1.2rem; margin-bottom: 6px; }
.form-card > p { font-size: 0.9rem; color: var(--muted); margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 800; color: var(--ink-2); margin-bottom: 6px; }
.field label span { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #cdd3e0;
  background: var(--bg-soft);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus, .field select:focus { border-color: var(--red); background: #fff; }
.field small { display: block; margin-top: 5px; color: var(--muted); font-size: 0.76rem; }
.field.check { display: flex; gap: 10px; align-items: flex-start; }
.field.check input { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--red); }
.field.check label { font-weight: 600; font-size: 0.84rem; margin: 0; }
.form-note { font-size: 0.78rem; color: var(--muted); margin-top: 14px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #a6aec4; padding-top: 52px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 38px; }
.footer-brand .brand-name { font-size: 1.3rem; }
.footer-brand p { font-size: 0.87rem; margin-top: 14px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; letter-spacing: 0.04em; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.site-footer ul a { color: #a6aec4; font-size: 0.88rem; }
.site-footer ul a:hover { color: var(--gold); }
.footer-legal {
  border-top: 1px solid #232c47;
  padding: 22px 0 92px;
  font-size: 0.78rem;
  color: #7d859c;
}
.footer-legal .badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.footer-legal .badges span {
  border: 1px solid #2c3757;
  border-radius: 8px;
  padding: 4px 10px;
  font-weight: 800;
  color: #c3cade;
  background: #131a2e;
}
.footer-legal .badges .adult { border-color: var(--red); color: #ff8fa1; }
.footer-legal p { margin-bottom: 8px; }
.footer-legal .copy { margin-top: 12px; color: #626a80; }

/* ---------- Tombol melayang bawah (gaya slot + koin) ---------- */
.float-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  background: linear-gradient(180deg, #b60e29, #8c0a1f);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.45);
  height: 64px;
}
.float-cta-in { max-width: 1180px; margin: 0 auto; padding: 0 16px; height: 100%; display: flex; align-items: center; gap: 14px; }
.fc-reels { display: flex; gap: 5px; flex: 0 0 auto; text-decoration: none; }
.fc-reel {
  width: 30px;
  height: 38px;
  border-radius: 7px;
  border: 2px solid var(--gold);
  background: #fff;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 6px 8px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.35);
}
.fc-strip { position: absolute; left: 0; right: 0; top: 0; display: grid; grid-template-rows: repeat(6, 38px); animation: reelspin 2.4s linear infinite; }
.fc-reel:nth-child(2) .fc-strip { animation-duration: 3.1s; }
.fc-reel:nth-child(3) .fc-strip { animation-duration: 2.8s; }
.fc-strip i {
  font-style: normal;
  font-weight: 900;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
}
.fc-sym-red { color: var(--red); }
.fc-sym-blue { color: var(--blue); }
.fc-sym-green { color: var(--green); }
.fc-sym-gold { color: var(--gold-2); }
@keyframes reelspin {
  from { transform: translateY(0); }
  to { transform: translateY(-228px); }
}
.fc-label { color: #ffe9b8; font-weight: 800; font-size: 0.78rem; line-height: 1.25; letter-spacing: 0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fc-label b { color: #fff; display: block; font-size: 0.9rem; }
.fc-btns { margin-left: auto; display: flex; gap: 10px; flex: 0 0 auto; }
.fc-btn {
  position: relative;
  overflow: hidden;
  min-width: 108px;
  text-align: center;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35), 0 8px 16px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.35);
}
.fc-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  animation: shine 2.6s ease-in-out infinite;
}
@keyframes shine {
  0% { left: -70%; }
  55% { left: 130%; }
  100% { left: 130%; }
}
.fc-daftar { background: linear-gradient(180deg, #22c55e, #15803d); }
.fc-masuk { background: linear-gradient(180deg, #3b82f6, #1d4ed8); }
.fc-coin {
  position: absolute;
  bottom: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe27a, var(--gold) 60%, #b98600);
  box-shadow: 0 0 8px rgba(255, 210, 80, 0.85);
  opacity: 0;
  animation: coinrise 3.4s linear infinite;
}
.fc-coin.c1 { left: 12%; animation-delay: 0s; }
.fc-coin.c2 { left: 38%; animation-delay: 1.2s; width: 10px; height: 10px; }
.fc-coin.c3 { left: 62%; animation-delay: 2.1s; }
.fc-coin.c4 { left: 84%; animation-delay: 0.7s; width: 11px; height: 11px; }
@keyframes coinrise {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  12% { opacity: 0.95; }
  70% { opacity: 0.75; }
  100% { transform: translateY(-46px) scale(1.05); opacity: 0; }
}

/* ---------- util ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 26px; } .mt-4 { margin-top: 40px; }
.mb-2 { margin-bottom: 16px; }
.center { text-align: center; }
.txt-gold { color: var(--gold-2); }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Responsif ---------- */
@media (max-width: 1080px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(78vw, 320px);
    background: var(--dark-2);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 76px 14px 90px;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
    overflow-y: auto;
    margin: 0;
    z-index: 110;
  }
  .nav.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.25s ease;
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.5);
  }
  .nav a { padding: 12px 14px; font-size: 1rem; border-radius: 10px; }
  .burger { display: block; z-index: 130; order: 9; }
  .burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger.active span:nth-child(2) { opacity: 0; }
  .burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .search input { width: 150px; }
  .search input:focus { width: 190px; }
  .header-actions .btn { display: none; }
  .nav .nav-cta { display: flex; gap: 10px; margin-top: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1081px) {
  .nav .nav-cta { display: none; }
}

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .page-split { grid-template-columns: minmax(0, 1fr); }
  .page-split .side-col { order: 2; }
  .calc-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-in { padding: 52px 16px 62px; }
  .section { padding: 42px 0; }
  .article-card, .form-card { padding: 22px 18px; }
  .calc { padding: 20px; }
  .calc-out { grid-template-columns: minmax(0, 1fr); }
  .search { display: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .float-cta { height: 60px; }
  .fc-reel { width: 24px; height: 32px; border-radius: 6px; }
  .fc-strip { grid-template-rows: repeat(6, 32px); }
  .fc-strip i { height: 32px; font-size: 0.9rem; }
  @keyframes reelspin { from { transform: translateY(0); } to { transform: translateY(-192px); } }
  .fc-label { display: none; }
  .fc-btn { min-width: 0; flex: 1; padding: 11px 10px; font-size: 0.9rem; }
  .fc-btns { gap: 8px; flex: 1; }
  .footer-legal { padding-bottom: 84px; }
  .prose h2 { font-size: 1.25rem; }
  .prose .figure .imgbox { aspect-ratio: 16 / 10; }
}
