/* =====================================================
   Untung138 — untung138.games
   Tema statis bergaya WordPress (site-header/site-main/site-footer)
   Palet: hitam, merah, hijau, kuning emas, biru, putih
   ===================================================== */

:root {
  --ink: #0b0e16;
  --ink-2: #10151f;
  --card: #151c29;
  --card-2: #1a2333;
  --line: #26314526;
  --line-strong: #26314b;
  --red: #e5484d;
  --red-deep: #b3272e;
  --green: #2fbf71;
  --green-deep: #1d9452;
  --gold: #f2c14e;
  --gold-2: #ffdd7a;
  --blue: #4c8dff;
  --blue-deep: #2f6fe0;
  --white: #ffffff;
  --text: #e9edf5;
  --muted: #a3aec4;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

h1, h2, h3, h4 { line-height: 1.3; overflow-wrap: break-word; }
h1 { font-size: 1.9rem; margin: 0 0 0.8rem; }
h2 { font-size: 1.45rem; margin: 0 0 0.9rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.6rem; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: var(--gold); color: #111; padding: 8px 14px; border-radius: 8px; z-index: 999; }

/* ---------- Utilitas ---------- */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 18px; }
.section { padding: 46px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 30px; }
.section-head .kicker { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.section-head h2 { font-size: 1.55rem; }
.section-head p { color: var(--muted); }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.note { font-size: 0.86rem; color: var(--muted); }
.center { text-align: center; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; font-weight: 700; font-size: 0.98rem;
  border: 0; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s;
  text-decoration: none; line-height: 1.2; min-height: 46px;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, #d9a32b); color: #241a02; box-shadow: 0 6px 18px rgba(242, 193, 78, 0.35); }
.btn-gold:hover { color: #241a02; filter: brightness(1.06); }
.btn-red { background: linear-gradient(135deg, #f0575c, var(--red) 55%, var(--red-deep)); color: #fff; box-shadow: 0 6px 18px rgba(229, 72, 77, 0.35); }
.btn-red:hover { color: #fff; }
.btn-green { background: linear-gradient(135deg, #43d488, var(--green) 55%, var(--green-deep)); color: #04240f; box-shadow: 0 6px 18px rgba(47, 191, 113, 0.3); }
.btn-green:hover { color: #04240f; }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 14, 22, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-strong);
}
.topbar { background: linear-gradient(90deg, var(--red-deep), var(--red)); color: #fff; font-size: 0.8rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; }
.topbar .age { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.badge-18 { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 20px; padding: 0 5px; border-radius: 6px; background: #fff; color: #b3272e; font-weight: 800; font-size: 0.75rem; border: 1.5px solid #b3272e; }
.topbar .area { color: #ffe3e4; }

.main-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; }
.site-branding { display: flex; align-items: center; gap: 10px; }
.site-branding img { width: 40px; height: 40px; border-radius: 10px; }
.site-title { font-size: 1.35rem; font-weight: 800; letter-spacing: 0.5px; margin: 0; }
.site-title a { color: var(--white); }
.site-title .dot { color: var(--red); }
.site-tagline { display: block; font-size: 0.68rem; color: var(--muted); letter-spacing: 1.6px; text-transform: uppercase; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { padding: 9px 20px; font-size: 0.9rem; }
.nav-toggle { display: none; background: transparent; border: 1.5px solid var(--line-strong); color: var(--text); border-radius: 10px; padding: 8px 11px; cursor: pointer; font-size: 1.1rem; line-height: 1; }

/* ---------- Navigasi ---------- */
.main-navigation { background: var(--ink-2); border-bottom: 1px solid var(--line-strong); }
.main-navigation ul { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; padding: 0; margin: 0; }
.main-navigation a {
  display: block; padding: 11px 15px; color: var(--muted); font-weight: 600; font-size: 0.92rem;
  border-radius: 8px 8px 0 0; border-bottom: 3px solid transparent;
}
.main-navigation a:hover, .main-navigation .current-menu-item a { color: var(--gold); border-bottom-color: var(--gold); text-decoration: none; }

/* ---------- Breadcrumb ---------- */
.breadcrumbs { font-size: 0.82rem; color: var(--muted); padding: 14px 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--gold); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,14,22,0.55), rgba(11,14,22,0.92) 78%, var(--ink)); }
.hero-inner { position: relative; padding: 64px 0 56px; max-width: 780px; }
.hero .kicker-pill {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(242, 193, 78, 0.12);
  border: 1px solid rgba(242, 193, 78, 0.45); color: var(--gold-2); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: 2.5rem; margin-bottom: 14px; color: var(--white); }
.hero h1 .accent { color: var(--gold); }
.hero p.lead { font-size: 1.08rem; color: #cfd7e6; max-width: 640px; margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; font-size: 0.86rem; color: var(--muted); }
.hero-trust li { display: flex; align-items: center; gap: 7px; }
.hero-trust .tick { color: var(--green); font-weight: 800; }

/* ---------- Kartu & Grid ---------- */
.grid { display: grid; gap: 20px; }
.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)); }

.card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { color: var(--white); }
.card p { color: var(--muted); font-size: 0.94rem; }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 14px; background: rgba(76, 141, 255, 0.14); border: 1px solid rgba(76, 141, 255, 0.3);
}
.icon.i-red { background: rgba(229, 72, 77, 0.14); border-color: rgba(229, 72, 77, 0.35); }
.icon.i-green { background: rgba(47, 191, 113, 0.14); border-color: rgba(47, 191, 113, 0.35); }
.icon.i-gold { background: rgba(242, 193, 78, 0.14); border-color: rgba(242, 191, 113, 0.4); }

/* Kartu kategori */
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); background: var(--card); display: flex; flex-direction: column; }
.cat-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cat-card .cat-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cat-card h3 a { color: var(--white); }
.cat-card h3 a:hover { color: var(--gold); text-decoration: none; }
.cat-card p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.cat-card .more { font-size: 0.88rem; font-weight: 700; color: var(--gold); }

/* ---------- Langkah ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { position: relative; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 24px 20px 20px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: -14px; left: 18px; background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #241a02; font-weight: 800; font-size: 0.85rem; padding: 3px 12px; border-radius: 999px; box-shadow: 0 4px 12px rgba(242, 193, 78, 0.35);
}
.step h3 { font-size: 1.02rem; color: var(--white); margin-top: 6px; }
.step p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ---------- Tabel ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; border: 1px solid var(--line-strong); }
table.table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.92rem; background: var(--card); }
.table th { background: var(--ink-2); color: var(--gold); text-align: left; padding: 12px 14px; white-space: nowrap; }
.table td { padding: 12px 14px; border-top: 1px solid var(--line-strong); color: var(--text); vertical-align: top; }
.table tr:hover td { background: rgba(76, 141, 255, 0.05); }

/* ---------- Artikel / entry-content ---------- */
.page-hero { padding: 34px 0 10px; }
.page-hero h1 { color: var(--white); }
.page-hero .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; }
.meta .chip { display: inline-flex; align-items: center; gap: 5px; }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; padding: 20px 0 50px; align-items: start; }
.entry-content { background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.entry-content h2 { color: var(--gold); margin: 30px 0 12px; padding-top: 10px; border-top: 1px dashed var(--line-strong); }
.entry-content h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.entry-content h3 { color: var(--white); margin: 22px 0 8px; }
.entry-content p { color: #cfd7e6; }
.entry-content ul li, .entry-content ol li { margin-bottom: 8px; color: #cfd7e6; }
.entry-content img.rounded { border-radius: 12px; margin: 18px 0; border: 1px solid var(--line-strong); width: 100%; }
.entry-content .img-caption { font-size: 0.8rem; color: var(--muted); text-align: center; margin: -12px 0 18px; }

.callout { border-left: 4px solid var(--blue); background: rgba(76, 141, 255, 0.08); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 18px 0; font-size: 0.94rem; color: #cfd7e6; }
.callout.warn { border-left-color: var(--red); background: rgba(229, 72, 77, 0.08); }
.callout.good { border-left-color: var(--green); background: rgba(47, 191, 113, 0.08); }
.callout strong { color: var(--white); }

.article-footer { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-strong); display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Sidebar ---------- */
.sidebar .widget { background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.widget-title { font-size: 1rem; color: var(--gold); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px dashed var(--line-strong); }
.widget ul { list-style: none; padding: 0; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid rgba(38, 49, 75, 0.5); font-size: 0.9rem; }
.widget ul li:last-child { border-bottom: 0; }
.widget ul li a { color: var(--text); }
.widget ul li a:hover { color: var(--gold); }
.widget .btn { width: 100%; }

/* ---------- Tag cloud ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  display: inline-block; padding: 6px 13px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  background: var(--ink-2); border: 1px solid var(--line-strong); color: var(--muted);
}
.tag-cloud a:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; transform: translateY(-1px); }
.tag-cloud a.hot { border-color: rgba(229, 72, 77, 0.5); color: #ff9a9d; background: rgba(229, 72, 77, 0.08); }

/* ---------- Testimoni ---------- */
.quote-card { background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 22px; position: relative; }
.quote-card::before { content: "\201C"; position: absolute; top: 2px; right: 16px; font-size: 4rem; color: rgba(242, 193, 78, 0.18); font-family: Georgia, serif; line-height: 1; }
.quote-card p { font-size: 0.93rem; color: #cfd7e6; font-style: italic; }
.quote-card .who { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.quote-card .avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #241a02; background: linear-gradient(135deg, var(--gold-2), var(--gold)); flex: none; }
.quote-card .who b { display: block; color: var(--white); font-size: 0.9rem; }
.quote-card .who span { font-size: 0.78rem; color: var(--muted); }

/* ---------- Kalkulator anggaran ---------- */
.calc { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.calc label { font-size: 0.85rem; color: var(--muted); display: block; margin-bottom: 6px; font-weight: 600; }
.calc input, .calc select {
  width: 100%; padding: 11px 12px; border-radius: 10px; border: 1.5px solid var(--line-strong);
  background: var(--ink-2); color: var(--text); font-size: 1rem; font-family: var(--font);
}
.calc input:focus, .calc select:focus { outline: none; border-color: var(--gold); }
.calc-result { grid-column: 1 / -1; display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 4px; }
.calc-box { background: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 12px; padding: 14px; text-align: center; }
.calc-box b { display: block; font-size: 1.25rem; color: var(--gold); overflow-wrap: break-word; }
.calc-box span { font-size: 0.76rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-item { background: var(--card); border: 1px solid var(--line-strong); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 52px 16px 18px; font-weight: 700; color: var(--white);
  position: relative; font-size: 0.98rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: var(--ink-2); border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; color: var(--gold); font-weight: 700;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 18px 16px; color: var(--muted); font-size: 0.93rem; }

/* ---------- CTA strip ---------- */
.cta-strip { background: linear-gradient(120deg, var(--red-deep), var(--red) 50%, #7c1a20); border-radius: var(--radius); padding: 34px 26px; text-align: center; border: 1px solid rgba(255, 255, 255, 0.12); position: relative; overflow: hidden; }
.cta-strip::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(242, 193, 78, 0.25), transparent 45%); }
.cta-strip h2 { color: var(--white); position: relative; }
.cta-strip p { color: #ffe3e4; position: relative; max-width: 620px; margin: 0 auto 18px; }
.cta-strip .btn { position: relative; }

/* ---------- Form auth ---------- */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 28px; align-items: start; padding: 26px 0 54px; }
.auth-card { background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.5rem; color: var(--white); }
.auth-card .sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 20px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.form-field input {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line-strong);
  background: var(--ink-2); color: var(--text); font-size: 1rem; font-family: var(--font);
}
.form-field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.15); }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.84rem; color: var(--muted); margin: 14px 0 18px; }
.form-check input { margin-top: 4px; accent-color: var(--green); width: 16px; height: 16px; flex: none; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 14px; text-align: center; }
.auth-side .widget { margin-bottom: 20px; }
.auth-side ul { list-style: none; padding: 0; }
.auth-side ul li { display: flex; gap: 10px; margin-bottom: 10px; font-size: 0.9rem; color: var(--muted); }
.auth-side ul li .b { color: var(--green); font-weight: 800; }

/* ---------- Pencarian ---------- */
.search-form { display: flex; gap: 10px; }
.search-form input {
  flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong);
  background: var(--ink-2); color: var(--text); font-size: 1rem; font-family: var(--font);
}
.search-form input:focus { outline: none; border-color: var(--gold); }
.search-form .btn { border-radius: 999px; }
.search-results { margin-top: 26px; }
.search-result { background: var(--card); border: 1px solid var(--line-strong); border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; }
.search-result h3 a { color: var(--white); }
.search-result h3 a:hover { color: var(--gold); text-decoration: none; }
.search-result p { color: var(--muted); font-size: 0.9rem; margin: 4px 0 0; }
.search-result .url { display: block; font-size: 0.78rem; color: var(--green); margin-bottom: 4px; }
mark { background: rgba(242, 193, 78, 0.3); color: var(--gold-2); border-radius: 3px; padding: 0 2px; }

/* ---------- Keamanan / RG ---------- */
.rg-box { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rg-item { background: var(--card); border: 1px solid var(--line-strong); border-radius: 12px; padding: 18px; }
.rg-item h3 { font-size: 0.98rem; color: var(--green); }
.rg-item p { font-size: 0.88rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: #080b12; border-top: 1px solid var(--line-strong); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; padding: 42px 0 26px; }
.footer-col .ftitle { color: var(--gold); font-size: 0.95rem; font-weight: 700; margin-bottom: 14px; }
.footer-col p { color: var(--muted); font-size: 0.88rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a { color: var(--muted); font-size: 0.88rem; }
.footer-col ul a:hover { color: var(--gold); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { width: 36px; height: 36px; border-radius: 9px; }
.footer-brand b { color: var(--white); font-size: 1.1rem; }
.footer-legal { border-top: 1px solid rgba(38, 49, 75, 0.6); padding: 18px 0 22px; font-size: 0.78rem; color: #77839b; text-align: center; }
.footer-legal .age-line { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.footer-legal .age-line .badge-18 { min-width: 30px; height: 22px; }

/* ---------- Floating CTA (gaya slot + koin) ---------- */
.float-cta {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%);
  z-index: 90; display: flex; align-items: stretch; gap: 0;
  border-radius: 999px; overflow: hidden; text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(242, 193, 78, 0.5), 0 0 22px rgba(242, 193, 78, 0.28);
  animation: ctaPulse 2.4s ease-in-out infinite;
}
.float-cta:hover { text-decoration: none; }
.float-cta .reels { display: flex; align-items: center; gap: 4px; background: linear-gradient(180deg, #1d2434, #10151f); padding: 8px 10px; border-right: 2px solid rgba(242, 193, 78, 0.6); }
.float-cta .reel {
  width: 24px; height: 32px; border-radius: 6px; background: #fff; color: #b3272e;
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 0.95rem;
  border: 1px solid #d8dee9; overflow: hidden;
}
.float-cta .reel span { display: block; animation: reelSpin 1.6s steps(4) infinite; }
.float-cta .reel:nth-child(2) span { animation-delay: 0.2s; }
.float-cta .reel:nth-child(3) span { animation-delay: 0.4s; }
.float-cta .cta-label {
  display: flex; align-items: center; gap: 9px; padding: 0 24px 0 14px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 60%, #d9a32b);
  color: #241a02; font-weight: 900; font-size: 1.05rem; letter-spacing: 1.5px; white-space: nowrap;
}
.float-cta .coin {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #fff3c4, var(--gold) 55%, #a87b14);
  border: 2px solid #a87b14; position: relative;
  animation: coinFlip 1.8s ease-in-out infinite;
}
.float-cta .coin::after {
  content: "Rp"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 900; color: #6b4e0a;
}
@keyframes reelSpin {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes coinFlip {
  0%, 100% { transform: rotateY(0deg) scale(1); }
  50% { transform: rotateY(180deg) scale(1.08); }
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(242, 193, 78, 0.5), 0 0 18px rgba(242, 193, 78, 0.25); }
  50% { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(242, 193, 78, 0.8), 0 0 34px rgba(242, 193, 78, 0.5); }
}

/* Ruang untuk floating CTA tanpa menambah area kosong berlebih */
body { padding-bottom: 74px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .content-layout { grid-template-columns: minmax(0, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rg-box { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-wrap { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .hero h1 { font-size: 1.85rem; }
  .hero-inner { padding: 44px 0 40px; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc-result { grid-template-columns: minmax(0, 1fr); }
  .header-actions .btn span { display: none; }
  .header-actions .btn { padding: 9px 14px; }
  .main-navigation { display: none; }
  .main-navigation.open { display: block; }
  .main-navigation ul { flex-direction: column; padding: 8px 12px 12px; }
  .main-navigation a { border-radius: 8px; border-bottom: 0; }
  .main-navigation li.current-menu-item a { background: rgba(242, 193, 78, 0.1); }
  .nav-toggle { display: inline-flex; align-items: center; }
  .section { padding: 34px 0; }
}

@media (max-width: 480px) {
  body { font-size: 15px; padding-bottom: 70px; }
  .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .rg-box { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .entry-content { padding: 18px; }
  .auth-card { padding: 20px; }
  .hero h1 { font-size: 1.6rem; }
  .btn { width: 100%; }
  .hero-cta .btn, .header-actions .btn { width: auto; }
  .float-cta .cta-label { padding: 0 18px 0 12px; font-size: 0.95rem; letter-spacing: 1px; }
  .float-cta .reel { width: 20px; height: 28px; font-size: 0.8rem; }
  .float-cta .reels { padding: 7px 8px; gap: 3px; }
  .float-cta { bottom: 10px; }
  .topbar .area { display: none; }
  h1 { font-size: 1.5rem; }
  .search-form { flex-direction: column; }
  .search-form .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

@media print {
  .float-cta, .site-header, .main-navigation { display: none; }
  body { background: #fff; color: #000; }
}
