/* ============================================================
   Pandagendut — pandagendut.games
   Palet: hitam kehijauan, emas, merah aksen, hijau bambu
   ============================================================ */
:root {
  --bg: #0b100d;
  --bg2: #0e1510;
  --card: #121b14;
  --card2: #16221a;
  --line: #243327;
  --line2: #2e4233;
  --text: #eaf2ea;
  --muted: #9db2a2;
  --green: #2fae6e;
  --green-deep: #1d7a4b;
  --gold: #f2c14e;
  --gold-2: #d9a32a;
  --gold-dark: #3a2c0a;
  --red: #e0483e;
  --blue: #5b9cff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --fw-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(1100px 500px at 85% -150px, rgba(47, 174, 110, .14), transparent 65%),
    radial-gradient(900px 420px at -10% 30%, rgba(242, 193, 78, .07), transparent 60%),
    var(--bg);
  overflow-wrap: break-word;
  /* ruang untuk widget melayang agar footer tidak tertutup */
  padding-bottom: calc(var(--fw-h) + 22px + env(safe-area-inset-bottom));
}

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

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

h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.12rem; }

.container { width: min(1160px, 92vw); margin-inline: auto; }
.container.narrow { width: min(860px, 92vw); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------- tombol ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .45em; padding: .68em 1.5em; border-radius: 999px;
  font: 700 .95rem/1 var(--font); letter-spacing: .02em;
  border: 1px solid transparent; cursor: pointer; text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #241b05; box-shadow: 0 6px 18px rgba(242, 193, 78, .25);
}
.btn-gold:hover { box-shadow: 0 8px 24px rgba(242, 193, 78, .38); }
.btn-outline { border-color: var(--line2); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-ghost { color: var(--muted); border-color: transparent; }
.btn-ghost:hover { color: var(--text); }
.btn-sm { padding: .5em 1.15em; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------------- header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 16, 13, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; padding: 10px 0; flex-wrap: wrap; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 auto; display: block; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-name {
  display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: .01em;
  color: #fff; line-height: 1.15;
}
.brand-name .tld { color: var(--gold); }
.brand-tag { display: block; font-size: .68rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }

.header-search { margin-left: auto; }
.header-search form { display: flex; }
.header-search input {
  width: clamp(150px, 20vw, 240px); padding: .55em 1em;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 999px 0 0 999px;
  color: var(--text); font: .9rem var(--font); outline: none;
}
.header-search input:focus { border-color: var(--green); }
.header-search button {
  padding: .55em 1em; border: 1px solid var(--gold-2); border-left: 0;
  border-radius: 0 999px 999px 0; background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #241b05; font: 700 .85rem var(--font); cursor: pointer;
}
.header-cta { display: flex; gap: 10px; }

.nav-toggle {
  display: none; width: 44px; height: 40px; border-radius: var(--radius-sm);
  border: 1px solid var(--line2); background: var(--bg2); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .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); }

.main-nav { width: 100%; order: 5; display: none; }
.main-nav.open { display: block; }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 6px 0 10px; padding: 0; }
.main-nav a {
  display: block; padding: .45em .95em; border-radius: 999px;
  color: var(--muted); font-weight: 600; font-size: .93rem;
}
.main-nav a:hover { color: var(--text); background: var(--card); text-decoration: none; }
.main-nav a.active { color: var(--gold); background: rgba(242, 193, 78, .1); }

/* ---------------- breadcrumbs ---------------- */
.breadcrumbs { border-bottom: 1px solid var(--line); background: var(--bg2); }
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; gap: 6px; list-style: none;
  margin: 0; padding: 9px 0; font-size: .82rem; color: var(--muted);
}
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--line2); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--gold); }

/* ---------------- hero beranda ---------------- */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center 30%;
  filter: saturate(.85);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 16, 13, .82) 0%, rgba(11, 16, 13, .94) 78%, var(--bg) 100%);
}
.hero-inner { position: relative; padding: clamp(56px, 9vw, 110px) 0 clamp(44px, 7vw, 80px); max-width: 780px; }
.hero-kicker {
  display: inline-block; margin: 0 0 14px; padding: .35em 1em;
  border: 1px solid var(--line2); border-radius: 999px;
  background: rgba(11, 16, 13, .6); color: var(--gold);
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.hero h1 { color: #fff; }
.hero-lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: #cfe0d2; max-width: 640px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; margin: 0; padding: 0; }
.hero-chips li {
  padding: .3em .85em; border-radius: 999px; font-size: .78rem; color: var(--muted);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
}
.hero-chips li::before { content: "✓ "; color: var(--green); font-weight: 700; }

/* ---------------- section umum ---------------- */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section-soft { background: var(--bg2); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 30px; }
.kicker {
  display: inline-block; color: var(--green); font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px;
}
.section-sub { color: var(--muted); max-width: 640px; margin: 4px 0 0; }

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

/* ---------------- kartu promo beranda ---------------- */
.promo-card {
  display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.promo-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tag {
  display: inline-block; padding: .22em .8em; border-radius: 999px;
  background: rgba(47, 174, 110, .13); color: var(--green);
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.chip {
  padding: .18em .7em; border-radius: 999px; border: 1px solid var(--line2);
  color: var(--muted); font-size: .72rem;
}
.promo-card p { color: var(--muted); margin: 0; flex: 1; }
.promo-card h3 { margin: 0; color: #fff; }

/* ---------------- sorotan ---------------- */
.highlights { list-style: none; margin: 0; padding: 0; counter-reset: hl; }
.highlights li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; position: relative; overflow: hidden;
}
.highlights li::before {
  counter-increment: hl; content: "0" counter(hl);
  position: absolute; top: 8px; right: 14px;
  font-size: 2rem; font-weight: 800; color: rgba(242, 193, 78, .12);
}
.highlights h3 { color: var(--gold); }
.highlights p { color: var(--muted); margin: 0; font-size: .92rem; }

/* ---------------- split + mock ponsel ---------------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.split-rev { grid-template-columns: .8fr 1.2fr; }
.check-list { list-style: none; margin: 18px 0 0; padding: 0; }
.check-list li { padding-left: 30px; position: relative; margin-bottom: 8px; color: #cfe0d2; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 21px; height: 21px; border-radius: 50%;
  background: rgba(47, 174, 110, .16); color: var(--green);
  display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800;
}

.phone-mock { display: flex; justify-content: center; }
.phone-mock__screen {
  width: min(250px, 64vw); aspect-ratio: 9 / 17.5; border-radius: 34px;
  border: 8px solid #1b241d; background: linear-gradient(180deg, #101a12, #0c130e);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line2);
  padding: 30px 16px 16px; position: relative; display: flex; flex-direction: column; gap: 10px;
}
.phone-mock__notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 14px; border-radius: 999px; background: #1b241d;
}
.pm-bar { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--green), rgba(47, 174, 110, .25)); }
.pm-bar--short { width: 62%; background: var(--line2); }
.pm-card { height: 74px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line); }
.pm-card--gold { background: linear-gradient(120deg, rgba(242, 193, 78, .22), rgba(242, 193, 78, .05)); border-color: var(--gold-2); }
.pm-line { height: 8px; border-radius: 4px; background: var(--line); }
.pm-line--short { width: 70%; }
.pm-btn { height: 30px; border-radius: 999px; background: linear-gradient(180deg, var(--gold), var(--gold-2)); }
.pm-btn--ghost { background: transparent; border: 1px solid var(--line2); }

/* ---------------- testimoni ---------------- */
.review {
  margin: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.review figcaption { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: .9rem; color: var(--muted); }
.review .avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  color: #fff; font-weight: 800; font-size: 1.05rem;
}
.review blockquote { margin: 0; color: #d7e5d9; font-style: italic; }

/* ---------------- peta jalan ---------------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.steps li {
  display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px dashed var(--line2);
}
.steps li:last-child { border-bottom: 0; }
.step-no {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; color: #241b05;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  box-shadow: 0 6px 16px rgba(242, 193, 78, .28);
}
.steps h3 { margin-bottom: 4px; color: #fff; }
.steps p { margin: 0 0 6px; color: var(--muted); }
.step-links { font-size: .82rem; color: var(--green); }
.step-links a { color: var(--green); }

/* ---------------- keamanan beranda ---------------- */
.security-list {
  list-style: none; margin: 0; padding: 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; gap: 12px; align-content: start;
}
.security-list li { padding-left: 30px; position: relative; color: #cfe0d2; }
.security-list li::before {
  content: "🛡"; position: absolute; left: 0; font-size: .95rem;
}

/* ---------------- artikel unggulan beranda ---------------- */
.featured-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 36px; align-items: start; }
.featured-media { margin: 0; position: sticky; top: 92px; }
.featured-media img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.prose-featured { background: transparent; }

/* ---------------- FAQ ---------------- */
.faq-list { display: grid; gap: 10px; }
.faq-list details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 18px; transition: border-color .2s;
}
.faq-list details[open] { border-color: var(--line2); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 15px 42px 15px 0; position: relative;
  font-weight: 600; color: #fff;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--bg2); border: 1px solid var(--line2); color: var(--gold); font-weight: 700;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { color: var(--muted); margin: 0 0 16px; }

/* ---------------- halaman kategori & artikel ---------------- */
.page-hero { padding: clamp(36px, 5vw, 60px) 0 8px; }
.page-hero h1 { max-width: 760px; }
.page-hero .lead { color: var(--muted); max-width: 680px; font-size: 1.04rem; }
.page-hero__media { margin: 26px auto 0; }
.page-hero__media img {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow); max-height: 480px; object-fit: cover;
}
.meta-line { color: var(--muted); font-size: .82rem; letter-spacing: .02em; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding: 34px 0 60px; }
.prose { font-size: 1.02rem; color: #d9e6db; }
.prose > h2 { margin-top: 1.6em; padding-top: .6em; border-top: 1px solid var(--line); color: #fff; }
.prose > h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { color: var(--gold); margin-top: 1.3em; }
.prose p { margin: 0 0 1.05em; }
.prose a { text-decoration: underline; text-decoration-color: rgba(242, 193, 78, .4); text-underline-offset: 3px; }
.prose em { color: #fff; font-style: italic; }

.article-head { padding-top: clamp(28px, 4vw, 44px); }
.article-head .tag { margin-bottom: 12px; }
.article-head h1 { margin-bottom: 12px; }
.article-head .lead { color: var(--muted); }
.article-media { margin: 26px 0 6px; }
.article-media img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }

.related {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; position: sticky; top: 92px; align-self: start;
}
.related h2 { font-size: 1.05rem; color: var(--gold); }
.related ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.related li a {
  display: block; padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--bg2); border: 1px solid var(--line); color: var(--text); font-size: .9rem;
}
.related li a:hover { border-color: var(--green); text-decoration: none; }
.related-note { color: var(--muted); font-size: .78rem; text-align: center; margin: 12px 0 0; }

/* ---------------- promosi: daftar & landing ---------------- */
.program-list { display: grid; gap: 22px; margin: 30px 0; }
.program-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: grid; gap: 14px;
}
.program-card header { display: flex; gap: 16px; align-items: flex-start; }
.program-ikon {
  width: 52px; height: 52px; flex: 0 0 auto; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(242, 193, 78, .18), rgba(47, 174, 110, .14));
  border: 1px solid var(--line2);
}
.program-card h3 { margin: 0 0 4px; color: #fff; }
.program-card header p { margin: 0; color: var(--muted); font-size: .92rem; }
.program-note { color: var(--muted); font-size: .8rem; margin: 0; }
.muted-note { color: var(--muted); font-size: .82rem; font-style: italic; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg2); }
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 520px; }
.table-wrap caption { text-align: left; padding: 12px 14px 0; color: var(--muted); font-size: .82rem; }
.table-wrap th, .table-wrap td {
  text-align: left; padding: 10px 14px; font-size: .9rem; vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.table-wrap tr:last-child th, .table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap th[scope="row"] { color: var(--gold); white-space: nowrap; width: 34%; font-weight: 700; }
.table-wrap td { color: #cfe0d2; }

/* ---------------- hub artikel ---------------- */
.posts-grid { padding: 30px 0 8px; }
.post-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}
.post-card:hover { border-color: var(--line2); transform: translateY(-3px); }
.post-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.post-card__body h2 { font-size: 1.08rem; margin: 2px 0 0; }
.post-card__body h2 a { color: #fff; }
.post-card__body h2 a:hover { color: var(--gold); text-decoration: none; }
.post-card__body p { color: var(--muted); margin: 0; font-size: .9rem; flex: 1; }
.prose-foot { padding: 26px 0 60px; }

/* ---------------- auth ---------------- */
.auth-wrap { padding: clamp(30px, 5vw, 56px) 0 60px; }
.auth-head { max-width: 640px; margin-bottom: 26px; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; }
.auth-form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: grid; gap: 16px;
}
.field { display: grid; gap: 6px; }
.field label { font-size: .86rem; font-weight: 600; color: #cfe0d2; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="search"] {
  padding: .72em 1em; border-radius: var(--radius-sm);
  border: 1px solid var(--line2); background: var(--bg2); color: var(--text);
  font: .95rem var(--font); outline: none; width: 100%;
}
.field input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 174, 110, .18); }
.field-hint { color: var(--muted); font-size: .78rem; margin: 0; }
.field-check { display: flex; gap: 10px; align-items: flex-start; }
.field-check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--green); }
.field-check label { font-size: .84rem; color: var(--muted); font-weight: 400; }
.auth-alt { color: var(--muted); font-size: .88rem; text-align: center; margin: 0; }
.auth-side h2 { font-size: 1.05rem; color: var(--gold); }
.auth-side ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.auth-side li a {
  display: block; padding: 9px 12px; border-radius: var(--radius-sm);
  background: var(--card); border: 1px solid var(--line); color: var(--text); font-size: .88rem;
}
.auth-side li:not(a) { color: var(--muted); font-size: .88rem; }
.auth-side ul li { color: var(--muted); font-size: .88rem; }
.auth-side li a:hover { border-color: var(--green); text-decoration: none; }
.callout {
  background: rgba(224, 72, 62, .08); border: 1px solid rgba(224, 72, 62, .35);
  border-radius: var(--radius-sm); padding: 14px 16px;
}
.callout p { margin: 0; color: #e8c8c5; font-size: .84rem; }
.callout a { color: var(--gold); }

/* ---------------- pencarian ---------------- */
.search-form { display: flex; gap: 10px; margin: 26px 0 30px; }
.search-form input {
  flex: 1; padding: .85em 1.2em; border-radius: 999px;
  border: 1px solid var(--line2); background: var(--card); color: var(--text);
  font: 1rem var(--font); outline: none;
}
.search-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 174, 110, .18); }
.h-sm { font-size: 1.05rem; color: var(--gold); }
.tagcloud { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 30px; padding: 0; }
.tagcloud .tag {
  background: var(--card); color: var(--text); border: 1px solid var(--line2);
  text-transform: none; letter-spacing: 0; font-size: .84rem; font-weight: 600;
}
.tagcloud .tag:hover { border-color: var(--green); color: var(--green); text-decoration: none; }
.search-results { display: grid; gap: 12px; }
.search-result {
  display: block; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--card); border: 1px solid var(--line); color: var(--text);
}
.search-result:hover { border-color: var(--green); text-decoration: none; }
.search-result strong { color: var(--gold); display: block; margin-bottom: 4px; font-size: 1rem; }
.search-result span { color: var(--muted); font-size: .88rem; }
.search-empty { color: var(--muted); padding: 14px 0; }

/* ---------------- footer ---------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg2); padding: 46px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .brand-mark { width: 36px; height: 36px; }
.footer-brand .brand-name { font-size: 1.1rem; }
.site-footer p { color: var(--muted); font-size: .8rem; line-height: 1.7; }
.site-footer h3 { font-size: .85rem; color: #fff; letter-spacing: .1em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--muted); font-size: .86rem; }
.site-footer ul a:hover { color: var(--gold); }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal-strip { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.badge-18 {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff; font-weight: 800; font-size: .9rem;
  border: 2px solid rgba(255, 255, 255, .25);
}
.legal-strip span:last-child { color: var(--muted); font-size: .78rem; }
.footer-bottom > span { color: var(--muted); font-size: .76rem; }

/* ---------------- widget melayang ---------------- */
.fw {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; justify-content: center; padding: 10px 12px
  calc(10px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.fw-inner {
  pointer-events: auto; display: flex; align-items: center; gap: 16px;
  width: min(860px, 100%); padding: 10px 16px;
  border-radius: 18px; border: 1px solid var(--gold-2);
  background: linear-gradient(180deg, rgba(18, 27, 20, .97), rgba(11, 16, 13, .97));
  box-shadow: 0 -6px 40px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(242, 193, 78, .18);
  backdrop-filter: blur(8px);
}
.fw-slot { display: flex; gap: 5px; }
.fw-reel {
  width: 30px; height: 38px; overflow: hidden; border-radius: 7px;
  background: linear-gradient(180deg, #1c2b20, #0e1710);
  border: 1px solid var(--line2); position: relative;
  display: flex; align-items: center; justify-content: center;
}
.fw-reel i {
  font-style: normal; font-weight: 800; font-size: 1rem; color: var(--gold);
  animation: fw-spin 3.2s cubic-bezier(.45, 0, .55, 1) infinite;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.fw-reel i:nth-child(2) { color: var(--green); }
.fw-reel i:nth-child(3) { color: #fff; }
.fw-reel--b i { animation-delay: .35s; animation-duration: 3.8s; }
.fw-reel--c i { animation-delay: .7s; animation-duration: 3.5s; }
@keyframes fw-spin {
  0%, 18% { transform: translateY(0); }
  38%, 100% { transform: translateY(-30px); }
}
.fw-coins { position: relative; width: 30px; height: 44px; flex: 0 0 auto; }
.fw-coin {
  position: absolute; left: 50%; top: 50%;
  width: 17px; height: 17px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ffe9a8, var(--gold) 55%, var(--gold-2) 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .45), inset 0 0 0 1.5px rgba(255, 244, 214, .55);
  animation: fw-coin 2.6s ease-in-out infinite;
}
.fw-coin--b { animation-delay: .85s; width: 13px; height: 13px; }
.fw-coin--c { animation-delay: 1.7s; width: 11px; height: 11px; }
@keyframes fw-coin {
  0% { transform: translate(-50%, 8px) rotate(0deg); opacity: 0; }
  22% { opacity: 1; }
  100% { transform: translate(calc(-50% + 16px), -22px) rotate(180deg); opacity: 0; }
}
.fw-text { line-height: 1.25; min-width: 0; }
.fw-text strong { display: block; color: #fff; font-size: .95rem; }
.fw-text span { color: var(--muted); font-size: .74rem; }
.fw-actions { display: flex; gap: 10px; margin-left: auto; flex: 0 0 auto; }
.fw-actions .btn { padding: .62em 1.35em; }

@media (prefers-reduced-motion: reduce) {
  .fw-reel i, .fw-coin { animation: none; }
  .fw-reel i:first-child { opacity: 1; }
  .fw-coin { opacity: .9; }
  html { scroll-behavior: auto; }
}

/* ---------------- responsif ---------------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-media { position: static; }
  .article-layout { grid-template-columns: 1fr; }
  .related { position: static; }
}

@media (max-width: 860px) {
  .split, .split-rev { grid-template-columns: 1fr; gap: 28px; }
  .grid-3 { grid-template-columns: 1fr; }
  .auth-grid { grid-template-columns: 1fr; }
  .header-search { order: 6; width: 100%; margin-left: 0; }
  .header-search form { flex: 1; }
  .header-search input { width: 100%; flex: 1; }
  .header-cta { margin-left: auto; }
  .main-nav { order: 7; }
  .nav-toggle { display: flex; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: .6em 1em; border-radius: var(--radius-sm); }
}

@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-cta .btn { flex: 1 1 auto; }
  .fw-inner { gap: 10px; padding: 8px 12px; }
  .fw-coins { display: none; }
  .fw-text span { display: none; }
  .fw-text strong { font-size: .88rem; }
  .fw-actions { flex-direction: column; gap: 6px; }
  .fw-actions .btn { padding: .5em 1em; font-size: .82rem; }
  .steps li { gap: 14px; }
  .step-no { width: 38px; height: 38px; font-size: .95rem; }
  .search-form { flex-direction: column; }
  .search-form .btn { width: 100%; }
  .table-wrap table { min-width: 440px; }
}
