/* ==========================================================================
   Slot21 — slot21.games
   Gaya: portal informasi kasino, gelap + emas, aksen merah/hijau/biru.
   Responsif: ponsel, tablet, desktop. Tanpa dependensi eksternal.
   ========================================================================== */

:root {
  --bg: #0b0e14;
  --bg-2: #10141f;
  --panel: #151b29;
  --panel-2: #1b2234;
  --line: #263049;
  --gold: #f7c948;
  --gold-2: #ffd97a;
  --gold-dark: #b8860b;
  --red: #e5484d;
  --red-2: #c93b3f;
  --green: #2fbf71;
  --blue: #4f8ef7;
  --text: #f2f5fa;
  --muted: #a3adbf;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --cta-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(1100px 500px at 85% -5%, rgba(247, 201, 72, 0.07), transparent 60%),
    radial-gradient(900px 480px at -10% 20%, rgba(79, 142, 247, 0.06), transparent 55%),
    var(--bg);
  padding-bottom: var(--cta-h);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--gold-2); }

h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; overflow-wrap: break-word; }

ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: 0.4em; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: #201500; padding: 8px 14px;
  border-radius: 0 0 8px 0; z-index: 200; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer; transition: 0.18s;
  white-space: nowrap;
}
.btn--red { background: linear-gradient(180deg, var(--red), var(--red-2)); color: #fff; box-shadow: 0 6px 18px rgba(229, 72, 77, 0.35); }
.btn--red:hover { filter: brightness(1.08); color: #fff; }
.btn--gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #2a1e04; }
.btn--gold:hover { filter: brightness(1.05); color: #2a1e04; }
.btn--ghost { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn--ghost:hover { background: rgba(247, 201, 72, 0.12); color: var(--gold-2); }
.btn--sm { padding: 8px 16px; font-size: 0.88rem; }
.btn--lg { padding: 14px 30px; font-size: 1.02rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 120;
  background: rgba(11, 14, 20, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-in { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand__name { font-size: 1.25rem; font-weight: 800; letter-spacing: 0.5px; }
.brand__name b { color: var(--gold); }
.main-nav { margin-left: auto; }
.main-nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav__list > li > a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--muted); font-weight: 600; font-size: 0.93rem;
}
.main-nav__list > li > a:hover { color: var(--text); background: var(--panel); }
.main-nav__list > li > a.is-active { color: var(--gold); background: rgba(247, 201, 72, 0.1); }
.nav-drop { position: relative; }
.nav-drop__btn {
  display: flex; align-items: center; gap: 5px; background: none; border: 0;
  color: var(--muted); font: inherit; font-weight: 600; font-size: 0.93rem;
  padding: 8px 12px; border-radius: 8px; cursor: pointer;
}
.nav-drop__btn:hover, .nav-drop__btn[aria-expanded="true"] { color: var(--text); background: var(--panel); }
.nav-drop__menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  list-style: none; margin: 0; padding: 8px; box-shadow: var(--shadow); z-index: 30;
}
.nav-drop:hover .nav-drop__menu, .nav-drop:focus-within .nav-drop__menu,
.nav-drop__btn[aria-expanded="true"] + .nav-drop__menu { display: block; }
.nav-drop__menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--muted); font-size: 0.9rem; }
.nav-drop__menu a:hover { color: var(--gold-2); background: var(--panel); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); color: var(--muted); cursor: pointer; font-size: 1rem;
}
.icon-btn:hover { color: var(--gold); border-color: var(--gold); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--muted); border-radius: 2px; transition: 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { border-top: 1px solid var(--line); background: var(--bg-2); padding: 14px 20px 18px; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu a { display: block; padding: 10px 6px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu a:hover, .mobile-menu a.is-active { color: var(--gold); }
.mobile-menu__group { padding: 14px 6px 4px; color: var(--gold); font-size: 0.8rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.mobile-menu__auth { display: flex; gap: 10px; margin-top: 16px; }
.mobile-menu__auth .btn { flex: 1; }

/* ---------- breadcrumb ---------- */
.crumbs { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 10px 0; font-size: 0.82rem; }
.crumbs li { color: var(--muted); margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--gold); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold-2); }
.crumbs [aria-current="page"] { color: var(--gold); }

/* ---------- section ---------- */
.section { padding: 56px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.kicker {
  display: inline-block; color: var(--gold); font-size: 0.78rem; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px;
}
.section-sub { color: var(--muted); margin: 0; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 66px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(247, 201, 72, 0.1); border: 1px solid rgba(247, 201, 72, 0.4);
  color: var(--gold-2); border-radius: 999px; padding: 6px 14px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.6px; margin-bottom: 18px;
}
.hero h1 { font-size: 2.55rem; margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__lead { color: var(--muted); font-size: 1.05rem; max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 22px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--panel); border: 1px solid var(--line);
  padding: 6px 13px; border-radius: 999px; font-size: 0.8rem; color: var(--muted);
}
.chip svg, .chip .dot { flex: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.hero__media { position: relative; }
.hero__frame {
  border-radius: var(--radius); overflow: hidden; border: 2px solid rgba(247, 201, 72, 0.55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.hero__float {
  position: absolute; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 16px; box-shadow: var(--shadow);
}
.hero__float strong { display: block; color: var(--gold); font-size: 1.05rem; }
.hero__float span { font-size: 0.76rem; color: var(--muted); }
.hero__float--a { top: -16px; left: -26px; }
.hero__float--b { bottom: -18px; right: -10px; }

/* ---------- kartu keunggulan ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px; transition: 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(247, 201, 72, 0.5); }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; font-size: 1.3rem;
  background: rgba(247, 201, 72, 0.12); margin-bottom: 16px; flex: none;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- panel editorial (mengapa memilih) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.reason { display: flex; gap: 16px; margin-bottom: 22px; }
.reason__num {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #2a1e04; font-weight: 800; font-size: 1rem;
}
.reason h3 { margin-bottom: 4px; font-size: 1.05rem; }
.reason p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.panel {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 28px;
}
.panel h3 { color: var(--gold); }
.panel ul { list-style: none; padding: 0; margin: 0; }
.panel li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px dashed var(--line); color: var(--muted); font-size: 0.92rem; }
.panel li:last-child { border-bottom: 0; }
.tick { color: var(--green); font-weight: 800; flex: none; }

/* ---------- mockup ponsel ---------- */
.phone {
  width: 250px; margin: 0 auto; border: 10px solid #1c2336;
  border-radius: 34px; background: var(--bg-2); box-shadow: var(--shadow);
  overflow: hidden; flex: none;
}
.phone__bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--panel); font-size: 0.7rem; color: var(--gold); font-weight: 800; }
.phone__body { padding: 12px; }
.phone__hero { height: 74px; border-radius: 10px; background: linear-gradient(120deg, #2a2410, #442a12); display: flex; align-items: center; padding: 0 12px; margin-bottom: 10px; }
.phone__hero span { font-size: 0.62rem; color: var(--gold-2); font-weight: 700; }
.phone__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone__cell { height: 52px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.phone__text { height: 8px; border-radius: 4px; background: var(--panel-2); margin: 8px 6px; }
.phone__text--s { width: 62%; }

/* ---------- ulasan pembaca ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.review__quote { color: var(--text); font-size: 0.95rem; margin: 0; flex: 1; }
.review__quote::before { content: "“"; color: var(--gold); font-size: 1.6rem; line-height: 0; margin-right: 2px; }
.review__who { display: flex; align-items: center; gap: 10px; }
.review__avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem; color: #2a1e04;
}
.review__who strong { display: block; font-size: 0.88rem; }
.review__who span { font-size: 0.76rem; color: var(--muted); }
.note-disclaimer {
  margin-top: 22px; text-align: center; color: var(--muted); font-size: 0.8rem;
  background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 12px 18px;
}

/* ---------- fakta / mitos ---------- */
.myth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.myth {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; gap: 16px; align-items: flex-start;
}
.myth__tag {
  flex: none; padding: 5px 12px; border-radius: 999px; font-size: 0.72rem;
  font-weight: 800; letter-spacing: 1px; margin-top: 2px;
}
.myth__tag--mitos { background: rgba(229, 72, 77, 0.15); color: #ff8f93; border: 1px solid rgba(229, 72, 77, 0.4); }
.myth__tag--fakta { background: rgba(47, 191, 113, 0.15); color: #7fe0ac; border: 1px solid rgba(47, 191, 113, 0.4); }
.myth p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.myth strong { color: var(--text); display: block; margin-bottom: 4px; font-size: 0.98rem; }

/* ---------- keamanan & privasi ---------- */
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sec-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.sec-card h3 { display: flex; align-items: center; gap: 10px; }
.sec-card .card__icon { margin-bottom: 12px; }
.sec-card ul { color: var(--muted); font-size: 0.92rem; }
.terms-box {
  grid-column: 1 / -1; background: rgba(79, 142, 247, 0.07);
  border: 1px solid rgba(79, 142, 247, 0.35); border-radius: var(--radius); padding: 24px 26px;
}
.terms-box h3 { color: var(--blue); }
.terms-box ul { color: var(--muted); font-size: 0.92rem; }

/* ---------- artikel ---------- */
.article-wrap { max-width: 820px; margin: 0 auto; }
.article-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.article-featured figure { margin: 0; }
.article-featured .fig-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.article-featured img { width: 100%; object-fit: cover; }
.article-meta { color: var(--muted); font-size: 0.82rem; margin-bottom: 14px; }
.article-meta time { color: var(--gold); font-weight: 700; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose p { color: #cfd6e4; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul li, .prose ol li { color: #cfd6e4; }
.prose figure { margin: 1.4em 0; }
.prose .fig-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.prose figcaption { font-size: 0.8rem; color: var(--muted); padding: 10px 4px 0; }
.info-box {
  background: rgba(47, 191, 113, 0.08); border: 1px solid rgba(47, 191, 113, 0.35);
  border-radius: var(--radius-sm); padding: 16px 20px; font-size: 0.9rem; color: var(--muted);
}
.info-box strong { color: var(--green); }
.warn-box {
  background: rgba(229, 72, 77, 0.08); border: 1px solid rgba(229, 72, 77, 0.35);
  border-radius: var(--radius-sm); padding: 16px 20px; font-size: 0.9rem; color: var(--muted);
}
.warn-box strong { color: #ff8f93; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 20px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; padding: 16px 34px 16px 0; font-weight: 700; position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-size: 1.3rem; font-weight: 700;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); font-size: 0.94rem; margin: 0 0 18px; }

/* ---------- kartu tautan (hub) ---------- */
.link-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.link-card {
  display: flex; gap: 14px; align-items: flex-start; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; transition: 0.2s;
}
.link-card:hover { border-color: rgba(247, 201, 72, 0.5); transform: translateY(-3px); }
.link-card__icon {
  flex: none; width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
  background: rgba(247, 201, 72, 0.12);
}
.link-card strong { display: block; font-size: 0.95rem; }
.link-card span { font-size: 0.8rem; color: var(--muted); }
.link-card a.stretched { position: static; color: inherit; }
.link-card a.stretched::after { content: ""; position: absolute; inset: 0; }
.link-card { position: relative; }

/* ---------- header halaman kategori/artikel ---------- */
.page-hero { padding: 46px 0 10px; }
.page-hero__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; align-items: center; }
.page-hero h1 { font-size: 2rem; }
.page-hero .lead { color: var(--muted); font-size: 1rem; }
.page-hero__media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }

/* ---------- halaman promosi ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promo-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: 0.2s;
}
.promo-card:hover { border-color: rgba(247, 201, 72, 0.55); transform: translateY(-4px); }
.promo-card__banner { height: 158px; position: relative; }
.promo-card__banner img { width: 100%; height: 100%; object-fit: cover; }
.promo-card__banner--g1 { background: linear-gradient(120deg, #3a2c10, #6b4a12); }
.promo-card__banner--g2 { background: linear-gradient(120deg, #0e3524, #14603c); }
.promo-card__banner--g3 { background: linear-gradient(120deg, #0f2747, #1c4a7e); }
.promo-card__banner--g4 { background: linear-gradient(120deg, #451518, #7e2429); }
.promo-card__banner--g5 { background: linear-gradient(120deg, #241f2c, #4a3a12); }
.promo-card__banner--g6 { background: linear-gradient(120deg, #10262e, #1d4f5e); }
.promo-card__banner .big {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}
.promo-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.promo-card__body h3 { margin: 0; }
.promo-card__body p { color: var(--muted); font-size: 0.88rem; margin: 0; flex: 1; }
.promo-card__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-chip {
  font-size: 0.7rem; padding: 3px 10px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
}
.promo-card .btn { align-self: flex-start; }

/* tabel ketentuan */
.terms-table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 0.92rem; }
.terms-table th, .terms-table td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; }
.terms-table th { background: var(--panel-2); color: var(--gold); width: 32%; }
.terms-table td { color: #cfd6e4; background: var(--panel); }
.terms-table tr { break-inside: avoid; }

/* ---------- halaman auth ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 54px 0; }
.auth-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 32px; box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-card > p { color: var(--muted); font-size: 0.9rem; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="search"] {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg-2); color: var(--text);
  font: inherit; font-size: 0.95rem;
}
.field input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.field .hint { font-size: 0.76rem; color: var(--muted); margin-top: 5px; }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 0.84rem; color: var(--muted); margin: 4px 0 18px; }
.checkline input { margin-top: 4px; accent-color: var(--gold); width: 16px; height: 16px; flex: none; }
.form-note {
  font-size: 0.78rem; color: var(--muted); background: var(--bg-2);
  border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 16px;
}
.auth-side img { border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 18px; }
.auth-side h2 { font-size: 1.2rem; }
.auth-side ul { font-size: 0.9rem; color: var(--muted); }

/* ---------- tag / pencarian ---------- */
.tag {
  display: inline-block; padding: 5px 13px; border-radius: 999px; font-size: 0.8rem;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted); margin: 0 6px 8px 0;
}
.tag:hover { color: var(--gold); border-color: var(--gold); }
.tag-cloud { margin-top: 4px; }
.search-overlay {
  position: fixed; inset: 0; z-index: 180; background: rgba(7, 9, 14, 0.88);
  display: flex; align-items: flex-start; justify-content: center; padding: 90px 20px 40px;
  backdrop-filter: blur(4px); overflow-y: auto;
}
.search-overlay[hidden], .mobile-menu[hidden], [hidden] { display: none !important; }
.search-panel {
  width: 100%; max-width: 640px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.search-panel__head { display: flex; gap: 12px; align-items: center; }
.search-form { display: flex; gap: 10px; flex: 1; }
.search-form input {
  flex: 1; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font: inherit;
}
.search-form input:focus { outline: 2px solid var(--gold); }
.search-panel__tags { margin-top: 16px; font-size: 0.82rem; color: var(--muted); }
.search-panel__label { font-weight: 700; }
.search-results { margin-top: 14px; }
.search-results .sr-item {
  display: block; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); margin-bottom: 8px; color: var(--text);
}
.search-results .sr-item:hover { border-color: var(--gold); }
.search-results .sr-item strong { color: var(--gold-2); display: block; }
.search-results .sr-item span { font-size: 0.8rem; color: var(--muted); }
.search-empty { color: var(--muted); font-size: 0.9rem; padding: 8px 4px; }
#homeSearchResults { max-width: 820px; margin: 0 auto 20px; }
#homeSearchResults .sr-list { display: grid; gap: 10px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 52px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 1.2fr; gap: 34px; margin-bottom: 34px; }
.footer-col--about p { color: var(--muted); font-size: 0.86rem; margin: 14px 0 0; }
.footer-col h3 { font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul a { color: var(--muted); font-size: 0.88rem; display: inline-block; padding: 4px 0; }
.footer-col ul a:hover { color: var(--gold-2); }
.footer-compliance {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  padding: 20px 24px; font-size: 0.8rem; color: var(--muted);
}
.footer-compliance__badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; }
.badge-18 {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 30px; border-radius: 8px; font-weight: 800;
  border: 2px solid var(--red); color: #ff9a9e; padding: 0 8px;
}
.badge-rg { font-weight: 700; color: var(--green); }
.footer-compliance p { margin: 0 0 10px; }
.footer-bottom { text-align: center; color: var(--muted); font-size: 0.78rem; margin-top: 26px; }

/* ---------- floating CTA (tanpa tombol tutup) ---------- */
.float-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: linear-gradient(180deg, rgba(17, 21, 33, 0.97), rgba(10, 13, 20, 0.99));
  border-top: 2px solid var(--gold);
  box-shadow: 0 -12px 34px rgba(0, 0, 0, 0.5);
  padding: 10px 0;
}
.float-cta__in { display: flex; align-items: center; gap: 18px; }
.float-cta__machine {
  position: relative; display: flex; gap: 5px; flex: none;
  background: linear-gradient(180deg, #2a3145, #171d2c);
  border: 2px solid var(--gold); border-radius: 12px; padding: 6px 8px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}
.reel {
  width: 26px; height: 34px; overflow: hidden; border-radius: 6px;
  background: #0d1120; display: flex; flex-direction: column; align-items: center;
}
.reel span { height: 34px; display: flex; align-items: center; font-size: 1.05rem; line-height: 1; }
.reel { animation: reelSpin 3.2s linear infinite; }
.reel:nth-child(2) { animation-duration: 3.8s; }
.reel:nth-child(3) { animation-duration: 2.7s; }
@keyframes reelSpin {
  from { transform: translateY(0); }
  to { transform: translateY(-136px); }
}
.float-cta__coin { position: absolute; font-size: 1.05rem; animation: coinFloat 2.6s ease-in-out infinite; }
.float-cta__coin.c1 { top: -16px; right: -12px; }
.float-cta__coin.c2 { bottom: -14px; right: -22px; animation-delay: 1.3s; }
@keyframes coinFloat {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-7px) rotate(10deg); }
}
.float-cta__text { display: flex; flex-direction: column; line-height: 1.25; margin-right: auto; }
.float-cta__text strong { color: var(--gold); font-size: 1.05rem; letter-spacing: 0.5px; }
.float-cta__text span { color: var(--muted); font-size: 0.78rem; }
@media (prefers-reduced-motion: reduce) {
  .reel, .float-cta__coin { animation: none; }
  .reel span:nth-child(2) { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .hero h1 { font-size: 2.2rem; }
  .grid-3, .promo-grid, .link-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero { padding: 44px 0 50px; }
  .hero__grid, .split, .sec-grid, .auth, .page-hero__grid, .article-featured { grid-template-columns: 1fr; }
  .hero__media { max-width: 560px; }
  .hero__float--a { left: 6px; }
  .hero__float--b { right: 6px; }
  .phone { display: none; }
  .mobile-exp { display: grid; grid-template-columns: 1fr; }
  .auth-side { order: -1; }
}

@media (max-width: 640px) {
  :root { --cta-h: 92px; }
  body { font-size: 15px; }
  h1 { font-size: 1.65rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero__lead { font-size: 0.96rem; }
  .section { padding: 40px 0; }
  .grid-3, .reviews, .myth-grid, .link-cards, .promo-grid, .footer-grid { grid-template-columns: 1fr; }
  .header-in { height: 60px; gap: 10px; }
  .header-actions .btn--sm { display: none; }
  .terms-table, .terms-table tbody, .terms-table tr, .terms-table th, .terms-table td { display: block; width: 100%; }
  .terms-table thead { display: none; }
  .terms-table th { border-bottom: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
  .terms-table td { border-top: 0; border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
  .terms-table tr { margin-bottom: 12px; }
  .float-cta { padding: 8px 0; }
  .float-cta__in { gap: 10px; }
  .float-cta__text { display: none; }
  .float-cta__machine { padding: 4px 6px; border-width: 1.5px; }
  .reel { width: 20px; height: 26px; }
  .reel span { height: 26px; font-size: 0.85rem; }
  @keyframes reelSpin { from { transform: translateY(0); } to { transform: translateY(-104px); } }
  .float-cta__in .btn { padding: 10px 18px; font-size: 0.88rem; }
  .float-cta__in .btn:last-child { margin-left: auto; }
  .hero__cta .btn { flex: 1; }
  .search-overlay { padding: 60px 12px 30px; }
}

@media (min-width: 641px) {
  .float-cta__in .btn--red { margin-left: auto; }
}

@media print {
  .float-cta, .site-header, .search-overlay { display: none; }
  body { padding: 0; background: #fff; color: #000; }
}
