/* ============================================================
   Mimpi88 - style.css
   Palet: hitam-plum, merah casino, emas, hijau aksen, biru info.
   Responsif: desktop / tablet / ponsel. Tanpa dependensi eksternal.
   ============================================================ */

:root {
  --ink: #17121e;
  --ink-2: #241b2e;
  --ink-3: #2f2440;
  --paper: #fbf7f0;
  --card: #ffffff;
  --line: #e9e1d4;
  --red: #c8102e;
  --red-deep: #9c0c23;
  --red-soft: #fdecef;
  --gold: #e8a812;
  --gold-2: #ffc94d;
  --gold-soft: #fff4d8;
  --green: #1f8a5b;
  --green-soft: #e7f5ee;
  --blue: #2c6baa;
  --blue-soft: #e9f1f9;
  --text: #2b2433;
  --muted: #6f6580;
  --shadow: 0 10px 30px rgba(23, 18, 30, 0.10);
  --shadow-lg: 0 18px 50px rgba(23, 18, 30, 0.18);
  --radius: 16px;
  --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; }

html, body { max-width: 100%; overflow-x: hidden; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  padding-bottom: 84px; /* ruang untuk floatbar tetap, tanpa area kosong ekstra */
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 1.25rem; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--ink); padding: 10px 18px;
  font-weight: 700; border-radius: 0 0 10px 0; z-index: 300;
}
.skip-link:focus { left: 0; }

::selection { background: var(--gold-2); color: var(--ink); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------------- header ---------------- */

.site-header {
  position: sticky; top: 0; z-index: 120;
  background: linear-gradient(180deg, #1d1626 0%, var(--ink) 100%);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--gold) 0%, var(--red) 55%, var(--ink-3) 100%) 1;
}

.header-inner {
  display: flex; align-items: center; gap: 22px;
  min-height: 68px; flex-wrap: wrap;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }

.brand-mark { display: inline-flex; align-items: center; justify-content: center; }

.brand-name {
  font-size: 1.3rem; font-weight: 800; letter-spacing: 0.06em;
  color: #fdfaf4; line-height: 1;
}
.brand-name .tld { color: var(--gold-2); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; padding: 0; flex-wrap: wrap; }
.main-nav a {
  display: block; padding: 9px 13px; border-radius: 9px;
  color: #ded4c8; font-weight: 600; font-size: 0.95rem;
}
.main-nav a:hover { color: #fff; background: rgba(232, 168, 18, 0.14); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--gold-2); background: rgba(232, 168, 18, 0.12); }

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

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
  background: transparent; color: #ded4c8; border: 1px solid rgba(222, 212, 200, 0.35);
}
.icon-btn:hover { color: #fff; border-color: var(--gold); }

.nav-toggle { display: none; }

/* ---------------- buttons & badges ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 11px; font-weight: 800; font-size: 0.92rem;
  letter-spacing: 0.04em; border: 2px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-gold {
  background: linear-gradient(180deg, var(--gold-2) 0%, var(--gold) 100%);
  color: var(--ink); box-shadow: 0 6px 18px rgba(232, 168, 18, 0.35);
}
.btn-gold:hover { box-shadow: 0 10px 24px rgba(232, 168, 18, 0.45); }

.btn-red {
  background: linear-gradient(180deg, #e01535 0%, var(--red-deep) 100%);
  color: #fff; box-shadow: 0 6px 18px rgba(200, 16, 46, 0.30);
}

.btn-outline {
  border-color: rgba(222, 212, 200, 0.55); color: #f2ece2; background: transparent;
}
.btn-outline:hover { border-color: var(--gold-2); color: var(--gold-2); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--card); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: 999px; font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.05em;
}
.badge-red { background: var(--red-soft); color: var(--red-deep); }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-gold { background: var(--gold-soft); color: #8a6407; }
.badge-blue { background: var(--blue-soft); color: var(--blue); }

/* ---------------- hero (beranda) ---------------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(232, 168, 18, 0.16), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(200, 16, 46, 0.20), transparent 55%),
    linear-gradient(180deg, #1d1626 0%, var(--ink) 100%);
  color: #f4efe6;
  padding: 64px 0 72px;
}

.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold-2); font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; font-size: 0.78rem; margin-bottom: 16px;
}
.hero-eyebrow::before { content: ""; width: 34px; height: 3px; border-radius: 2px; background: var(--gold); }

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3.05rem); line-height: 1.15; font-weight: 800;
  color: #ffffff; letter-spacing: -0.01em; margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--gold-2); }

.hero-lead { font-size: 1.06rem; color: #d9cfc2; max-width: 34rem; margin-bottom: 26px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid rgba(232, 168, 18, 0.4); color: #e8ddc9;
  padding: 6px 13px; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  background: rgba(232, 168, 18, 0.07);
}

.hero-media { position: relative; }

.hero-frame {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 3px solid rgba(232, 168, 18, 0.65);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

.hero-note {
  position: absolute; left: -14px; bottom: 22px;
  background: rgba(23, 18, 30, 0.92); border: 1px solid rgba(232, 168, 18, 0.5);
  color: #f2ece2; padding: 10px 16px; border-radius: 12px;
  font-size: 0.82rem; font-weight: 600; max-width: 240px;
  box-shadow: var(--shadow-lg);
}
.hero-note strong { color: var(--gold-2); }

.hero-cat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: 40px;
}
.hero-cat {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(232, 168, 18, 0.28);
  border-radius: 12px; padding: 11px 13px; color: #e8ddc9;
  font-weight: 700; font-size: 0.86rem;
}
.hero-cat:hover { border-color: var(--gold-2); color: #fff; text-decoration: none; background: rgba(232, 168, 18, 0.12); }
.hero-cat svg { flex: 0 0 auto; }

/* ---------------- sections umum ---------------- */

.section { padding: 62px 0; }
.section-alt { background: #ffffff; }
.section-dark {
  background:
    radial-gradient(800px 400px at 110% 0%, rgba(232, 168, 18, 0.12), transparent 55%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
  color: #ece4d6;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--red); font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; font-size: 0.75rem; margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--gold); }
.section-dark .eyebrow { color: var(--gold-2); }

.section-head { max-width: 46rem; margin-bottom: 34px; }
.section-head h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.25; color: var(--ink);
  letter-spacing: -0.01em;
}
.section-dark .section-head h2 { color: #fff; }
.section-head p { margin-top: 10px; color: var(--muted); }
.section-dark .section-head p { color: #cfc4b4; }

.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-center .eyebrow::before { display: none; }

/* ---------------- promo cards ---------------- */

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

.promo-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.promo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.promo-media { position: relative; }
.promo-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.promo-tag {
  position: absolute; left: 14px; top: 14px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--ink); font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.06em; padding: 5px 12px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.promo-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.promo-body h3 { font-size: 1.08rem; color: var(--ink); line-height: 1.35; }
.promo-body h3 a { color: inherit; }
.promo-body p { font-size: 0.9rem; color: var(--muted); flex: 1; }

.promo-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.promo-meta span {
  font-size: 0.72rem; font-weight: 700; color: var(--ink-3);
  background: var(--paper); border: 1px solid var(--line);
  padding: 3px 10px; border-radius: 999px;
}

.promo-link { font-weight: 800; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 6px; }
.promo-link::after { content: "\2192"; transition: transform 0.15s ease; }
.promo-link:hover::after { transform: translateX(3px); }

/* ---------------- feature cards (keunggulan) ---------------- */

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

.feature-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
}
.feature-ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  background: var(--gold-soft); color: #8a6407;
}
.feature-ico.red { background: var(--red-soft); color: var(--red); }
.feature-ico.green { background: var(--green-soft); color: var(--green); }
.feature-ico.blue { background: var(--blue-soft); color: var(--blue); }
.feature-card h3 { font-size: 1.05rem; color: var(--ink); margin-bottom: 8px; }
.feature-card p { font-size: 0.92rem; color: var(--muted); }

/* ---------------- mobile experience ---------------- */

.mobile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }

.phone-mock {
  position: relative; max-width: 340px; margin: 0 auto;
  border-radius: 34px; background: var(--ink); padding: 12px;
  box-shadow: var(--shadow-lg); border: 1px solid #3a2f4d;
}
.phone-screen { border-radius: 24px; overflow: hidden; background: #0f0b15; }
.phone-screen img { aspect-ratio: 3 / 4.6; object-fit: cover; width: 100%; }
.phone-dot {
  position: absolute; top: -10px; right: -10px;
  background: var(--green); color: #fff; font-size: 0.75rem; font-weight: 800;
  padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow-lg);
}

.check-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .ck {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: var(--green-soft); color: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem; margin-top: 2px;
}
.check-list strong { display: block; color: var(--ink); }
.check-list span { font-size: 0.92rem; color: var(--muted); }

/* ---------------- reviews ---------------- */

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

.review-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
}
.stars { color: var(--gold); letter-spacing: 3px; font-size: 1rem; }
.review-card blockquote { font-size: 0.94rem; color: var(--text); font-style: italic; flex: 1; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 0.95rem;
}
.av-red { background: linear-gradient(135deg, var(--red), #e2455c); }
.av-gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--ink); }
.av-green { background: linear-gradient(135deg, var(--green), #2fae7a); }
.reviewer strong { display: block; font-size: 0.92rem; color: var(--ink); }
.reviewer small { color: var(--muted); font-size: 0.78rem; }

.review-note { text-align: center; margin-top: 22px; font-size: 0.8rem; color: var(--muted); }

/* ---------------- langkah / steps ---------------- */

.steps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.step-card {
  display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow);
}
.step-num {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem;
}
.step-card h3 { font-size: 0.98rem; color: var(--ink); margin-bottom: 5px; }
.step-card p { font-size: 0.88rem; color: var(--muted); }

/* ---------------- keamanan (dark) ---------------- */

.security-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }

.shield-ico {
  width: 74px; height: 74px; border-radius: 20px; margin-bottom: 18px;
  background: rgba(232, 168, 18, 0.14); border: 1px solid rgba(232, 168, 18, 0.45);
  display: flex; align-items: center; justify-content: center; color: var(--gold-2);
}

.security-list { list-style: none; padding: 0; display: grid; gap: 13px; }
.security-list li {
  display: flex; gap: 12px; align-items: flex-start; color: #d9cfc2; font-size: 0.94rem;
}
.security-list .dot {
  flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); margin-top: 9px;
}
.security-list strong { color: #fff; }

/* ---------------- artikel ---------------- */

.article-full {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.article-full .cover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.article-body { padding: 30px 34px 34px; }

.prose { font-size: 1.0rem; color: var(--text); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: 1.32rem; color: var(--ink); margin-top: 1.6em; letter-spacing: -0.01em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.08rem; color: var(--ink-3); margin-top: 1.35em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.35rem; display: grid; gap: 0.45em; }
.prose strong { color: var(--ink); }

.note-box, .warn-box {
  border-radius: var(--radius-sm); padding: 15px 18px; font-size: 0.93rem;
  border-left: 4px solid; margin-top: 1.1em;
}
.note-box { background: var(--blue-soft); border-color: var(--blue); color: #23405c; }
.warn-box { background: var(--gold-soft); border-color: var(--gold); color: #5c4a10; }

.figure-inline { margin: 1.3em 0; }
.figure-inline img { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.figure-inline figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 8px; text-align: center; }

/* artikel terkait */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.16s ease;
}
.related-card:hover { transform: translateY(-4px); }
.related-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.related-card .rc-body { padding: 15px 17px 17px; display: grid; gap: 7px; }
.related-card .rc-kicker { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; color: var(--red); text-transform: uppercase; }
.related-card h3 { font-size: 0.97rem; line-height: 1.4; }
.related-card h3 a { color: var(--ink); }

/* ---------------- FAQ ---------------- */

.faq-wrap { max-width: 46rem; margin: 0 auto; display: grid; gap: 12px; }

details.faq {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); overflow: hidden;
}
details.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; font-weight: 700; color: var(--ink); font-size: 0.98rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; margin-left: auto; flex: 0 0 auto; width: 28px; height: 28px;
  border-radius: 50%; background: var(--gold-soft); color: #8a6407;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; transition: transform 0.18s ease;
}
details.faq[open] summary::after { content: "\2212"; transform: rotate(180deg); }
.faq-a { padding: 0 18px 16px; }
.faq-a p { font-size: 0.92rem; color: var(--muted); }

/* ---------------- CTA band ---------------- */

.cta-band {
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(232, 168, 18, 0.18), transparent 60%),
    linear-gradient(120deg, var(--red-deep), var(--red));
  border-radius: var(--radius); color: #fff; padding: 38px 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 26px;
  flex-wrap: wrap; box-shadow: 0 16px 40px rgba(200, 16, 46, 0.28);
}
.cta-band h2 { font-size: 1.35rem; color: #fff; }
.cta-band p { color: #ffd9df; margin-top: 6px; font-size: 0.95rem; }
.cta-band .btn { flex: 0 0 auto; }

/* ---------------- page hero (halaman dalam) ---------------- */

.page-hero {
  background:
    radial-gradient(800px 380px at 90% -20%, rgba(232, 168, 18, 0.16), transparent 60%),
    linear-gradient(180deg, #1d1626, var(--ink));
  color: #ece4d6; padding: 34px 0 38px;
}

.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs li { font-size: 0.8rem; color: #b7ab9b; display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "\203A"; color: var(--gold); font-weight: 800; }
.crumbs a { color: #d9cfc2; }
.crumbs a:hover { color: var(--gold-2); }
.crumbs span[aria-current] { color: var(--gold-2); font-weight: 700; }

.page-hero h1 {
  color: #fff; font-size: clamp(1.5rem, 3.2vw, 2.2rem); line-height: 1.22;
  margin: 14px 0 12px; letter-spacing: -0.01em; max-width: 52rem;
}
.page-hero .lead { color: #cfc4b4; max-width: 46rem; font-size: 1.0rem; }

.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; }
.article-meta span {
  font-size: 0.78rem; color: #b7ab9b; display: inline-flex; align-items: center; gap: 7px;
}
.article-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ---------------- layout artikel halaman ---------------- */

.page-article { max-width: 860px; margin: 0 auto; padding: 34px 0 10px; }

.cover-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.cover-frame img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

.prose-xl { font-size: 1.02rem; }

.article-footer-nav {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line);
}
.pill-link {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700;
  background: var(--card); border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px;
  color: var(--text);
}
.pill-link:hover { border-color: var(--gold); text-decoration: none; color: var(--ink); }

/* ---------------- tabel ketentuan promo ---------------- */

.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); margin-top: 1.1em; background: var(--card); }
table.terms { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.9rem; }
table.terms th, table.terms td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.terms th { background: var(--ink); color: #f2ece2; font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; }
table.terms tr:last-child td { border-bottom: 0; }
table.terms td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }

/* ---------------- auth (daftar / login) ---------------- */

.auth-wrap { padding: 40px 0 20px; }
.auth-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 34px; align-items: start; }

.auth-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 30px 30px 26px;
}
.auth-card h2 { color: var(--ink); font-size: 1.3rem; margin-bottom: 4px; }
.auth-sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 22px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="password"] {
  width: 100%; padding: 12px 15px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--paper); color: var(--text);
  font-family: var(--font); font-size: 0.95rem;
}
.field input:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(232, 168, 18, 0.2); }

.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 18px; font-size: 0.84rem; color: var(--muted); }
.check-row input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--red); }

.form-note {
  background: var(--green-soft); border: 1px solid #bfe3d2; color: #14563a;
  font-size: 0.82rem; border-radius: var(--radius-sm); padding: 11px 14px; margin-bottom: 18px;
  display: flex; gap: 9px;
}
.form-note::before { content: "\2713"; font-weight: 800; }

.auth-side { display: grid; gap: 18px; }
.side-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow);
}
.side-card h3 { font-size: 0.98rem; color: var(--ink); margin-bottom: 9px; display: flex; align-items: center; gap: 8px; }
.side-card p, .side-card li { font-size: 0.87rem; color: var(--muted); }
.side-card ul { padding-left: 1.1rem; display: grid; gap: 6px; margin-top: 6px; }
.side-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.side-img img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

.auth-alt { text-align: center; margin-top: 16px; font-size: 0.88rem; color: var(--muted); }

/* ---------------- floatbar ---------------- */

.floatbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 130;
  background: linear-gradient(90deg, #151020 0%, #2a1120 55%, #3a1220 100%);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -12px 34px rgba(0, 0, 0, 0.4);
}
.floatbar-inner {
  max-width: 1180px; margin: 0 auto; padding: 9px 18px;
  display: flex; align-items: center; gap: 16px; position: relative;
}

.float-reels { flex: 0 0 auto; line-height: 0; }
.reel-spin { animation: reelBob 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.reel-spin.r2 { animation-delay: 0.4s; }
.reel-spin.r3 { animation-delay: 0.8s; }

@keyframes reelBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(1.6px); }
}

.float-copy { display: grid; line-height: 1.25; }
.float-copy strong { color: #fff; font-size: 0.95rem; letter-spacing: 0.03em; }
.float-copy span { color: #b7ab9b; font-size: 0.74rem; }

.float-actions { margin-left: auto; display: flex; gap: 10px; }

.fbtn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: 10px; font-weight: 800; font-size: 0.86rem;
  letter-spacing: 0.05em; border: 2px solid transparent;
}
.fbtn:hover { text-decoration: none; transform: translateY(-1px); }
.fbtn-daftar {
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--ink);
  box-shadow: 0 5px 16px rgba(232, 168, 18, 0.4);
}
.fbtn-masuk { border-color: rgba(232, 168, 18, 0.6); color: var(--gold-2); background: rgba(232, 168, 18, 0.06); }

.float-coin {
  position: absolute; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle at 35% 30%, var(--gold-2), var(--gold) 60%, #b07c0a);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  animation: coinFloat 3.4s ease-in-out infinite;
}
.float-coin.c1 { width: 16px; height: 16px; left: 8%; top: -9px; }
.float-coin.c2 { width: 11px; height: 11px; left: 30%; top: -6px; animation-delay: 0.9s; }
.float-coin.c3 { width: 13px; height: 13px; right: 26%; top: -8px; animation-delay: 1.7s; }

@keyframes coinFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(8deg); }
}

/* ---------------- search overlay ---------------- */

.search-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(15, 11, 21, 0.82);
  display: none; padding: 8vh 18px 18px; overflow-y: auto;
}
.search-overlay.open { display: block; }

.search-panel {
  max-width: 640px; margin: 0 auto; background: var(--ink-2);
  border: 1px solid rgba(232, 168, 18, 0.4); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-lg);
}

.search-top { display: flex; align-items: center; gap: 12px; color: var(--gold-2); }
.search-top input {
  flex: 1; background: #0f0b15; border: 1.5px solid rgba(232, 168, 18, 0.35);
  border-radius: var(--radius-sm); padding: 12px 14px; color: #f2ece2;
  font-family: var(--font); font-size: 1rem;
}
.search-top input:focus { outline: none; border-color: var(--gold); }
.search-close {
  background: transparent; border: 1px solid rgba(232, 168, 18, 0.4); color: var(--gold-2);
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 0.9rem;
}
.search-close:hover { background: rgba(232, 168, 18, 0.12); }

.search-tags { margin-top: 16px; }
.search-tags-title { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: #b7ab9b; margin-bottom: 9px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
  background: rgba(232, 168, 18, 0.08); border: 1px solid rgba(232, 168, 18, 0.35);
  color: #e8ddc9; font-size: 0.8rem; font-weight: 600; padding: 6px 13px;
  border-radius: 999px; cursor: pointer; font-family: var(--font);
}
.tag-chip:hover, .tag-chip.active { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.search-results { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 8px; }
.search-results a {
  display: grid; gap: 3px; background: #0f0b15; border: 1px solid #322842;
  padding: 12px 15px; border-radius: var(--radius-sm); color: #f2ece2;
}
.search-results a:hover { border-color: var(--gold); text-decoration: none; }
.sr-title { font-weight: 700; font-size: 0.93rem; color: var(--gold-2); }
.sr-desc { font-size: 0.8rem; color: #b7ab9b; }

.search-empty { color: #b7ab9b; font-size: 0.88rem; margin-top: 14px; text-align: center; }

/* ---------------- footer ---------------- */

.site-footer { background: var(--ink); color: #cfc4b4; padding: 54px 0 26px; margin-top: 0; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }

.footer-brand p { font-size: 0.87rem; margin-top: 14px; color: #b7ab9b; }
.footer-age {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  font-weight: 800; color: var(--gold-2); font-size: 0.82rem; letter-spacing: 0.05em;
}

.footer-col h2 {
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: #d9cfc2; font-size: 0.89rem; }
.footer-col a:hover { color: var(--gold-2); }

.footer-legal { border-top: 1px solid #322842; margin-top: 40px; padding-top: 24px; }
.footer-legal p { font-size: 0.8rem; color: #9d9285; margin-bottom: 10px; }
.footer-legal strong { color: #cfc4b4; }

.footer-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 18px; }
.footer-badges .badge { border: 1px solid transparent; }
.footer-badges .badge-red { background: rgba(200, 16, 46, 0.18); color: #ff9fae; }
.footer-badges .badge-green { background: rgba(31, 138, 91, 0.18); color: #7fd6ac; }
.footer-badges .badge-gold { background: rgba(232, 168, 18, 0.16); color: var(--gold-2); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between;
  font-size: 0.78rem; color: #8b8074;
}
.footer-bottom a { color: #b7ab9b; text-decoration: underline; }

/* ---------------- utilitas kecil ---------------- */

.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.text-center { text-align: center; }

.list-2col { columns: 2; column-gap: 34px; }
.list-2col li { margin-bottom: 8px; break-inside: avoid; }

/* ---------------- responsive ---------------- */

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink); border-bottom: 3px solid var(--gold);
    box-shadow: var(--shadow-lg); padding: 10px 18px 16px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 11px 14px; font-size: 1rem; }
  .header-inner { position: relative; }
  .header-actions .btn-outline { display: none; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding: 46px 0 54px; }
  .hero-media { max-width: 560px; }
  .hero-cat-row { grid-template-columns: repeat(2, 1fr); }
  .grid-cards, .feature-grid, .review-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .mobile-grid, .security-grid, .auth-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { padding-bottom: 92px; }
  .section { padding: 44px 0; }
  .grid-cards, .feature-grid, .review-grid, .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero h1 { font-size: 1.85rem; }
  .hero-cta .btn { width: 100%; }
  .hero-note { left: 10px; bottom: 12px; }
  .article-body { padding: 22px 20px 26px; }
  .auth-card { padding: 22px 20px; }
  .cta-band { padding: 26px 22px; }
  .cta-band .btn { width: 100%; }
  .list-2col { columns: 1; }

  .floatbar-inner { padding: 8px 12px; gap: 10px; }
  .float-copy { display: none; }
  .float-reels svg { width: 44px; height: 29px; }
  .float-actions { gap: 8px; width: 100%; }
  .fbtn { flex: 1; padding: 11px 10px; font-size: 0.84rem; }
  .float-coin { display: none; }
}

@media (max-width: 400px) {
  .header-actions .btn-gold { padding: 10px 14px; }
  .brand-name { font-size: 1.12rem; }
}

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

/* cetak */
@media print {
  .site-header, .floatbar, .search-overlay, .site-footer, .cta-band { display: none; }
  body { padding: 0; background: #fff; }
}
