/*
Theme Name: Boswin77 Portal
Theme URI: https://boswin77.games/
Author: Tim Redaksi Boswin77
Description: Tema portal informasi gaya WordPress untuk Boswin77 — slot, casino live, poker, dan sportsbook dalam bahasa Indonesia. Struktur kelas mengikuti konvensi WordPress (site-header, main-navigation, entry-content, widget, site-footer).
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: boswin77
*/

/* ============================================================
   1. Variabel & Reset
   ============================================================ */
:root {
  --green: #0c7a43;
  --green-deep: #07512c;
  --green-night: #06281a;
  --gold: #f2b203;
  --gold-soft: #ffd75e;
  --red: #d81e3f;
  --red-deep: #a8142f;
  --blue: #1c6dd0;
  --ink: #141a17;
  --muted: #5b6660;
  --line: #e2e7e1;
  --bg: #f7f8f4;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(6, 40, 26, 0.10);
  --radius: 14px;
}

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

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

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

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

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

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

h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); font-weight: 800; }

.wrap {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 16px;
  width: 100%;
}

/* ============================================================
   2. Topbar berjalan
   ============================================================ */
.topbar {
  background: var(--green-night);
  color: #dfeee3;
  font-size: 13px;
  overflow: hidden;
  border-bottom: 1px solid rgba(242, 178, 3, 0.35);
}
.topbar-track {
  display: inline-flex;
  white-space: nowrap;
  gap: 44px;
  padding: 7px 0;
  animation: ticker 46s linear infinite;
}
.topbar-track span { display: inline-flex; align-items: center; gap: 8px; }
.topbar-track b { color: var(--gold-soft); font-weight: 700; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   3. Site header (gaya WP site-header)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(105deg, var(--green-night) 0%, var(--green-deep) 55%, var(--green) 100%);
  box-shadow: 0 4px 18px rgba(6, 40, 26, 0.35);
}
.head-in {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  color: #fff;
  flex-shrink: 0;
}
.brand b {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.5px;
}
.brand b em {
  font-style: normal;
  color: var(--gold);
  background: var(--red);
  border-radius: 8px;
  padding: 0 7px;
  margin-left: 3px;
}
.brand small {
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #bfe3c9;
  margin-top: 3px;
}
.main-navigation { margin-left: auto; }
.main-navigation ul { list-style: none; display: flex; gap: 4px; padding: 0; flex-wrap: wrap; }
.main-navigation a {
  color: #eaf6ec;
  font-weight: 600;
  font-size: 14.5px;
  padding: 9px 12px;
  border-radius: 9px;
  display: block;
  white-space: nowrap;
}
.main-navigation a:hover,
.main-navigation .current-menu-item a {
  background: rgba(255, 255, 255, 0.14);
  color: var(--gold-soft);
}
.head-actions { display: flex; align-items: center; gap: 8px; margin-left: 4px; }
.search-toggle {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 17px;
  width: 38px; height: 38px;
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 19px;
  width: 40px; height: 38px;
  border-radius: 10px;
  cursor: pointer;
}

/* ============================================================
   4. Panel pencarian
   ============================================================ */
.search-panel {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: var(--green-night);
  border-top: 1px solid rgba(242, 178, 3, 0.3);
  display: none;
  z-index: 49;
}
.search-panel.open { display: block; }
.search-box { position: relative; padding: 14px 16px; max-width: 1140px; }
.search-box input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid var(--gold);
  background: #fff;
  color: var(--ink);
}
.search-results {
  background: #fff;
  border-radius: 10px;
  margin-top: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: none;
}
.search-results.show { display: block; }
.search-results a {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.search-results a:last-child { border-bottom: 0; }
.search-results b { display: block; color: var(--green-deep); font-size: 14.5px; }
.search-results span { font-size: 12.5px; color: var(--muted); }
.search-empty { padding: 12px 14px; color: var(--muted); font-size: 14px; }

/* ============================================================
   5. Tombol
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  border-radius: 12px;
  padding: 13px 26px;
  font-size: 15.5px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #3c2a00;
  box-shadow: 0 6px 18px rgba(242, 178, 3, 0.45);
}
.btn-red {
  background: linear-gradient(180deg, #e8354f, var(--red-deep));
  color: #fff;
  box-shadow: 0 6px 18px rgba(216, 30, 63, 0.35);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-green {
  background: linear-gradient(180deg, #0f9a54, var(--green-deep));
  color: #fff;
  box-shadow: 0 6px 18px rgba(12, 122, 67, 0.35);
}
.btn-sm { padding: 9px 18px; font-size: 14px; border-radius: 10px; }
.btn-line { background: #fff; border-color: var(--green); color: var(--green-deep); }

/* ============================================================
   6. Hero (beranda)
   ============================================================ */
.hero {
  position: relative;
  color: #fff;
  background: var(--green-night);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("/assets/img/hero-home.jpg") center/cover no-repeat;
  opacity: 0.45;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(6, 40, 26, 0.95) 15%, rgba(7, 81, 44, 0.78) 55%, rgba(6, 40, 26, 0.55));
}
.hero-in {
  position: relative;
  z-index: 2;
  padding: 66px 0 60px;
  max-width: 720px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(216, 30, 63, 0.9);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(28px, 5.4vw, 46px);
  margin-bottom: 16px;
}
.hero h1 span { color: var(--gold); }
.hero p { font-size: clamp(15px, 2.4vw, 17.5px); color: #dcefe2; max-width: 640px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #eef8ef;
}
.chip b { color: var(--gold-soft); }

/* ============================================================
   7. Bagian umum & kartu
   ============================================================ */
.section { padding: 54px 0; }
.section.alt { background: #fff; }
.section.tint { background: linear-gradient(180deg, #eef5ec, var(--bg)); }
.sec-head { max-width: 760px; margin-bottom: 30px; }
.sec-kicker {
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 12.5px;
  margin-bottom: 8px;
}
.sec-head h2 { font-size: clamp(23px, 3.6vw, 32px); margin-bottom: 10px; }
.sec-head h2 span { color: var(--green); }
.sec-head p { color: var(--muted); font-size: 15.5px; }
.sec-head.center { margin-inline: auto; text-align: center; }

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(6, 40, 26, 0.06);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 18px; }
.card h3 a { color: inherit; }
.card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.card-thumb { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-tag {
  position: absolute;
  left: 12px; top: 12px;
  background: var(--red);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.card-tag.gold { background: #b57d00; }
.card-more { font-weight: 700; font-size: 14px; color: var(--green-deep); }

/* langkah pemula */
.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 19px;
  color: #fff;
  background: linear-gradient(160deg, var(--green), var(--green-deep));
  margin-bottom: 12px;
}
.step-card:nth-child(2) .step-num { background: linear-gradient(160deg, #e8354f, var(--red-deep)); }
.step-card:nth-child(3) .step-num { background: linear-gradient(160deg, var(--gold-soft), var(--gold)); color: #4a3400; }
.step-card:nth-child(4) .step-num { background: linear-gradient(160deg, #4b93e8, var(--blue)); }
.step-card h3 { font-size: 17px; margin-bottom: 6px; }
.step-card p { font-size: 14.5px; color: var(--muted); }

/* kartu keunggulan */
.adv-card { text-align: center; padding: 26px 18px; }
.adv-ico {
  width: 58px; height: 58px;
  margin: 0 auto 12px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: linear-gradient(160deg, #eaf5ec, #d3e9d8);
}
.adv-card h3 { font-size: 16.5px; }
.adv-card p { font-size: 14px; color: var(--muted); }

/* testimoni */
.t-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 20px;
  min-width: 0;
}
.t-card .stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; }
.t-card p { font-size: 14.5px; color: var(--ink); font-style: italic; margin: 8px 0 12px; }
.t-who { display: flex; align-items: center; gap: 10px; }
.t-ava {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.t-who b { font-size: 14px; display: block; line-height: 1.2; }
.t-who small { color: var(--muted); font-size: 12px; }

/* ============================================================
   8. Bagian promo ringkas (beranda)
   ============================================================ */
.mini-promo {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  min-width: 0;
}
.mini-promo .mp-ico {
  font-size: 26px;
  width: 52px; height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #fdf3d7, #f7e3a8);
  border-radius: 12px;
}
.mini-promo h3 { font-size: 16px; }
.mini-promo p { font-size: 13.5px; color: var(--muted); }
.mini-promo a { font-size: 13.5px; font-weight: 700; white-space: nowrap; }

/* ============================================================
   9. Bagian mobile + transaksi
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}
.split-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 4px solid #fff;
}
.checklist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink);
}
.checklist .ck {
  color: var(--green);
  font-weight: 900;
  flex-shrink: 0;
}
.pay-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pay-pill {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-deep);
}

/* ============================================================
   10. Deteksi gaya (kuis)
   ============================================================ */
.quiz-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.quiz-q { margin-bottom: 18px; }
.quiz-q p { font-weight: 700; margin-bottom: 8px; font-size: 15px; }
.quiz-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-opts label {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.quiz-opts input { accent-color: var(--green); }
.quiz-opts label:has(input:checked) {
  border-color: var(--green);
  background: #e7f4ea;
  color: var(--green-deep);
  font-weight: 700;
}
.quiz-result {
  margin-top: 16px;
  border-radius: 12px;
  padding: 16px 18px;
  background: linear-gradient(120deg, #e7f4ea, #f6efdb);
  border: 1px solid var(--line);
  display: none;
}
.quiz-result.show { display: block; }
.quiz-result b { color: var(--green-deep); font-size: 17px; }
.quiz-result p { font-size: 14.5px; color: var(--ink); margin: 6px 0 10px; }

/* ============================================================
   11. Awan tag
   ============================================================ */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.tag-cloud a {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--green-deep);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.15s ease;
}
.tag-cloud a:hover {
  background: var(--green-deep);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   12. Bagian keamanan & tanggung jawab
   ============================================================ */
.sec-dark { background: var(--green-night); color: #d9ecdf; }
.sec-dark .sec-kicker { color: var(--gold-soft); }
.sec-dark h2, .sec-dark h3 { color: #fff; }
.sec-dark p { color: #b9d6c2; }
.sec-dark .split-img { border-color: rgba(255, 255, 255, 0.15); }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.tool {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 14px 16px;
}
.tool b { color: var(--gold-soft); font-size: 14.5px; display: block; margin-bottom: 4px; }
.tool p { font-size: 13.5px; color: #b9d6c2; }
.warn-list { list-style: none; padding: 0; margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.warn-list li {
  background: rgba(216, 30, 63, 0.12);
  border: 1px solid rgba(216, 30, 63, 0.35);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: #f3d5db;
}
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 3px solid var(--red);
  color: #ff8fa3;
  font-weight: 900;
  width: 58px; height: 58px;
  font-size: 17px;
  flex-shrink: 0;
}

/* ============================================================
   13. FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 860px; margin-inline: auto; }
details.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 18px;
  font-weight: 700;
  font-size: 15.5px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--green);
  font-weight: 900;
  flex-shrink: 0;
}
details.faq-item[open] summary::after { content: "–"; color: var(--red); }
details.faq-item[open] summary { background: #f4f9f4; color: var(--green-deep); }
details.faq-item .faq-a {
  padding: 4px 18px 16px;
  color: var(--muted);
  font-size: 14.5px;
}

/* ============================================================
   14. Breadcrumb
   ============================================================ */
.crumbs { padding: 14px 16px 0; }
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  padding: 0;
}
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--gold); font-weight: 800; }
.crumbs a { color: var(--green-deep); font-weight: 600; }

/* ============================================================
   15. Artikel (entry)
   ============================================================ */
.page-hero {
  background: linear-gradient(105deg, var(--green-night), var(--green-deep));
  color: #fff;
  padding: 44px 0 40px;
}
.page-hero .sec-kicker { color: var(--gold-soft); }
.page-hero h1 { color: #fff; font-size: clamp(26px, 4.6vw, 40px); margin-bottom: 10px; }
.page-hero p { color: #cfe7d6; max-width: 780px; font-size: 15.5px; }
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: #a9c9b3;
  margin-top: 14px;
}
.entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
  padding: 38px 0 54px;
  align-items: start;
}
.entry {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
}
.entry-cover { width: 100%; aspect-ratio: 3 / 1.6; object-fit: cover; }
.entry-body { padding: 26px 28px 30px; }
.entry-content { font-size: 15.5px; color: #2a332d; }
.entry-content h2 {
  font-size: 21px;
  margin: 28px 0 10px;
  padding-left: 12px;
  border-left: 4px solid var(--gold);
}
.entry-content h3 { font-size: 17.5px; margin: 20px 0 8px; }
.entry-content p { margin-bottom: 13px; }
.entry-content ul, .entry-content ol { margin: 0 0 14px; }
.entry-content li { margin-bottom: 6px; }
.entry-content img { border-radius: 12px; margin: 18px 0; }
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 14px 0 20px;
  display: block;
  overflow-x: auto;
}
.entry-content th {
  background: var(--green-deep);
  color: #fff;
  text-align: left;
  padding: 10px 12px;
  white-space: nowrap;
}
.entry-content td { border: 1px solid var(--line); padding: 9px 12px; vertical-align: top; }
.entry-content tr:nth-child(even) td { background: #f6faf6; }
.note {
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  margin: 16px 0;
  background: #eaf3fb;
  border: 1px solid #bcd8f2;
  color: #1d3d5c;
}
.note.warn { background: #fdeeee; border-color: #f2c1c9; color: #6e1f2c; }
.note.ok { background: #ecf7ef; border-color: #bfe3c8; color: #1d5231; }
.entry-cta {
  margin-top: 26px;
  background: linear-gradient(120deg, var(--green-night), var(--green-deep));
  border-radius: 12px;
  padding: 22px;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.entry-cta h3 { color: #fff; font-size: 18px; }
.entry-cta p { color: #cfe7d6; font-size: 14px; margin-top: 4px; }

/* widget samping */
.widget {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.widget h3 {
  font-size: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 12px;
}
.widget ul { list-style: none; padding: 0; }
.widget li { border-bottom: 1px dashed var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget li a {
  display: block;
  padding: 9px 0;
  font-size: 14px;
  font-weight: 600;
}
.widget li small { color: var(--muted); font-weight: 400; display: block; }

/* ============================================================
   16. Formulir daftar / masuk
   ============================================================ */
.auth-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 46px 0 56px;
}
.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 28px;
}
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card > p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  background: #fbfcfa;
}
.field input:focus { outline: none; border-color: var(--green); }
.field-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
  margin: 14px 0;
}
.field-check input { margin-top: 3px; accent-color: var(--green); width: 16px; height: 16px; flex-shrink: 0; }
.form-msg { display: none; font-size: 13.5px; border-radius: 10px; padding: 10px 14px; margin-top: 12px; }
.form-msg.ok { display: block; background: #ecf7ef; color: #1d5231; border: 1px solid #bfe3c8; }
.form-msg.err { display: block; background: #fdeeee; color: #6e1f2c; border: 1px solid #f2c1c9; }
.auth-side { color: #e8f4ec; }
.auth-side h2 { color: #fff; font-size: 24px; margin-bottom: 10px; }
.auth-side p { color: #c4dfcd; font-size: 15px; margin-bottom: 12px; }

/* ============================================================
   17. Halaman pencarian
   ============================================================ */
.search-page-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.search-page-box input {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
}
.search-page-box input:focus { outline: none; border-color: var(--green); }
.search-page-box .search-results {
  position: static;
  box-shadow: none;
  border: 1px solid var(--line);
  margin-top: 12px;
}

/* ============================================================
   18. Site footer
   ============================================================ */
.site-footer {
  background: #0b2015;
  color: #a9c4b1;
  padding: 46px 0 84px;
  border-top: 4px solid var(--gold);
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 28px;
}
.foot-brand b { font-size: 22px; color: #fff; }
.foot-brand b em {
  font-style: normal;
  color: var(--gold);
  background: var(--red);
  padding: 0 6px;
  border-radius: 6px;
  margin-left: 2px;
}
.foot-brand p { font-size: 13.5px; margin-top: 10px; }
.foot-badges { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.foot-badge {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  color: #e8f4ec;
}
.foot-badge.red { border-color: var(--red); color: #ff92a5; }
.site-footer h3 {
  color: #fff;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { color: #a9c4b1; font-size: 14px; }
.site-footer li a:hover { color: var(--gold-soft); }
.foot-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 32px;
  padding-top: 20px;
  font-size: 12.5px;
  color: #7e9987;
  line-height: 1.8;
}

/* ============================================================
   19. CTA melayang (gaya mesin slot + koin)
   ============================================================ */
.float-bar {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  background: linear-gradient(180deg, #1c2b22, #0b1a10);
  border: 2px solid var(--gold);
  border-radius: 999px;
  padding: 8px 22px 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(242, 178, 3, 0.18);
  animation: floatGlow 2.6s ease-in-out infinite;
  overflow: visible;
  text-decoration: none;
}
@keyframes floatGlow {
  0%, 100% { box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(242, 178, 3, 0.18); }
  50% { box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55), 0 0 18px 4px rgba(242, 178, 3, 0.45); }
}
.float-reels { display: flex; gap: 4px; }
.float-reels i {
  font-style: normal;
  font-size: 17px;
  line-height: 1;
  display: inline-block;
  animation: reelSpin 1.1s linear infinite;
}
.float-reels i:nth-child(2) { animation-delay: 0.18s; }
.float-reels i:nth-child(3) { animation-delay: 0.36s; }
@keyframes reelSpin {
  0% { transform: translateY(-3px) rotate(-8deg); filter: brightness(1.3); }
  50% { transform: translateY(3px) rotate(8deg); }
  100% { transform: translateY(-3px) rotate(-8deg); filter: brightness(1.3); }
}
.float-label {
  color: var(--gold-soft);
  font-weight: 900;
  letter-spacing: 1.5px;
  font-size: 15px;
  white-space: nowrap;
}
.coin {
  position: absolute;
  bottom: 6px;
  font-size: 14px;
  pointer-events: none;
  opacity: 0;
}
.coin.pop { animation: coinUp 2s ease-out forwards; }
@keyframes coinUp {
  0% { opacity: 0; transform: translate(0, 0) scale(0.5); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx, 0px), -110px) scale(1.15); }
}

/* ============================================================
   20. Animasi muncul & utilitas
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.center { text-align: center; }
.mt-24 { margin-top: 24px; }
.muted { color: var(--muted); }

/* ============================================================
   21. Responsif
   ============================================================ */
@media (max-width: 1024px) {
  .entry-layout { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--green-night);
    border-top: 1px solid rgba(242, 178, 3, 0.3);
    margin: 0;
    max-height: 70vh;
    overflow-y: auto;
  }
  .main-navigation.open { display: block; }
  .main-navigation ul { flex-direction: column; padding: 10px 16px 16px; gap: 2px; }
  .main-navigation a { padding: 11px 10px; font-size: 15.5px; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .auth-wrap { grid-template-columns: 1fr; padding-top: 34px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .section { padding: 40px 0; }
  .hero-in { padding: 46px 0 44px; }
  .grid-2, .grid-3, .grid-4, .tool-grid { grid-template-columns: 1fr; }
  .entry-body { padding: 20px 18px 26px; }
  .auth-card { padding: 24px 18px; }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; }
  .entry-cta { flex-direction: column; align-items: flex-start; }
  .hero-cta .btn { flex: 1 1 auto; }
  .foot-legal { font-size: 12px; }
}
@media (max-width: 380px) {
  .wrap { padding-inline: 12px; }
  .brand b { font-size: 20px; }
  .brand small { letter-spacing: 0.8px; font-size: 9px; }
  .btn { padding: 12px 18px; font-size: 14.5px; }
  .float-bar { padding: 7px 16px 7px 10px; bottom: 10px; }
  .float-label { font-size: 13.5px; letter-spacing: 1px; }
  .float-reels i { font-size: 14px; }
  .card-body { padding: 15px 14px 17px; }
  .quiz-box { padding: 20px 16px; }
  .entry-content table { font-size: 13px; }
  .site-footer { padding-bottom: 76px; }
}

/* aksesibilitas fokus */
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .topbar-track { animation: none; }
}
