/*
Theme Name: Giga138
Theme URI: https://giga138.games/
Description: Tema portal informasi Giga138 — Slot, Live Casino, Poker, Sportsbook. Prerendered static theme (WordPress template hierarchy).
Author: Giga138
Version: 1.0.0
Text Domain: giga138
*/

:root {
  --red: #e0243a;
  --red-2: #b3122a;
  --red-soft: rgba(224, 36, 58, 0.14);
  --gold: #f6c445;
  --gold-2: #d9a419;
  --green: #19b37b;
  --green-soft: rgba(25, 179, 123, 0.14);
  --blue: #3b82f6;
  --blue-soft: rgba(59, 130, 246, 0.14);
  --ink: #0a0d14;
  --panel: #131826;
  --panel-2: #1a2133;
  --line: #283149;
  --text: #edf1f9;
  --muted: #9aa6c0;
  --white: #ffffff;
  --radius: 14px;
  --radius-s: 10px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.42);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --wrap: 1160px;
}

* { 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.75;
  font-size: 16px;
  overflow-x: hidden;
  /* ruang untuk floating bar, tanpa area kosong tambahan */
  padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
}

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

a { color: var(--gold); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--white); }

ul, ol { padding-left: 1.35rem; }
li { margin: 0.3rem 0; }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(14px, 4vw, 28px); }

/* ============ Tombol ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 999px; border: 0; cursor: pointer;
  line-height: 1.2; text-align: center; transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.btn-red { background: linear-gradient(180deg, #f0324a, var(--red-2)); color: var(--white); box-shadow: 0 8px 22px rgba(224, 36, 58, 0.36); }
.btn-red:hover { color: var(--white); transform: translateY(-2px); filter: brightness(1.07); }
.btn-gold { background: linear-gradient(180deg, #ffd968, var(--gold-2)); color: #3c2b00; box-shadow: 0 8px 22px rgba(246, 196, 69, 0.3); }
.btn-gold:hover { color: #2c1f00; transform: translateY(-2px); filter: brightness(1.05); }
.btn-green { background: linear-gradient(180deg, #25cf92, #0f8f60); color: #04281b; box-shadow: 0 8px 22px rgba(25, 179, 123, 0.3); }
.btn-green:hover { color: #04281b; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(10, 13, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-top { display: flex; align-items: center; gap: 18px; min-height: 70px; }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(145deg, #ff4257, #9d0d22);
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.15rem; color: var(--gold);
  border: 2px solid rgba(246, 196, 69, 0.55);
  box-shadow: 0 6px 16px rgba(224, 36, 58, 0.4);
}
.brand-name { font-size: 1.35rem; font-weight: 800; letter-spacing: 0.4px; color: var(--white); }
.brand-name b { color: var(--gold); }
.brand-name:hover { color: var(--white); }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; padding: 0; flex-wrap: wrap; }
.nav a {
  display: block; padding: 9px 13px; border-radius: 9px;
  color: var(--muted); font-weight: 600; font-size: 0.92rem;
}
.nav a:hover, .nav a.active { color: var(--white); background: var(--panel-2); }
.nav a.active { color: var(--gold); }

.header-cta { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.badge-18 {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--red); color: #ff7d8d; border-radius: 999px;
  font-size: 0.72rem; font-weight: 800; padding: 3px 10px; letter-spacing: 0.5px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--line);
  cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.2s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 12px 0 16px; }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; padding: 0; }
.mobile-nav a { display: block; padding: 11px 12px; border-radius: 9px; color: var(--muted); font-weight: 600; }
.mobile-nav a.active, .mobile-nav a:hover { color: var(--gold); background: var(--panel-2); }
.mobile-nav .m-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(224, 36, 58, 0.28), transparent 62%),
    radial-gradient(700px 380px at -10% 110%, rgba(246, 196, 69, 0.12), transparent 60%),
    linear-gradient(180deg, #0d1120 0%, var(--ink) 88%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(24px, 4vw, 52px); align-items: center; padding: clamp(44px, 7vw, 84px) 0 clamp(40px, 6vw, 72px); }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red-soft); color: #ff8a99; border: 1px solid rgba(224, 36, 58, 0.4);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(1.7rem, 4.2vw, 3rem); line-height: 1.18; font-weight: 800; color: var(--white); letter-spacing: -0.4px; }
.hero h1 .accent { color: var(--gold); }
.hero p.lead { margin: 18px 0 26px; color: var(--muted); font-size: clamp(0.98rem, 1.6vw, 1.08rem); max-width: 56ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  padding: 7px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-red { background: var(--red); } .dot-gold { background: var(--gold); }
.dot-green { background: var(--green); } .dot-blue { background: var(--blue); }

.hero-media { position: relative; }
.hero-media img { border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.hero-media .float-tag {
  position: absolute; left: -8px; bottom: 18px;
  background: rgba(10, 13, 20, 0.9); border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  padding: 10px 16px; border-radius: 12px; font-size: 0.82rem; color: var(--text);
  box-shadow: var(--shadow); max-width: 75%;
}
.hero-media .float-tag b { color: var(--gold); display: block; font-size: 0.95rem; }

/* ============ Section umum ============ */
.section { padding: clamp(44px, 6.5vw, 78px) 0; }
.section-alt { background: linear-gradient(180deg, #0e1322, #0b0f1a); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(26px, 4vw, 44px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 800; color: var(--white); line-height: 1.3; letter-spacing: -0.3px; }
.section-head h2 .accent { color: var(--gold); }
.section-head .kicker { margin-bottom: 12px; }
.section-head p { color: var(--muted); margin-top: 12px; }

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

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(18px, 2.6vw, 26px);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(246, 196, 69, 0.45); }
.card h3 { color: var(--white); font-size: 1.06rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.92rem; }

.icon-tile {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  font-size: 1.45rem; margin-bottom: 14px; flex-shrink: 0;
}
.t-red { background: var(--red-soft); border: 1px solid rgba(224, 36, 58, 0.35); }
.t-gold { background: rgba(246, 196, 69, 0.13); border: 1px solid rgba(246, 196, 69, 0.35); }
.t-green { background: var(--green-soft); border: 1px solid rgba(25, 179, 123, 0.35); }
.t-blue { background: var(--blue-soft); border: 1px solid rgba(59, 130, 246, 0.35); }

/* ============ Panduan 4 langkah ============ */
.steps { counter-reset: step; }
.step-card { position: relative; padding-top: 26px; }
.step-num {
  position: absolute; top: -20px; left: 22px;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(160deg, #ffd968, var(--gold-2)); color: #3c2b00;
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem;
  border: 3px solid var(--ink); box-shadow: 0 6px 14px rgba(246, 196, 69, 0.35);
}
.step-card .tag-line { color: var(--gold); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 6px; }

/* ============ Promo ============ */
.promo-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.promo-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.promo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.promo-thumb .ribbon {
  position: absolute; top: 12px; left: 12px;
  background: linear-gradient(180deg, #ff4257, var(--red-2)); color: var(--white);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}
.promo-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.promo-body h3 { font-size: 1.02rem; }
.promo-terms { list-style: none; padding: 0; margin: 2px 0 6px; font-size: 0.84rem; color: var(--muted); }
.promo-terms li { display: flex; gap: 8px; align-items: baseline; margin: 4px 0; }
.promo-terms li::before { content: "▸"; color: var(--gold); flex-shrink: 0; }
.promo-note { font-size: 0.76rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; margin-top: auto; }
.promo-value { font-size: 1.5rem; font-weight: 800; color: var(--gold); line-height: 1.1; }
.promo-value small { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 600; margin-top: 3px; }

/* ============ Mobile board ============ */
.mobile-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.phone-mock {
  border-radius: 26px; padding: 14px; background: linear-gradient(160deg, #1c2438, #10141f);
  border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 320px; margin-inline: auto;
}
.phone-screen { border-radius: 18px; overflow: hidden; background: var(--ink); border: 1px solid var(--line); }
.phone-screen img { width: 100%; }
.phone-bar { display: flex; justify-content: center; gap: 5px; padding: 10px 0 4px; }
.phone-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); display: block; }
.phone-bar i.on { background: var(--gold); }
.check-list { list-style: none; padding: 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-list .ck {
  width: 26px; height: 26px; border-radius: 8px; background: var(--green-soft);
  color: var(--green); display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; flex-shrink: 0;
  margin-top: 3px; border: 1px solid rgba(25, 179, 123, 0.4);
}
.check-list b { color: var(--white); display: block; font-size: 0.97rem; }
.check-list p { color: var(--muted); font-size: 0.88rem; }

/* ============ Testimoni ============ */
.testi-card { display: flex; flex-direction: column; gap: 12px; }
.testi-card .stars { color: var(--gold); letter-spacing: 2px; font-size: 0.9rem; }
.testi-card blockquote { color: var(--text); font-size: 0.93rem; border: 0; margin: 0; }
.testi-who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-size: 0.95rem; color: #fff;
}
.av-red { background: linear-gradient(145deg, #f0324a, #8d0c20); }
.av-gold { background: linear-gradient(145deg, #ffd968, #b8860b); color: #3c2b00; }
.av-green { background: linear-gradient(145deg, #25cf92, #0a6b49); }
.av-blue { background: linear-gradient(145deg, #60a5fa, #1d4ed8); }
.testi-who b { color: var(--white); font-size: 0.9rem; display: block; line-height: 1.3; }
.testi-who span { color: var(--muted); font-size: 0.78rem; }
.testi-note { font-size: 0.76rem; color: var(--muted); text-align: center; margin-top: 18px; }

/* ============ Tools (board inovatif) ============ */
.tool-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2.6vw, 26px); }
.tool-card h3 { color: var(--white); margin-bottom: 6px; font-size: 1.05rem; }
.tool-card .tool-desc { color: var(--muted); font-size: 0.87rem; margin-bottom: 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.field input[type="number"], .field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="date"], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: var(--ink); border: 1.5px solid var(--line); color: var(--text);
  font-family: var(--font); font-size: 0.95rem;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(246, 196, 69, 0.18); }
.tool-out {
  background: var(--ink); border: 1px dashed var(--gold-2); border-radius: 12px;
  padding: 14px 16px; font-size: 0.9rem; color: var(--text); margin-top: 6px;
}
.tool-out b { color: var(--gold); font-size: 1.15rem; }
.tool-out.warn { border-color: var(--red); }
.quiz-q { margin-bottom: 16px; }
.quiz-q p { font-weight: 700; color: var(--text); font-size: 0.92rem; margin-bottom: 8px; }
.quiz-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.quiz-opts button {
  background: var(--panel-2); border: 1.5px solid var(--line); color: var(--muted);
  padding: 8px 16px; border-radius: 999px; cursor: pointer; font-family: var(--font);
  font-size: 0.84rem; font-weight: 700; transition: 0.15s;
}
.quiz-opts button:hover { border-color: var(--gold); color: var(--gold); }
.quiz-opts button.sel { background: var(--gold); border-color: var(--gold); color: #3c2b00; }

/* ============ Keamanan & RG ============ */
.pillar-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.pillar-list li {
  display: flex; gap: 14px; align-items: flex-start; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius-s); padding: 16px 18px;
}
.pillar-list .pk { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.pillar-list b { color: var(--white); display: block; }
.pillar-list p { color: var(--muted); font-size: 0.88rem; }

.note {
  border-radius: var(--radius-s); padding: 14px 18px; font-size: 0.88rem;
  border: 1px solid; margin: 18px 0;
}
.note-info { background: var(--blue-soft); border-color: rgba(59, 130, 246, 0.4); color: #cfe1ff; }
.note-warn { background: var(--red-soft); border-color: rgba(224, 36, 58, 0.45); color: #ffd3d9; }
.note-ok { background: var(--green-soft); border-color: rgba(25, 179, 123, 0.4); color: #ccf3e4; }
.note b { color: var(--white); }

/* ============ FAQ ============ */
.faq-item {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-s);
  margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 17px 20px; font-weight: 700; color: var(--white); font-size: 0.97rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.25rem; color: var(--gold); font-weight: 400; flex-shrink: 0; transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 20px 18px; color: var(--muted); font-size: 0.92rem; }

/* ============ Tag cloud & pencarian ============ */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag-cloud a {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  font-size: 0.84rem; font-weight: 600; transition: 0.15s;
}
.tag-cloud a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.tag-cloud a.hot { border-color: rgba(224, 36, 58, 0.55); color: #ff8a99; background: var(--red-soft); }
.tag-cloud a.big { font-size: 0.98rem; padding: 10px 22px; }

.search-box { display: flex; gap: 10px; max-width: 620px; margin-inline: auto; }
.search-box input {
  flex: 1; min-width: 0; padding: 14px 20px; border-radius: 999px;
  background: var(--panel); border: 1.5px solid var(--line); color: var(--text); font-family: var(--font); font-size: 0.95rem;
}
.search-box input:focus { outline: none; border-color: var(--gold); }
.search-box button { border-radius: 999px; }

/* ============ Breadcrumb ============ */
.breadcrumb { font-size: 0.8rem; color: var(--muted); padding: 18px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; margin: 0; }
.breadcrumb li + li::before { content: "›"; color: var(--gold); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb [aria-current] { color: var(--text); font-weight: 600; }

/* ============ Artikel ============ */
.page-title { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 800; color: var(--white); line-height: 1.25; letter-spacing: -0.3px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--muted); font-size: 0.82rem; margin-top: 12px; }
.article-hero { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin: 22px 0; }
.article-hero figcaption { font-size: 0.78rem; color: var(--muted); padding: 10px 14px; background: var(--panel); border-top: 1px solid var(--line); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 3.5vw, 44px); align-items: start; padding: 26px 0 clamp(44px, 6vw, 70px); }
.article-body { min-width: 0; }
.article-body h2 { font-size: clamp(1.2rem, 2.4vw, 1.55rem); color: var(--white); margin: 34px 0 12px; line-height: 1.35; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 1.08rem; color: var(--gold); margin: 26px 0 10px; }
.article-body p { color: #c9d2e6; margin-bottom: 14px; font-size: 0.97rem; }
.article-body ul, .article-body ol { color: #c9d2e6; margin-bottom: 14px; }
.article-body strong { color: var(--white); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-s); margin: 16px 0; -webkit-overflow-scrolling: touch; }
table.tcard { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 480px; }
table.tcard th {
  background: var(--panel-2); color: var(--gold); text-align: left;
  padding: 12px 14px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.6px; white-space: nowrap;
}
table.tcard td { padding: 12px 14px; border-top: 1px solid var(--line); color: #c9d2e6; vertical-align: top; }
table.tcard tr:nth-child(even) td { background: rgba(255, 255, 255, 0.018); }

.sidebar-widget { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.sidebar-widget h3 { color: var(--white); font-size: 0.98rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sidebar-widget ul { list-style: none; padding: 0; }
.sidebar-widget li a { display: block; padding: 9px 0; color: var(--muted); font-size: 0.89rem; border-bottom: 1px dashed var(--line); }
.sidebar-widget li:last-child a { border-bottom: 0; }
.sidebar-widget li a:hover { color: var(--gold); }

.cta-band {
  background: linear-gradient(135deg, #2a0d13, #0d1120 60%);
  border: 1px solid rgba(224, 36, 58, 0.5); border-radius: var(--radius);
  padding: clamp(22px, 3.5vw, 34px); display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  margin-top: 34px;
}
.cta-band h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 6px; }
.cta-band p { color: var(--muted); font-size: 0.88rem; }

/* ============ Form auth ============ */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 52px); align-items: center; padding: clamp(30px, 5vw, 60px) 0 clamp(44px, 6vw, 76px); }
.auth-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 36px); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.5rem; color: var(--white); margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); font-size: 0.88rem; margin-bottom: 22px; }
.form-hint { font-size: 0.76rem; color: var(--muted); margin-top: -8px; margin-bottom: 14px; }
.auth-alt { text-align: center; margin-top: 18px; font-size: 0.86rem; color: var(--muted); }
.auth-side h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); color: var(--white); margin-bottom: 14px; }

/* ============ Footer ============ */
.site-footer { background: #070910; border-top: 1px solid var(--line); font-size: 0.88rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(22px, 3.5vw, 40px); padding: clamp(36px, 5vw, 56px) 0 30px; }
.site-footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
.site-footer p { color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin: 0; }
.site-footer li a { display: inline-block; padding: 5px 0; color: var(--muted); font-size: 0.86rem; }
.site-footer li a:hover { color: var(--gold); }
.pay-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pay-strip span {
  border: 1px solid var(--line); background: var(--panel); color: var(--muted);
  font-size: 0.72rem; font-weight: 700; padding: 4px 11px; border-radius: 7px; letter-spacing: 0.3px;
}
.footer-legal { border-top: 1px solid var(--line); padding: 20px 0 24px; color: var(--muted); font-size: 0.78rem; line-height: 1.8; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 16px 0; color: var(--muted); font-size: 0.8rem; }
.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-badges .fb {
  border: 1.5px solid; border-radius: 8px; font-weight: 800; font-size: 0.72rem;
  padding: 4px 10px; letter-spacing: 0.5px;
}
.fb-18 { border-color: var(--red); color: #ff8a99; }
.fb-rg { border-color: var(--green); color: #6fe3b8; }

/* ============ Floating CTA (slot machine) ============ */
.float-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  display: flex; align-items: center; justify-content: center;
  padding: 10px calc(12px + env(safe-area-inset-left, 0px)) calc(10px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(7, 9, 16, 0.82), rgba(7, 9, 16, 0.97));
  border-top: 1px solid rgba(246, 196, 69, 0.28);
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.float-cta > * { pointer-events: auto; }
.slot-btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, #2b0e14, #170a10);
  border: 2px solid var(--gold);
  border-radius: 16px; padding: 9px 20px 9px 12px;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.55), 0 10px 30px rgba(246, 196, 69, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: slotGlow 2.6s ease-in-out infinite;
  overflow: hidden; text-decoration: none;
  max-width: calc(100vw - 24px);
}
@keyframes slotGlow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0,0,0,0.55), 0 10px 30px rgba(246,196,69,0.22), inset 0 1px 0 rgba(255,255,255,0.12); }
  50% { box-shadow: 0 0 0 3px rgba(0,0,0,0.55), 0 10px 42px rgba(246,196,69,0.5), inset 0 1px 0 rgba(255,255,255,0.2); }
}
.slot-btn:hover { transform: translateY(-2px); }
.slot-reels { display: flex; gap: 5px; }
.reel {
  width: 30px; height: 38px; border-radius: 8px; overflow: hidden;
  background: linear-gradient(180deg, #f8f4e6, #d9d2ba);
  border: 2px solid #8a6d1f; position: relative; flex-shrink: 0;
}
.reel .syms {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  animation: reelSpin 2.2s linear infinite;
  font-size: 17px; line-height: 38px; height: 38px;
}
@keyframes reelSpin {
  0% { transform: translateY(0); }
  100% { transform: translateY(-228px); }
}
.slot-label { display: flex; flex-direction: column; line-height: 1.15; }
.slot-label b {
  font-size: 1.02rem; font-weight: 800; letter-spacing: 0.6px;
  background: linear-gradient(180deg, #ffe89a, #f6c445);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.slot-label span { font-size: 0.62rem; font-weight: 700; color: #ff8a99; letter-spacing: 2px; }
.coin {
  position: absolute; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff3c2, #f6c445 48%, #a8780e);
  border: 1px solid #8a6d1f; opacity: 0; pointer-events: none;
  animation: coinUp 2.8s ease-in infinite;
}
@keyframes coinUp {
  0% { opacity: 0; transform: translateY(6px) scale(0.6); }
  18% { opacity: 1; }
  70% { opacity: 1; transform: translateY(-64px) scale(1); }
  100% { opacity: 0; transform: translateY(-96px) scale(0.75); }
}
.coin.c1 { left: 8%; bottom: 4px; animation-delay: 0s; }
.coin.c2 { left: 24%; bottom: 2px; animation-delay: 0.7s; width: 12px; height: 12px; }
.coin.c3 { right: 22%; bottom: 3px; animation-delay: 1.3s; }
.coin.c4 { right: 7%; bottom: 6px; animation-delay: 1.9s; width: 13px; height: 13px; }
.coin.c5 { left: 46%; bottom: 1px; animation-delay: 2.4s; width: 11px; height: 11px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============ Search page ============ */
.result-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.result-item .ri-num { color: var(--gold); font-weight: 800; font-size: 0.85rem; padding-top: 3px; }
.result-item h3 { font-size: 1.02rem; margin-bottom: 4px; }
.result-item h3 a { color: var(--white); }
.result-item h3 a:hover { color: var(--gold); }
.result-item p { color: var(--muted); font-size: 0.87rem; }
.result-item .ri-cat { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: #ff8a99; background: var(--red-soft); border-radius: 999px; padding: 2px 10px; margin-bottom: 6px; }

/* ============ Kategori cards ============ */
.cat-card { display: flex; gap: 16px; align-items: flex-start; }
.cat-card h3 a { color: var(--white); }
.cat-card h3 a:hover { color: var(--gold); }
.cat-card .go { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 0.84rem; font-weight: 700; color: var(--gold); }
.cat-card .go::after { content: "→"; transition: transform 0.15s; }
.cat-card:hover .go::after { transform: translateX(4px); }
.post-list { list-style: none; padding: 0; }
.post-list li { padding: 16px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 14px; }
.post-list li:last-child { border-bottom: 0; }
.post-list img { width: 108px; height: 74px; object-fit: cover; border-radius: 9px; flex-shrink: 0; border: 1px solid var(--line); }
.post-list b a { color: var(--white); font-size: 0.97rem; }
.post-list b a:hover { color: var(--gold); }
.post-list .pl-meta { color: var(--muted); font-size: 0.76rem; margin-top: 4px; }
.post-list p { color: var(--muted); font-size: 0.84rem; margin-top: 5px; }

/* ============ 404 ============ */
.err-hero { text-align: center; padding: clamp(60px, 10vw, 110px) 0; }
.err-hero .code { font-size: clamp(4.4rem, 14vw, 7.5rem); font-weight: 800; line-height: 1; color: var(--red); text-shadow: 0 12px 40px rgba(224, 36, 58, 0.35); }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .header-cta .btn-ghost { display: none; }
  .article-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .mobile-grid { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { order: 2; }
}
@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .header-cta { display: none; }
  .badge-18-top { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .search-box { flex-direction: column; border-radius: 16px; }
  .search-box input { border-radius: 999px; }
  .slot-btn { padding: 8px 16px 8px 10px; gap: 9px; }
  .slot-label b { font-size: 0.92rem; }
  .reel { width: 26px; height: 34px; }
  .reel .syms { font-size: 15px; line-height: 34px; height: 34px; }
  .post-list li { flex-direction: column; gap: 10px; }
  .post-list img { width: 100%; height: 150px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .btn { padding: 12px 20px; font-size: 0.9rem; }
}

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