/* ============================================================
   PRIMBON JAWA - Main Stylesheet
   Batik-inspired design, mobile-first
   Dark mode via [data-theme="dark"] pada <html>
   ============================================================ */



/* ── Dark mode via attribute (bukan prefers-color-scheme) ── */


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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
  transition: background .25s, color .25s;
}

/* ── Batik pattern background ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(139,26,26,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(196,135,42,0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(212,175,55,0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ── */
.container  { max-width: 760px; margin: 0 auto; padding: 0 16px; position: relative; z-index: 1; }
.page-wrap  { padding: 20px 0 16px; }

/* ── Header ── */
.site-header {
  background: linear-gradient(135deg, var(--fill-primary), #5C1010);
  padding: 14px 20px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-logo { color: var(--accent); font-size: 1.1rem; font-weight: 700; text-decoration: none; letter-spacing: 1px; }
.site-logo span { font-size: 1.3rem; }
.site-nav a { color: rgba(255,255,255,0.85); text-decoration: none; margin-left: 18px; font-size: 0.9rem; }
.site-nav a:hover, .site-nav a.active { color: var(--accent); }

/* ── Hero / Banner ── */
.hero {
  text-align: center;
  padding: 36px 20px 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.hero h1 { font-size: 1.9rem; color: var(--primary); margin-bottom: 8px; }
.hero p   { color: var(--text-sub); font-size: 0.95rem; }

/* ── Card ── */
.card {
  background: linear-gradient(135deg, var(--card), var(--card2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}
.card-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.card-header h3 { font-size: 0.82rem; font-weight: 700; letter-spacing: 1px; color: var(--text); }
.card-header h3.warn { color: var(--orange); }
.card-header h3.danger { color: var(--red); }
.card-body { padding: 16px; font-size: 0.9rem; line-height: 1.85; color: var(--text); }

/* ── Form ── */
.form-card { padding: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-sub); margin-bottom: 6px; }
.form-group input[type="text"],
.form-group input[type="date"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus { border-color: var(--primary); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.form-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0;
  color: var(--text-sub); font-size: 0.85rem;
}
.form-divider::before, .form-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── Button ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; max-width: 100%;
  padding: 13px 28px;
  border: 1.5px solid transparent; border-radius: 8px;
  background: var(--fill-primary); color: var(--button-ink, #fff);
  font-size: 1rem; font-weight: 600;
  line-height: 1.35; text-align: center; white-space: normal; overflow-wrap: anywhere;
  cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .2s;
  text-decoration: none; box-sizing: border-box;
}
.btn-sm { padding: 10px 16px; font-size: .85rem; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--fill-primary), #6B1414);
  color: white;
  width: 100%;
  box-shadow: 0 4px 14px rgba(139,26,26,0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(139,26,26,0.45); }
.btn-secondary {
  background: transparent; color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-secondary:hover { background: var(--fill-primary); color: white; }
.btn-share {
  background: var(--fill-secondary); color: white;
  width: 100%; margin-top: 12px;
}

/* ── Header hasil weton ── */
.weton-header {
  padding: 24px 20px;
  text-align: center;
  background: linear-gradient(180deg, rgba(139,26,26,0.08) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}
.weton-name { font-size: 1.8rem; font-weight: 700; color: var(--primary); letter-spacing: 1px; }
.weton-sub  { color: var(--text-sub); font-size: 0.9rem; margin-bottom: 16px; }
.neptu-row  { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.neptu-box  {
  background: rgba(212,175,55,0.12);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 18px;
  text-align: center;
}
.neptu-box .val { font-size: 1.6rem; font-weight: 700; color: var(--primary); }
.neptu-box .lbl { font-size: 0.72rem; color: var(--text-sub); }
.neptu-op       { font-size: 1.4rem; font-weight: 700; color: var(--text-sub); }

/* ── Tab ── */
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tab  {
  flex: 1; text-align: center; padding: 12px 8px;
  font-size: 0.9rem; cursor: pointer; border: none;
  background: transparent; color: var(--text-sub);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px; transition: all .2s;
}
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* ── Skor jodoh ── */
.skor-circle {
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 6px solid currentColor;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.skor-circle .num { font-size: 2.2rem; font-weight: 700; }
.skor-circle .pct { font-size: 0.75rem; opacity: .8; }

.algo-list { list-style: none; }
.algo-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.algo-item:last-child { border-bottom: none; }
.algo-badge {
  background: var(--fill-primary); color: white;
  font-size: 0.7rem; font-weight: 700;
  padding: 3px 8px; border-radius: 20px;
  white-space: nowrap;
}
.algo-detail { flex: 1; font-size: 0.88rem; }
.algo-detail .nama { font-weight: 700; color: var(--primary); }
.algo-detail .desc { color: var(--text-sub); margin-top: 3px; font-size: 0.83rem; }

/* ── Menu utama ── */
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 400px) { .menu-grid { grid-template-columns: 1fr; } }
.menu-card {
  background: linear-gradient(135deg, var(--card), var(--card2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: all .2s;
  display: block;
}
.menu-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px var(--shadow); border-color: var(--primary); }
.menu-card .icon { font-size: 2.5rem; display: block; margin-bottom: 10px; }
.menu-card .title { font-weight: 700; font-size: 1rem; color: var(--primary); }
.menu-card .desc  { font-size: 0.82rem; color: var(--text-sub); margin-top: 4px; }

/* ── Alert ── */
.alert { padding: 14px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 0.9rem; }
.alert-danger  { background: rgba(183,28,28,0.08); border: 1px solid rgba(183,28,28,0.3); color: var(--red); }
.alert--warning{ background: rgba(230,81,0,0.08);  border: 1px solid rgba(230,81,0,0.3);  color: var(--orange); }
.alert--info   { background: rgba(139,26,26,0.06); border: 1px solid var(--border); color: var(--text-sub); }

/* ── Footer ── */
.site-footer { text-align: center; padding: 30px 16px; color: var(--text-sub); font-size: 0.82rem; border-top: 1px solid var(--border); margin-top: 0px; }

/* ── Theme toggle button ── */
.theme-toggle {
  background: none;
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 20px;
  color: var(--ink-d4af37);
  cursor: pointer;
  font-size: 1rem;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .2s, border-color .2s;
  margin-left: 8px;
}
.theme-toggle:hover { background: rgba(212,175,55,0.15); border-color: #D4AF37; }

/* ── Utility ── */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.hidden { display: none; }


/* ===== Layout UI extracted from includes/layout.php for browser caching ===== */
/* ════════════════════════════════════════
   NAVBAR
════════════════════════════════════════ */
.site-header {
  background: linear-gradient(135deg, #5C1010, #8B1A1A);
  padding: 0;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.nav-inner {
  display: flex; align-items: center;
  height: 56px; padding: 0 16px;
  max-width: 760px; margin: 0 auto; gap: 8px;
}
.site-logo {
  color: var(--ink-d4af37); font-size: 1rem; font-weight: 700;
  text-decoration: none; letter-spacing: .5px; white-space: nowrap;
  flex: 1; display: flex; align-items: center; gap: 6px;
}
.site-logo span { font-size: 1.3rem; }
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links > li { position: relative; }
.nav-links > li > a,
.nav-dropdown-btn {
  display: flex; align-items: center; gap: 4px;
  color: rgba(255,255,255,0.88); text-decoration: none;
  padding: 8px 14px; border-radius: 8px; font-size: 0.875rem;
  background: none; border: none; cursor: pointer;
  white-space: nowrap; font-family: inherit;
  transition: background .15s, color .15s; height: 40px;
}
.nav-links > li > a:hover,
.nav-dropdown-btn:hover { background: rgba(255,255,255,0.1); color: var(--ink-d4af37); }
.nav-links > li > a.active,
.nav-dropdown-btn.active {
  background: rgba(212,175,55,0.18); color: var(--ink-d4af37); font-weight: 600;
}
.nav-dropdown-btn .arrow {
  font-size: 0.6rem; opacity: .7;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.nav-dropdown-btn[aria-expanded="true"] .arrow { transform: rotate(180deg); }

/* ════════════════════════════════════════
   MEGA MENU PANEL
════════════════════════════════════════ */
.mega-panel {
  display: none;
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 580px;
  background: linear-gradient(160deg, #3B0A0A 0%, #250505 100%);
  border: 1px solid rgba(212,175,55,0.22);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(212,175,55,0.06);
  overflow: hidden; z-index: 200;
}
@keyframes megaIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.mega-panel.show {
  display: block;
  animation: megaIn .2s cubic-bezier(.4,0,.2,1) both;
}
.mega-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px 10px;
  border-bottom: 1px solid rgba(212,175,55,0.12);
}
.mega-header-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, rgba(212,175,55,0.35));
}
.mega-header-line.r { background: linear-gradient(to left, transparent, rgba(212,175,55,0.35)); }
.mega-header-label { color: var(--ink-d4af37); font-size: 0.65rem; letter-spacing: 2px; white-space: nowrap; }
.mega-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; padding: 14px 8px 16px;
}
.mega-col {
  padding: 0 10px;
  border-left: 1px solid rgba(212,175,55,0.08);
}
.mega-col:first-child { border-left: none; }
.mega-col-title {
  color: var(--ink-d4af37); font-size: 0.62rem; letter-spacing: 1.8px;
  text-transform: uppercase; margin: 0 0 8px; padding-bottom: 6px;
  border-bottom: 1px solid rgba(212,175,55,0.2); white-space: nowrap;
}
.mega-col a {
  display: flex; align-items: center; gap: 5px;
  color: rgba(255,255,255,0.65); text-decoration: none;
  font-size: 0.8rem; padding: 5px 4px; border-radius: 5px;
  border-left: 2px solid transparent; line-height: 1.3;
  transition: color .15s, background .15s, padding-left .15s, border-left-color .15s;
}
.mega-col a:hover {
  color: var(--ink-d4af37); background: rgba(212,175,55,0.08);
  padding-left: 8px; border-left-color: #D4AF37;
}
.mega-col a.active {
  color: var(--ink-d4af37); background: rgba(212,175,55,0.12);
  border-left-color: #D4AF37; font-weight: 600;
}
.mega-footer {
  padding: 10px 18px 12px;
  border-top: 1px solid rgba(212,175,55,0.1);
  display: flex; align-items: center; gap: 10px;
}
.mega-footer-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, rgba(212,175,55,0.2));
}
.mega-footer-line.r { background: linear-gradient(to left, transparent, rgba(212,175,55,0.2)); }
.mega-footer-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(212,175,55,0.5);
  animation: megaDotPulse 2.5s ease-in-out infinite;
}
.mega-footer-dot:nth-child(3) { animation-delay: .4s; }
.mega-footer-dot:nth-child(5) { animation-delay: .8s; }
@keyframes megaDotPulse {
  0%,100% { opacity: .4; transform: scale(1); }
  50%     { opacity: 1;  transform: scale(1.4); }
}

/* ── Hamburger ── */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; cursor: pointer; background: none; border: none;
  padding: 6px; border-radius: 8px; flex-shrink: 0; transition: background .2s;
}
.nav-toggle:hover { background: rgba(255,255,255,0.1); }
.nav-toggle span {
  display: block; height: 2px; background: #D4AF37;
  border-radius: 2px; transition: all .28s; transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.55); z-index: 98; backdrop-filter: blur(1px);
}
.nav-overlay.show { display: block; }

/* ════════════════════════════════════════
   MOBILE ≤ 680px
════════════════════════════════════════ */
@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -272px;
    width: 260px; height: 100dvh;
    background: linear-gradient(180deg, #3B0A0A 0%, #1A0500 100%);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 64px 0 24px; z-index: 99;
    transition: right .28s cubic-bezier(.4,0,.2,1);
    box-shadow: -4px 0 24px rgba(0,0,0,0.5);
    overflow-y: auto; border-left: 1px solid rgba(212,175,55,0.15);
    visibility: hidden;
  }
  .nav-links.open { right: 0; visibility: visible; }
  .nav-links > li { border-bottom: 1px solid rgba(255,255,255,0.05); width: 100%; }
  .nav-links > li:last-child { border-bottom: none; }
  .nav-links > li > a,
  .nav-dropdown-btn {
    width: 100%; padding: 14px 20px; border-radius: 0;
    font-size: 0.95rem; justify-content: space-between; height: auto; box-sizing: border-box;
  }
  .nav-links > li > a.active { border-left: 3px solid #D4AF37; padding-left: 17px; }
  .nav-dropdown-btn.active   { border-left: 3px solid #D4AF37; padding-left: 17px; }
  .mega-panel {
    position: static; width: 100%;
    background: rgba(0,0,0,0.25);
    border: none; border-radius: 0; box-shadow: none;
    border-top: 1px solid rgba(255,255,255,0.05);
    animation: none !important;
    display: block !important; max-height: 0; overflow: hidden;
    transition: max-height .3s cubic-bezier(.4,0,.2,1);
  }
  .mega-panel.show { max-height: 1800px; }
  .mega-header, .mega-footer { display: none; }
  .mega-grid { display: flex; flex-direction: column; gap: 0; padding: 0; }
  .mega-col {
    border-left: none; border-top: 1px solid rgba(255,255,255,0.04);
    padding: 10px 20px 10px 32px;
  }
  .mega-col-title { font-size: 0.7rem; letter-spacing: 1.5px; margin-bottom: 6px; }
  .mega-col a { padding: 7px 4px; font-size: 0.88rem; border-radius: 0; }
  .mega-col a:hover { padding-left: 10px; }
}

/* ════════════════════════════════════════
   COMBO FLOAT WIDGET — Laporkan (kiri) + Pengumuman (tengah, opsional) + Online (kanan)
   Satu pill, muncul di semua halaman, pojok kanan bawah.
════════════════════════════════════════ */
.combo-float-widget {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 999;
  display: flex;
  align-items: stretch;
  background: linear-gradient(135deg, #5C1010, #8B1A1A);
  border: 1px solid rgba(212,175,55,0.45);
  border-radius: 22px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  font-family: inherit;
  transition: box-shadow .2s, border-color .2s;
}
.combo-float-widget > .combo-btn:first-child,
.combo-float-widget > div:first-child > .combo-btn {
  border-radius: 22px 0 0 22px;
}
.combo-float-widget > .combo-btn:last-child,
.combo-float-widget > div:last-child > .combo-btn {
  border-radius: 0 22px 22px 0;
}
.combo-float-widget:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  border-color: rgba(212,175,55,0.8);
}
.combo-float-widget .combo-btn {
  display: flex; align-items: center; gap: 7px;
  background: transparent; border: none; cursor: pointer;
  color: rgba(255,255,255,0.88); font-size: .82rem;
  padding: 9px 16px; font-family: inherit; white-space: nowrap;
  transition: background .15s, color .15s;
  position: relative; z-index: 1;
}
.combo-float-widget .combo-btn:hover { background: rgba(255,255,255,0.08); color: var(--ink-d4af37); }
.combo-float-widget .combo-divider {
  width: 1px;
  align-self: center;
  height: 22px;
  margin: 0;
  background: rgba(212,175,55,0.3); flex-shrink: 0;
}
.combo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2ecc71; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(46,204,113,0.6);
  animation: comboPulse 2s ease-in-out infinite;
}
@keyframes comboPulse {
  0%   { box-shadow: 0 0 0 0   rgba(46,204,113,0.6); }
  70%  { box-shadow: 0 0 0 7px rgba(46,204,113,0);   }
  100% { box-shadow: 0 0 0 0   rgba(46,204,113,0);   }
}
@media (max-width: 400px) {
  .combo-float-widget { right: 12px; bottom: 14px; }
  .combo-float-widget .combo-btn { padding: 9px 12px; font-size: .78rem; }
}

/* ── Pengumuman: dot berkedip di ikon 📢 ── */
.combo-pengumuman-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #D4AF37; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(212,175,55,0.6);
  animation: comboPulse 2s ease-in-out infinite;
}
.combo-pengumuman-dot.tipe-penting {
  background: #e74c3c;
  box-shadow: 0 0 0 0 rgba(231,76,60,0.6);
  animation: comboPulseMerah 2s ease-in-out infinite;
}
@keyframes comboPulseMerah {
  0%   { box-shadow: 0 0 0 0   rgba(231,76,60,0.6); }
  70%  { box-shadow: 0 0 0 7px rgba(231,76,60,0);   }
  100% { box-shadow: 0 0 0 0   rgba(231,76,60,0);   }
}

/* ── Popup Pengumuman ── */
.pengumuman-popup {
  display: none; position: absolute;
  bottom: calc(100% + 10px); right: 0;
  width: 280px;
  max-width: calc(100vw - 40px);
  background: linear-gradient(160deg, #3B0A0A 0%, #250505 100%);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  overflow: hidden;
}
.pengumuman-popup.show {
  display: block;
  animation: popupIn .2s cubic-bezier(.4,0,.2,1) both;
}
.pengumuman-popup-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px 10px;
  border-bottom: 1px solid rgba(212,175,55,0.15);
  color: var(--ink-d4af37); font-size: .82rem; font-weight: 600;
}
.pengumuman-popup-close {
  background: none; border: none; color: rgba(255,255,255,0.4);
  cursor: pointer; font-size: .9rem; padding: 2px 4px;
  border-radius: 4px; transition: color .15s, background .15s;
}
.pengumuman-popup-close:hover { color: var(--ink-d4af37); background: rgba(212,175,55,0.1); }
.pengumuman-popup-body {
  padding: 12px 16px 16px;
  color: rgba(255,255,255,0.82);
  font-size: .84rem; line-height: 1.6;
  word-break: break-word;
  white-space: normal;
}
@media (max-width: 400px) {
  .pengumuman-popup { width: calc(100vw - 24px); right: -30px; }
}

/* ── Modal Laporkan ── */
.lapor-modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1050;
  align-items: center; justify-content: center;
  padding: 16px;
  backdrop-filter: blur(2px);
}
.lapor-modal-overlay.show { display: flex; }

.lapor-modal {
  background: var(--card, var(--card));
  border: 1px solid var(--border, #D4A96A);
  border-radius: 16px;
  max-width: 480px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  animation: laporModalIn .22s cubic-bezier(.4,0,.2,1) both;
}
@keyframes laporModalIn {
  from { opacity:0; transform: translateY(16px) scale(.97); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}

.lapor-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border, #D4A96A);
}
.lapor-modal-head h3 {
  font-size: .95rem; font-weight: 700; color: var(--primary, var(--ink-8b1a1a)); margin: 0;
}
.lapor-modal-close {
  background: none; border: none;
  color: var(--text-sub, var(--ink-6b4c3b)); font-size: 1.1rem;
  cursor: pointer; padding: 3px 8px; border-radius: 6px;
  transition: background .15s, color .15s;
}
.lapor-modal-close:hover { background: rgba(139,26,26,.08); color: var(--primary,var(--ink-8b1a1a)); }

.lapor-modal-body { padding: 18px 20px 20px; }

.lapor-field { margin-bottom: 14px; }
.lapor-field label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--text-sub, var(--ink-6b4c3b)); margin-bottom: 5px;
}
.lapor-field select,
.lapor-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border, #D4A96A);
  border-radius: 8px;
  background: var(--bg, var(--card));
  color: var(--text, var(--ink-2c1810));
  font-size: .9rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}
.lapor-field select:focus,
.lapor-field textarea:focus { border-color: var(--primary, #8B1A1A); }
.lapor-field textarea { resize: vertical; min-height: 90px; line-height: 1.6; }

.lapor-url-preview {
  font-size: .76rem; color: var(--text-sub, var(--ink-6b4c3b));
  background: rgba(139,26,26,.05); border: 1px solid var(--border,#D4A96A);
  border-radius: 6px; padding: 6px 10px; margin-bottom: 14px;
  word-break: break-all; line-height: 1.5;
}

.lapor-btn-submit {
  width: 100%; padding: 12px;
  background: linear-gradient(135deg, var(--fill-primary,#8B1A1A), #6B1414);
  color: #fff; border: none; border-radius: 8px;
  font-size: .95rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: opacity .2s, transform .2s;
}
.lapor-btn-submit:hover { opacity: .9; transform: translateY(-1px); }
.lapor-btn-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.lapor-result { text-align: center; padding: 24px 16px; display: none; }
.lapor-result .lapor-result-icon { font-size: 2.5rem; margin-bottom: 8px; }
.lapor-result p { color: var(--text, var(--ink-2c1810)); font-size: .9rem; line-height: 1.6; }
.lapor-char-count { font-size: .75rem; color: var(--text-sub,var(--ink-6b4c3b)); text-align: right; margin-top: 3px; }

/* ── Popup daftar online ── */
.online-popup {
  display: none; position: absolute;
  bottom: calc(100% + 10px); right: 0;
  width: 280px;
  background: linear-gradient(160deg, #3B0A0A 0%, #250505 100%);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  overflow: hidden;
}
.online-popup.show {
  display: block;
  animation: popupIn .2s cubic-bezier(.4,0,.2,1) both;
}
@keyframes popupIn {
  from { opacity:0; transform: translateY(8px) scale(.97); }
  to   { opacity:1; transform: translateY(0)   scale(1);   }
}
.online-popup-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px 10px;
  border-bottom: 1px solid rgba(212,175,55,0.15);
  color: var(--ink-d4af37); font-size: .85rem; font-weight: 600;
}
.online-popup-close {
  background: none; border: none; color: rgba(255,255,255,0.4);
  cursor: pointer; font-size: .9rem; padding: 2px 4px;
  border-radius: 4px; transition: color .15s, background .15s;
}
.online-popup-close:hover { color: var(--ink-d4af37); background: rgba(212,175,55,0.1); }
.online-popup-body { padding: 10px 0; max-height: 260px; overflow-y: auto; }
.online-loading { padding: 16px; text-align: center; color: rgba(255,255,255,0.4); font-size: .82rem; }
.online-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 16px; font-size: .82rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background .15s;
}
.online-row:last-child { border-bottom: none; }
.online-row:hover { background: rgba(212,175,55,0.06); }
.online-row-name  { color: rgba(255,255,255,0.75); }
.online-row-count {
  background: rgba(212,175,55,0.15); color: var(--ink-d4af37);
  font-size: .72rem; font-weight: 700;
  padding: 2px 8px; border-radius: 10px; white-space: nowrap;
}
.online-empty {
  padding: 20px 16px; text-align: center;
  color: rgba(255,255,255,0.35); font-size: .8rem;
}
.online-popup-footer {
  padding: 8px 16px 10px;
  border-top: 1px solid rgba(212,175,55,0.1);
  text-align: center;
}
@media (max-width: 400px) {
  .online-popup { width: calc(100vw - 24px); right: 0; }
}

.site-footer {
  background: linear-gradient(180deg, #2a0800 0%, #1a0500 100%);
  padding: 0 0 24px; font-family: inherit; position: relative;
}
.site-footer::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='15' cy='15' r='9' fill='none' stroke='rgba(212,175,55,0.07)' stroke-width='1'/%3E%3Ccircle cx='15' cy='15' r='5' fill='none' stroke='rgba(212,175,55,0.05)' stroke-width='0.8'/%3E%3Ccircle cx='45' cy='15' r='9' fill='none' stroke='rgba(212,175,55,0.07)' stroke-width='1'/%3E%3Ccircle cx='45' cy='15' r='5' fill='none' stroke='rgba(212,175,55,0.05)' stroke-width='0.8'/%3E%3Ccircle cx='15' cy='45' r='9' fill='none' stroke='rgba(212,175,55,0.07)' stroke-width='1'/%3E%3Ccircle cx='15' cy='45' r='5' fill='none' stroke='rgba(212,175,55,0.05)' stroke-width='0.8'/%3E%3Ccircle cx='45' cy='45' r='9' fill='none' stroke='rgba(212,175,55,0.07)' stroke-width='1'/%3E%3Ccircle cx='45' cy='45' r='5' fill='none' stroke='rgba(212,175,55,0.05)' stroke-width='0.8'/%3E%3Ccircle cx='30' cy='30' r='9' fill='none' stroke='rgba(212,175,55,0.05)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}
.footer-inner {
  max-width: 760px; margin: 0 auto;
  padding: 0 24px; position: relative; z-index: 2;
}
.footer-top-ornament {
  display: flex; align-items: center; gap: 12px; padding: 28px 0 18px;
}
.footer-top-ornament-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, rgba(212,175,55,0.5));
}
.footer-top-ornament-line.r { background: linear-gradient(to left, transparent, rgba(212,175,55,0.5)); }
.fo-ring-a { animation: foSpinCW  24s linear infinite; transform-origin: 36px 36px; }
.fo-ring-b { animation: foSpinCCW 18s linear infinite; transform-origin: 36px 36px; }
.fo-ring-c { animation: foSpinCW  32s linear infinite; transform-origin: 36px 36px; }
.fo-dot    { animation: foPulse    3s ease-in-out infinite; }
.fo-petal  { animation: foPetalGlow 4s ease-in-out infinite; }
@keyframes foSpinCW  { to { transform: rotate(360deg);  } }
@keyframes foSpinCCW { to { transform: rotate(-360deg); } }
@keyframes foPulse     { 0%,100% { opacity:.7; } 50% { opacity:1;  } }
@keyframes foPetalGlow { 0%,100% { opacity:.18; } 50% { opacity:.45; } }
.footer-divider {
  display: flex; align-items: center; gap: 10px; margin-bottom: 28px;
}
.footer-divider-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, rgba(212,175,55,0.35));
}
.footer-divider-line.r { background: linear-gradient(to left, transparent, rgba(212,175,55,0.35)); }
.footer-divider-label {
  color: var(--ink-d4af37); font-size: 0.7rem; letter-spacing: 2.5px; opacity: 0.9; white-space: nowrap;
}
.footer-grid {
  display: grid; grid-template-columns: 160px 1fr 1fr 1fr; gap: 0; margin-bottom: 32px;
}
.footer-col { text-align: left; padding: 0 20px; border-left: 1px solid rgba(212,175,55,0.12); }
.footer-col:first-child { border-left: none; padding-left: 0; }
.footer-col:last-child  { padding-right: 0; }
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .footer-col  { padding: 0 12px; border-left: 1px solid rgba(212,175,55,0.12); }
  .footer-col:nth-child(odd) { border-left: none; padding-left: 0; }
}
@media (max-width: 380px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col  { border-left: none; padding: 0; }
}
.footer-col-title {
  color: var(--ink-d4af37); font-size: 0.68rem; letter-spacing: 1.8px;
  text-transform: uppercase; margin: 0 0 10px; padding-bottom: 7px;
  border-bottom: 1px solid rgba(212,175,55,0.25);
}
.footer-col-left .footer-col-title { margin-top: 20px; }
.footer-col-left .footer-col-title:first-child { margin-top: 0; }
.footer-col a {
  display: block; color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 0.81rem; padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  border-left: 2px solid transparent;
  transition: color .18s, padding-left .18s, border-left-color .18s;
}
.footer-col a:last-child { border-bottom: none; }
.footer-col a:hover { color: var(--ink-d4af37); padding-left: 7px; border-left-color: #D4AF37; }
.gplay-section { margin-bottom: 28px; }
.gplay-divider { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.gplay-divider-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, rgba(212,175,55,0.3));
}
.gplay-divider-line.r { background: linear-gradient(to left, transparent, rgba(212,175,55,0.3)); }
.gplay-divider-label { color: var(--ink-d4af37); font-size: 0.68rem; letter-spacing: 1.5px; white-space: nowrap; }
.gplay-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.gplay-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #1a0a00, #2d1200);
  border: 1px solid rgba(212,175,55,0.4); border-radius: 10px; padding: 6px 12px;
  text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  animation: fadeInUp .5s ease both;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.gplay-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 18px rgba(212,175,55,0.25); border-color: rgba(212,175,55,0.8);
}
.gplay-btn img {
  width: 32px; height: 32px; border-radius: 6px; object-fit: cover; transition: transform .2s ease;
}
.gplay-btn:hover img { transform: rotate(-5deg) scale(1.1); }
.gplay-btn-text { text-align: left; line-height: 1.3; }
.gplay-btn-sub  { color: rgba(255,255,255,0.5); font-size: 0.6rem; }
.gplay-btn-name { color: var(--ink-d4af37); font-size: 0.8rem; font-weight: 600; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.footer-bottom {
  border-top: 1px solid rgba(212,175,55,0.12); padding-top: 18px; text-align: center;
}
.footer-bottom p { color: rgba(255,255,255,0.35); font-size: 0.78rem; margin: 4px 0; }
.footer-bottom .brand { color: rgba(255,255,255,0.6); }

/* Accessibility: semantic headings can label SVG-led hero sections without changing the visual design. */
.sr-only {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important; border: 0 !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Keyboard accessibility and touch comfort. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(212,175,55,.72);
  outline-offset: 3px;
}
@media (pointer: coarse) {
  .btn, .nav-dropdown-btn, .nav-links > li > a, .filter-chip, .pager-btn { min-height: 44px; }
}

/* ============================================================
   PRIMBON.WEB.ID IDENTITY REFRESH V3
   Arah visual: Kawung Pethak — hangat, rapi, klasik, ringan.
   Ditulis sebagai override agar aman untuk halaman lama.
   ============================================================ */



html { text-rendering: optimizeLegibility; }
body {
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(143,38,48,.08), transparent 34rem),
    radial-gradient(circle at right 18rem, rgba(201,154,53,.10), transparent 30rem),
    linear-gradient(180deg, var(--bg), var(--card2) 42%, var(--bg));
  letter-spacing: .01em;
}
[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(201,154,53,.09), transparent 32rem),
    radial-gradient(circle at right 18rem, rgba(143,38,48,.14), transparent 28rem),
    linear-gradient(180deg, #130806, #1a0d09 46%, #120705);
}
body::before {
  background-image:
    radial-gradient(circle at 15px 15px, rgba(91,22,29,.055) 0 7px, transparent 8px),
    radial-gradient(circle at 45px 15px, rgba(168,115,40,.055) 0 7px, transparent 8px),
    radial-gradient(circle at 15px 45px, rgba(168,115,40,.045) 0 7px, transparent 8px),
    radial-gradient(circle at 45px 45px, rgba(91,22,29,.045) 0 7px, transparent 8px);
  background-size: 60px 60px;
  opacity: .56;
}
[data-theme="dark"] body::before { opacity: .18; }

.container, .nav-inner, .footer-inner { max-width: 940px; }
.container { padding: 0 18px; }
.page-wrap { padding-top: 26px; }

/* Header: identitas tunggal, bukan sekadar bar menu. */
.site-header {
  background:
    linear-gradient(90deg, rgba(201,154,53,.10), transparent 20%, transparent 80%, rgba(201,154,53,.10)),
    linear-gradient(135deg, #2a0a0d, #5b161d 55%, #2a0a0d);
  border-bottom: 1px solid rgba(234,209,152,.28);
  box-shadow: 0 10px 30px rgba(30, 8, 4, .24);
}
.nav-inner { height: 64px; gap: 14px; }
.site-logo {
  gap: 10px;
  letter-spacing: 0;
  min-width: 0;
  color: #f3d484;
}
.brand-seal {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-2b1007);
  background:
    radial-gradient(circle at 35% 24%, var(--card2), #c99a35 62%, #805717 100%);
  border: 1px solid rgba(255, 232, 162, .72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 8px 20px rgba(0,0,0,.32);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  flex: 0 0 auto;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-title {
  color: #ffe4a0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  white-space: nowrap;
}
.brand-subtitle {
  margin-top: 3px;
  color: rgba(255,255,255,.58);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-links { gap: 6px; }
.nav-links > li > a,
.nav-dropdown-btn {
  border-radius: 999px;
  padding: 9px 15px;
  height: 42px;
  font-weight: 650;
  color: rgba(255,255,255,.82);
}
.nav-links > li > a:hover,
.nav-dropdown-btn:hover {
  background: rgba(255, 232, 162, .11);
  color: #ffe4a0;
}
.nav-links > li > a.active,
.nav-dropdown-btn.active {
  background: linear-gradient(135deg, rgba(255,228,160,.24), rgba(255,228,160,.10));
  color: #ffe4a0;
  box-shadow: inset 0 0 0 1px rgba(255,228,160,.18);
}
.nav-dropdown-btn .arrow { font-size: .95rem; line-height: 1; }

.mega-panel {
  width: min(760px, calc(100vw - 28px));
  background:
    linear-gradient(160deg, rgba(255,255,255,.04), transparent 30%),
    linear-gradient(160deg, #35100f, #190706 88%);
  border: 1px solid rgba(234,209,152,.30);
  border-radius: 22px;
  box-shadow: 0 22px 60px rgba(0,0,0,.58), 0 0 0 1px rgba(255,255,255,.04);
}
.mega-header-label, .mega-col-title, .footer-col-title, .footer-divider-label, .gplay-divider-label {
  font-family: var(--font-body);
  letter-spacing: .18em;
}
.mega-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 18px 14px 18px; gap: 4px; }
.mega-col { padding: 0 12px; }
.mega-col a {
  border-radius: 11px;
  padding: 7px 8px;
  font-weight: 550;
}
.mega-col a:hover, .mega-col a.active {
  padding-left: 11px;
  background: rgba(234,209,152,.10);
}

/* Konten umum: kartu, form, tombol terasa satu keluarga. */
.card, .menu-card, .idx-about, .ph-main-card, .article-card, .topic-card, .doa-card, .item-card,
.fitur-card, .hasil-card, .info-card, .form-card {
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(var(--surface-rgb), 0.56), transparent 34%),
    linear-gradient(135deg, var(--card), var(--card2));
  border-color: rgba(139, 89, 43, .28);
  box-shadow: 0 12px 34px var(--shadow), 0 1px 0 rgba(255,255,255,.45) inset;
}
.card-header {
  background: linear-gradient(90deg, rgba(91,22,29,.08), transparent);
}
.card-header h3, .menu-card .title, .weton-name, .algo-detail .nama,
.idx-section-ttl, .idx-about-ttl {
  font-family: var(--font-display);
}
.form-group input[type="text"], .form-group input[type="date"],
input[type="text"], input[type="search"], input[type="date"], input[type="number"], input[type="email"], select, textarea {
  border-radius: 14px;
  border-color: rgba(139, 89, 43, .35);
  background: rgba(var(--surface-rgb), 0.82);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}
[data-theme="dark"] input[type="text"], [data-theme="dark"] input[type="search"], [data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="number"], [data-theme="dark"] input[type="email"], [data-theme="dark"] select, [data-theme="dark"] textarea {
  background: rgba(34, 16, 10, .86);
  color: var(--text);
}
.form-group input:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(201,154,53,.16);
}
.btn, button, .pager-btn, .filter-chip { font-family: inherit; }
.btn, .btn-primary, .lapor-btn-submit {
  border-radius: 999px;
  letter-spacing: .01em;
}
.btn-primary, .lapor-btn-submit {
  background: linear-gradient(135deg, #6b1d25, #401014);
  box-shadow: 0 12px 24px rgba(91, 22, 29, .24);
}
.btn-primary:hover, .lapor-btn-submit:hover { transform: translateY(-2px); }
.btn-secondary {
  color: var(--primary);
  border-color: var(--primary);
  border-radius: 999px;
}

/* Widget mengambang lebih kecil, tidak mengganggu baca. */
.combo-float-widget {
  background: linear-gradient(135deg, #35100f, #6b1d25);
  border-color: rgba(234,209,152,.42);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0,0,0,.26);
}
.combo-float-widget .combo-btn { padding: 9px 14px; }
.combo-float-widget > .combo-btn:first-child,
.combo-float-widget > div:first-child > .combo-btn { border-radius: 999px 0 0 999px; }
.combo-float-widget > .combo-btn:last-child,
.combo-float-widget > div:last-child > .combo-btn { border-radius: 0 999px 999px 0; }

/* Footer: seperti ruang arsip, bukan daftar link acak. */
.site-footer {
  background:
    radial-gradient(circle at 50% -4rem, rgba(201,154,53,.14), transparent 18rem),
    linear-gradient(180deg, #2a0a0d 0%, #130504 100%);
  border-top: 1px solid rgba(234,209,152,.20);
}
.footer-inner { padding-inline: 22px; }
.footer-grid {
  grid-template-columns: 1.05fr 1fr 1.2fr 1.1fr;
  gap: 18px;
}
.footer-col {
  padding: 0 18px;
  border-left-color: rgba(234,209,152,.14);
}
.footer-col a {
  border-bottom-color: rgba(255,255,255,.035);
  border-radius: 9px;
  padding: 6px 8px;
  margin-left: -8px;
}
.footer-col a:hover { padding-left: 12px; background: rgba(234,209,152,.08); }
.footer-legal-links {
  display:flex; justify-content:center; gap:14px; flex-wrap:wrap; margin:0 0 18px; font-size:.78rem;
}
.footer-legal-links a { color: rgba(255,255,255,.58); text-decoration: none; }
.footer-legal-links a:hover { color: #ffe4a0; }

@media (max-width: 760px) {
  .nav-inner { height: 60px; }
  .brand-seal { width: 38px; height: 38px; }
  .brand-title { font-size: 1.05rem; }
  .brand-subtitle { font-size: .55rem; letter-spacing: .12em; }
  .container { padding: 0 14px; }
}
@media (max-width: 680px) {
  .nav-links {
    background:
      radial-gradient(circle at 50% 0, rgba(234,209,152,.10), transparent 15rem),
      linear-gradient(180deg, #2a0a0d 0%, #160605 100%);
    border-left-color: rgba(234,209,152,.22);
  }
  .nav-links > li > a, .nav-dropdown-btn { border-radius: 0; }
  .nav-links > li > a.active, .nav-dropdown-btn.active {
    border-left-color: #e2bd64;
    background: rgba(234,209,152,.12);
  }
  .mega-col { padding-inline: 24px 18px; }
}
@media (max-width: 420px) {
  .brand-subtitle { display: none; }
  .combo-float-widget { right: 10px; bottom: 10px; }
  .combo-float-widget .combo-btn { padding: 8px 11px; font-size: .78rem; }
}


/* ============================================================
   V4 MOBILE FIX — menu HP anti-bocor + footer ringkas
   Bug V3.1: aturan desktop .mega-grid datang setelah aturan mobile,
   sehingga menu Jelajahi tetap 4 kolom dan mendorong layar ke kanan.
   ============================================================ */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
*, *::before, *::after { box-sizing: border-box; }
body.nav-open { overscroll-behavior: contain; touch-action: none; }

@media (max-width: 780px) {
  .site-header { position: sticky; top: 0; z-index: 1000; }
  .nav-inner { max-width: none; width: 100%; padding-inline: 14px; }
  .site-logo { max-width: calc(100vw - 92px); }
  .brand-copy { overflow: hidden; }
  .brand-title { overflow: hidden; text-overflow: ellipsis; }
  .nav-toggle { display: flex; z-index: 1002; }
  .nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(16, 5, 4, .56);
    backdrop-filter: blur(2px);
  }
  .nav-links {
    position: fixed !important;
    inset: 0 0 0 auto !important;
    width: min(88vw, 360px) !important;
    max-width: calc(100vw - 18px) !important;
    height: 100dvh !important;
    min-height: 100dvh;
    padding: 72px 0 22px !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(106%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    visibility: visible !important;
    pointer-events: none;
    z-index: 999;
    contain: layout paint;
    box-shadow: -18px 0 45px rgba(0,0,0,.45);
  }
  .nav-links.open {
    right: 0 !important;
    transform: translateX(0);
    pointer-events: auto;
  }
  .nav-links > li { width: 100%; min-width: 0; }
  .nav-links > li > a,
  .nav-dropdown-btn {
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    padding: 13px 18px;
    justify-content: space-between;
    white-space: normal;
    text-align: left;
  }
  .mega-panel {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border-inline: 0 !important;
    transform: none !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }
  .mega-panel.show { max-height: 2600px !important; }
  .mega-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
  .mega-col {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 12px 20px 12px 24px !important;
    border-left: 0 !important;
    border-top: 1px solid rgba(255,255,255,.055) !important;
  }
  .mega-col-title { margin: 0 0 6px; }
  .mega-col a {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    overflow-wrap: anywhere;
    white-space: normal;
  }
  .mega-col a:hover { padding-left: 12px !important; }
  .mega-header, .mega-footer { display: none !important; }
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 22px 0 !important;
  }
  .footer-col { padding: 0 12px !important; }
  .footer-col:nth-child(odd) { border-left: 0 !important; }
}

@media (max-width: 480px) {
  .nav-inner { padding-inline: 12px; }
  .brand-seal { width: 36px; height: 36px; font-size: 1.05rem; }
  .brand-title { font-size: 1.02rem; }
  .brand-subtitle { display: none; }
  .nav-links {
    width: min(92vw, 360px) !important;
    max-width: calc(100vw - 10px) !important;
  }
  .container { padding-inline: 12px; }
  .page-wrap { padding-top: 18px; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 18px !important; }
  .footer-col { border-left: 0 !important; padding: 0 !important; }
  .gplay-buttons { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 310px; margin-inline: auto; }
  .gplay-btn { width: 100%; justify-content: flex-start; padding: 8px 12px; }
  .footer-legal-links { gap: 10px 14px; line-height: 1.7; }
  .combo-float-widget {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: calc(100vw - 20px);
    justify-content: center;
  }
  .combo-float-widget .combo-btn {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
    padding: 8px 9px;
    font-size: .78rem;
  }
  .combo-float-widget .combo-divider { flex: 0 0 auto; }
}

@media (max-width: 360px) {
  .brand-title { font-size: .96rem; }
  .nav-links { width: calc(100vw - 6px) !important; }
  .combo-float-widget .combo-btn { font-size: .73rem; padding-inline: 7px; }
}


/* ============================================================
   PRIMBON.WEB.ID IDENTITY V5
   Hero semua halaman diselaraskan: satu rasa, beda judul.
   Algoritma/hasil diberi bingkai catatan budaya agar tidak terasa vonis.
   ============================================================ */
:root {
  --hero-ink: #fff5dd;
  --hero-muted: rgba(255,245,221,.74);
  --hero-border: rgba(234,209,152,.32);
}

/* Semua hero non-home punya bahasa visual yang sama. */
.hero:not(.idx-hero),
.d-hero,
.donasi-hero,
.dzikir-hero,
.faq-hero,
.larangan-hero,
.jd-hero,
.ckg-hero,
.kep-header.card,
.weton-header {
  position: relative;
  overflow: hidden;
  text-align: center !important;
  color: var(--hero-ink) !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(234,209,152,.20), transparent 13rem),
    radial-gradient(circle at 86% 6%, rgba(201,154,53,.16), transparent 12rem),
    linear-gradient(135deg, #2a0a0d 0%, #5b161d 54%, #260809 100%) !important;
  border: 1px solid var(--hero-border) !important;
  border-radius: 24px !important;
  box-shadow: 0 18px 44px rgba(42,10,13,.22), inset 0 1px 0 rgba(255,255,255,.08) !important;
  padding: clamp(24px, 5vw, 44px) clamp(16px, 4vw, 34px) !important;
  margin: 0 0 24px !important;
}
.hero:not(.idx-hero)::before,
.d-hero::before,
.donasi-hero::before,
.dzikir-hero::before,
.faq-hero::before,
.larangan-hero::before,
.jd-hero::before,
.ckg-hero::before,
.kep-header.card::before,
.weton-header::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .45;
  background-image:
    radial-gradient(circle at 15px 15px, rgba(234,209,152,.14) 0 7px, transparent 8px),
    radial-gradient(circle at 45px 15px, rgba(234,209,152,.09) 0 7px, transparent 8px),
    radial-gradient(circle at 15px 45px, rgba(234,209,152,.09) 0 7px, transparent 8px),
    radial-gradient(circle at 45px 45px, rgba(234,209,152,.12) 0 7px, transparent 8px);
  background-size: 60px 60px;
}
.hero:not(.idx-hero)::after,
.d-hero::after,
.donasi-hero::after,
.dzikir-hero::after,
.faq-hero::after,
.larangan-hero::after,
.jd-hero::after,
.ckg-hero::after,
.kep-header.card::after,
.weton-header::after {
  content: 'PRIMBON JAWA';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-top: 14px;
  padding: 6px 12px;
  border: 1px solid rgba(234,209,152,.30);
  border-radius: 999px;
  color: rgba(255,228,160,.82);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .22em;
}
.hero:not(.idx-hero) > *,
.d-hero > *,
.donasi-hero > *,
.dzikir-hero > *,
.faq-hero > *,
.larangan-hero > *,
.jd-hero > *,
.ckg-hero > *,
.kep-header.card > *,
.weton-header > * {
  position: relative;
  z-index: 1;
}
.hero:not(.idx-hero) h1,
.d-hero h1,
.donasi-hero h1,
.dzikir-hero h1,
.faq-hero h1,
.larangan-hero h1,
.jd-hero h1,
.ckg-hero h1,
.kep-header.card h1,
.weton-name {
  color: #ffe4a0 !important;
  font-family: var(--font-display) !important;
  font-size: clamp(1.55rem, 7vw, 2.7rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -.02em !important;
  margin-bottom: .55rem !important;
}
.hero:not(.idx-hero) p,
.d-hero p,
.donasi-hero p,
.dzikir-hero p,
.faq-hero p,
.larangan-hero p,
.jd-hero p,
.ckg-hero p,
.kep-header.card p,
.weton-sub {
  color: var(--hero-muted) !important;
  max-width: 680px;
  margin-inline: auto;
}

/* Halaman yang masih memakai SVG hero lama tetap diberi bingkai identitas sama. */
.hero--svg {
  position: relative;
  overflow: hidden;
  border-radius: 24px !important;
  border: 1px solid var(--hero-border) !important;
  background: linear-gradient(135deg, #2a0a0d, #5b161d 56%, #260809) !important;
  padding: 10px !important;
  box-shadow: 0 18px 44px rgba(42,10,13,.22), inset 0 1px 0 rgba(255,255,255,.08) !important;
  margin-bottom: 24px !important;
  line-height: 0 !important;
}
.hero--svg::after {
  content: 'PRIMBON JAWA';
  position: absolute;
  left: 18px;
  top: 16px;
  z-index: 2;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(42,10,13,.68);
  border: 1px solid rgba(234,209,152,.28);
  color: #ffe4a0;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1;
}
.hero--svg svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px !important;
  overflow: hidden;
}

.primbon-note {
  position: relative;
  margin: -4px 0 18px;
  padding: 13px 15px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(234,209,152,.20), rgba(91,22,29,.06));
  border: 1px solid rgba(139, 89, 43, .24);
  color: var(--text-sub);
  font-size: .88rem;
  line-height: 1.7;
  box-shadow: 0 8px 22px rgba(68,20,14,.07);
}
.primbon-note strong { color: var(--primary); }
[data-theme="dark"] .primbon-note {
  background: linear-gradient(135deg, rgba(234,209,152,.10), rgba(91,22,29,.13));
}

/* Hasil perhitungan dibuat lebih halus dan tidak terasa menghakimi. */
.weton-header .skor-circle {
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 10px 26px rgba(0,0,0,.18);
}
.weton-header .neptu-box {
  background: rgba(255,255,255,.075) !important;
  border-color: rgba(234,209,152,.28) !important;
  color: #fff5dd;
}
.weton-header .neptu-box .val,
.weton-header .neptu-box .lbl,
.weton-header .neptu-op { color: #fff5dd !important; }
.algo-badge {
  background: linear-gradient(135deg, #6b1d25, #a87328) !important;
  color: #fff8e8 !important;
}
.card-header h3.danger { color: var(--ink-8b5a2b); }

@media (max-width: 560px) {
  .hero:not(.idx-hero),
  .d-hero,
  .donasi-hero,
  .dzikir-hero,
  .faq-hero,
  .larangan-hero,
  .jd-hero,
  .ckg-hero,
  .kep-header.card,
  .weton-header {
    border-radius: 20px !important;
    padding: 24px 14px !important;
    margin-bottom: 18px !important;
  }
  .hero:not(.idx-hero)::after,
  .d-hero::after,
  .donasi-hero::after,
  .dzikir-hero::after,
  .faq-hero::after,
  .larangan-hero::after,
  .jd-hero::after,
  .ckg-hero::after,
  .kep-header.card::after,
  .weton-header::after {
    margin-top: 10px;
    font-size: .58rem;
    letter-spacing: .16em;
  }
  .hero--svg { border-radius: 20px !important; padding: 8px !important; }
  .hero--svg::after { left: 14px; top: 13px; font-size: .55rem; letter-spacing: .14em; }
  .neptu-row { gap: 8px; }
  .neptu-box { flex: 1 1 112px; padding: 9px 10px; }
  .neptu-box .val { font-size: 1.12rem; }
  .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .tab { flex: 0 0 auto; min-width: max-content; padding-inline: 12px; }
  .primbon-note { font-size: .82rem; border-radius: 14px; }
}

/* ═══════════════════════════════════════════════════════════════
   V6 — Premium Identity + Cultural Explanation Layer
   ═══════════════════════════════════════════════════════════════ */
.v6-page-hero .v6-hero-kicker,
.v6-hero-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  color: rgba(255,228,160,.88);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.v6-hero-kicker::before,
.v6-hero-kicker::after {
  content: '';
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,228,160,.62));
}
.v6-hero-kicker::after { background: linear-gradient(90deg, rgba(255,228,160,.62), transparent); }
.v6-hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.v6-hero-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(234,209,152,.28);
  background: rgba(255,255,255,.055);
  color: rgba(255,245,221,.88);
  font-size: .78rem;
  font-weight: 700;
}
.v6-knowledge-grid,
.primbon-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 22px;
}
.v6-knowledge-card,
.primbon-method-card,
.v6-method-step {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(139, 89, 43, .18);
  background:
    radial-gradient(circle at 18% 0%, rgba(212,175,55,.15), transparent 11rem),
    linear-gradient(180deg, var(--card), var(--card2));
  padding: 18px;
  box-shadow: 0 12px 30px rgba(68,20,14,.06);
}
.v6-knowledge-card::before,
.v6-method-step::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image:
    radial-gradient(circle at 12px 12px, rgba(139, 89, 43, .13) 0 5px, transparent 6px),
    radial-gradient(circle at 36px 12px, rgba(139, 89, 43, .07) 0 5px, transparent 6px);
  background-size: 48px 48px;
}
.v6-knowledge-card > *,
.v6-method-step > * { position: relative; z-index: 1; }
.v6-card-num,
.v6-step-badge {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 12px;
  border: 1px solid rgba(139, 89, 43, .24);
  background: linear-gradient(135deg, rgba(91,16,16,.95), rgba(168,115,40,.86));
  color: #fff6df;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .04em;
}
.v6-knowledge-card h2,
.v6-method-step h2 {
  margin: 0 0 8px;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.v6-knowledge-card p,
.v6-method-step p,
.primbon-method-card .pmc-text,
.primbon-method-foot {
  color: var(--text-sub);
  font-size: .91rem;
  line-height: 1.7;
}
.primbon-method-layer { border-color: rgba(168,115,40,.22); }
.primbon-method-card {
  border-radius: 16px;
  padding: 14px 15px;
}
.primbon-method-card .pmc-title {
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 5px;
}
.primbon-method-foot {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px dashed rgba(139, 89, 43, .24);
}
.primbon-note-v6 {
  padding-left: 46px;
}
.primbon-note-v6::before {
  content: 'ꦥ';
  position: absolute;
  left: 14px;
  top: 14px;
  width: 23px;
  height: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #5C1010, #A87328);
  color: #fff4d4;
  font-size: .9rem;
}
.v6-method-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 18px 0 22px;
}
.v6-code-note {
  margin-top: 10px !important;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(139, 89, 43, .26);
  background: rgba(139, 89, 43, .06);
  font-size: .84rem !important;
}
.v6-code-note code {
  padding: 2px 5px;
  border-radius: 6px;
  background: rgba(91,16,16,.08);
  color: var(--primary);
}
.v6-reading-guide .card-body p,
.v6-reading-guide .card-body li {
  color: var(--text-sub);
  line-height: 1.75;
}
.v6-step-list {
  margin: 0;
  padding-left: 22px;
}
.v6-step-list li { margin: 8px 0; }
.v6-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 22px 0 6px;
}
.v6-cta-row > .btn, .cta-section > .btn { width: auto; flex: 0 1 auto; }
.idx-knowledge-grid { margin-top: 0; }

@media (max-width: 680px) {
  .v6-knowledge-grid,
  .primbon-method-grid { grid-template-columns: 1fr; }
  .v6-knowledge-card,
  .primbon-method-card,
  .v6-method-step { padding: 16px; border-radius: 18px; }
  .v6-hero-chips span { font-size: .74rem; min-height: 28px; padding: 5px 10px; }
  .primbon-note-v6 { padding-left: 42px; }
  .v6-cta-row .btn, .cta-section > .btn { width: 100%; justify-content: center; }
}


/* ═══════════════════════════════════════════════════════════════
   V8 — Legal Trust + Commercial Identity Layer
   ═══════════════════════════════════════════════════════════════ */
.footer-bottom .brand-sub {
  color: rgba(255,255,255,0.52);
  font-size: .78rem;
  margin-top: 2px;
}
.v8-company-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(234,209,152,.22);
  background:
    radial-gradient(circle at 14% 8%, rgba(234,209,152,.25), transparent 15rem),
    radial-gradient(circle at 88% 0%, rgba(196,135,42,.18), transparent 12rem),
    linear-gradient(135deg, #3d070b, #74141a 58%, #341006);
  color: #fff8e8;
  box-shadow: 0 18px 42px rgba(68,20,14,.18);
}
.v8-company-hero h1 { color:#fff3c4 !important; }
.v8-company-hero p { color:rgba(255,245,221,.82) !important; }
.v8-company-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 22px;
}
.v8-company-card {
  border-radius: 20px;
  border: 1px solid rgba(139, 89, 43, .18);
  background:
    radial-gradient(circle at 0% 0%, rgba(212,175,55,.13), transparent 10rem),
    linear-gradient(180deg, var(--card), var(--card2));
  padding: 18px;
  box-shadow: 0 12px 30px rgba(68,20,14,.06);
}
.v8-company-card-main { grid-column: span 3; }
.v8-card-kicker {
  display:inline-flex;
  margin-bottom: 8px;
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.17em;
  text-transform:uppercase;
  color: var(--secondary);
}
.v8-company-card h2 { color: var(--primary); margin-bottom: 8px; font-size: 1.18rem; }
.v8-company-card p { color: var(--text-sub); line-height: 1.85; margin: 0 0 8px; }
.v8-step-list { padding-left: 20px; line-height: 1.85; color: var(--text-sub); }
.v8-step-list li { margin-bottom: 10px; }
.v8-step-list strong { color: var(--primary); }
@media (max-width: 760px) {
  .v8-company-grid { grid-template-columns: 1fr; }
  .v8-company-card-main { grid-column: auto; }
}

/* ============================================================
   V11 GLOBAL COMMERCIAL REDESIGN OVERRIDES
   ============================================================ */

html{scroll-behavior:smooth;overflow-x:hidden;}
body{letter-spacing:.01em;}
body.nav-open{overflow:hidden!important;}
.container,.nav-inner,.footer-inner{max-width:1180px!important;width:min(1180px,calc(100% - 32px));}
.page-wrap{padding-top:0!important;}
.page-wrap>.container{padding-top:22px;}
body:has(.v11-home) .page-wrap>.container{padding-top:0;}

.site-header{background:rgba(82,13,13,.96)!important;backdrop-filter:blur(16px);border-bottom:1px solid rgba(215,173,79,.28);box-shadow:0 12px 34px rgba(55,11,8,.22)!important;padding:0!important;}
.nav-inner{height:72px!important;display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 auto;}
.site-logo{display:flex!important;align-items:center;gap:12px;color:#ffe6a5!important;min-width:0;}
.brand-seal{width:42px!important;height:42px!important;border-radius:50%;display:grid!important;place-items:center;background:radial-gradient(circle,var(--card2),#a76d20 62%,#4a0b0b);color:var(--ink-421009)!important;box-shadow:0 0 0 1px rgba(255,232,169,.34),0 10px 24px rgba(0,0,0,.22);font-size:22px!important;flex:0 0 auto;}
.brand-copy{display:flex;flex-direction:column;line-height:1.06;min-width:0}.brand-title{font-family:Georgia,serif;font-size:18px;font-weight:900;letter-spacing:.2px;white-space:nowrap}.brand-subtitle{font-size:10px;color:rgba(255,232,169,.72);letter-spacing:1.4px;text-transform:uppercase;white-space:nowrap}
.nav-links{display:flex;align-items:center;gap:4px;list-style:none;margin:0;padding:0;}
.nav-links>li>a,.nav-dropdown-btn{min-height:40px;padding:10px 14px;border-radius:999px;color:rgba(255,246,224,.86)!important;font-size:12px!important;font-weight:800;text-transform:none;letter-spacing:.2px;background:transparent;border:1px solid transparent;}
.nav-links>li>a:hover,.nav-dropdown-btn:hover,.nav-links>li>a.active,.nav-dropdown-btn.active{background:rgba(215,173,79,.12)!important;border-color:rgba(215,173,79,.24)!important;color:#ffe6a5!important;}
.nav-dropdown-btn{cursor:pointer;}
.mega-panel{right:0!important;left:auto!important;top:calc(100% + 12px)!important;width:min(920px,calc(100vw - 32px))!important;border-radius:24px!important;background:linear-gradient(180deg,rgba(64,10,10,.98),rgba(35,6,5,.98))!important;border:1px solid rgba(215,173,79,.28)!important;box-shadow:0 28px 80px rgba(0,0,0,.36)!important;padding:22px!important;}
.mega-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important}.mega-col-title{color:#f2d486!important;font-family:Georgia,serif!important;font-size:15px!important}.mega-col a{color:rgba(255,246,224,.74)!important;border-radius:10px!important;padding:7px 8px!important;font-size:12px!important}.mega-col a:hover,.mega-col a.active{background:rgba(215,173,79,.10)!important;color:#ffe7ad!important}
.nav-toggle{display:none;border:0;background:rgba(215,173,79,.12);border:1px solid rgba(215,173,79,.28);border-radius:14px;width:46px;height:42px;align-items:center;justify-content:center;flex-direction:column;gap:5px;}.nav-toggle span{display:block;width:20px;height:2px;background:var(--card2);border-radius:99px;transition:.2s;}.nav-toggle.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}.nav-toggle.open span:nth-child(2){opacity:0}.nav-toggle.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.nav-overlay{position:fixed;inset:0;background:rgba(28,6,5,.56);z-index:98;opacity:0;visibility:hidden;transition:.2s}.nav-overlay.show{opacity:1;visibility:visible}

.hero:not(.idx-hero),.hero.v6-page-hero,.hero.v8-company-hero{border-radius:30px!important;margin:0 0 26px!important;padding:52px 34px!important;color:#fff!important;background:radial-gradient(circle at 15% 15%,rgba(215,173,79,.23),transparent 28%),linear-gradient(135deg,#4b0b0b,#7b1717 55%,#2d0705)!important;box-shadow:0 24px 70px rgba(74,22,12,.16)!important;border:1px solid rgba(215,173,79,.35)!important;overflow:hidden!important;position:relative!important;}
.hero:not(.idx-hero)::before{content:''!important;position:absolute!important;inset:0!important;background-image:radial-gradient(circle at 18px 18px,rgba(215,173,79,.15) 2px,transparent 3px)!important;background-size:34px 34px!important;opacity:.62!important;pointer-events:none!important;}.hero:not(.idx-hero)>*{position:relative!important;z-index:1!important}.hero:not(.idx-hero) h1{font-family:Georgia,serif!important;font-size:clamp(34px,5vw,62px)!important;line-height:1.02!important;color:#fff2c6!important;text-shadow:0 8px 24px rgba(0,0,0,.25)!important}.hero:not(.idx-hero) p{color:rgba(255,246,224,.82)!important;max-width:760px!important;margin-inline:auto!important;font-size:16px!important}.v6-hero-kicker{color:#f3d889!important}.v6-hero-chips span{background:rgba(255,255,255,.08)!important;border:1px solid rgba(215,173,79,.32)!important;color:#ffe9b2!important;border-radius:999px!important}
.card{border-radius:22px!important;border-color:rgba(174,120,46,.26)!important;box-shadow:0 16px 42px rgba(74,22,12,.08)!important;background:linear-gradient(180deg,var(--card),var(--card2))!important}.card-header{background:rgba(var(--surface-rgb), 0.72)!important}.btn{border-radius:999px!important}.btn-primary,.btn.btn-primary{background:linear-gradient(135deg,#6d1515,#9c5a25)!important;box-shadow:0 12px 26px rgba(109,21,21,.20)!important}.btn-secondary{border-color:rgba(109,21,21,.35)!important;color:var(--ink-6d1515)!important;background:rgba(var(--surface-rgb), 0.7)!important}.btn-secondary:hover{background:#6d1515!important;color:#fff!important}

.site-footer{margin-top:46px!important;padding:48px 0 28px!important;background:radial-gradient(circle at 50% 0,rgba(215,173,79,.16),transparent 32%),linear-gradient(180deg,#3a0706,#210403)!important;color:rgba(255,245,218,.72)!important;border-top:1px solid rgba(215,173,79,.25)!important;text-align:left!important;}.footer-inner{margin:0 auto!important}.footer-top-ornament,.footer-divider,.footer-grid{display:none!important}.footer-inner::before{content:'Primbon Jawa';display:block;text-align:center;color:#ffe2a1;font-family:Georgia,serif;font-size:28px;font-weight:900;margin-bottom:8px}.footer-inner::after{content:'Pusat budaya digital, weton, kalender, dan tradisi Nusantara.';display:block;text-align:center;color:rgba(255,245,218,.58);font-size:13px;margin-bottom:26px}.gplay-section{margin:22px 0!important}.gplay-divider{max-width:560px;margin:0 auto 14px}.gplay-buttons{justify-content:center!important;gap:10px!important}.gplay-btn{border-radius:16px!important;background:rgba(255,255,255,.06)!important;border:1px solid rgba(215,173,79,.25)!important}.footer-legal-links{display:flex!important;justify-content:center!important;gap:8px!important;flex-wrap:wrap!important;margin:24px 0 18px!important}.footer-legal-links a{color:#ffe4a6!important;background:rgba(255,255,255,.055);border:1px solid rgba(215,173,79,.18);border-radius:999px;padding:8px 13px;font-size:12px;text-decoration:none}.footer-bottom{text-align:center!important;border-top:1px solid rgba(215,173,79,.16);padding-top:18px}.footer-bottom .brand{color:#fff1c7!important;font-weight:900}.footer-bottom .brand-sub{color:#ffd98a!important}.footer-bottom p{margin:4px 0!important;color:rgba(255,245,218,.58)!important}
.combo-float-widget{right:18px!important;bottom:18px!important;border-radius:999px!important;background:rgba(84,13,13,.92)!important;box-shadow:0 14px 36px rgba(0,0,0,.28)!important;border:1px solid rgba(215,173,79,.28)!important;backdrop-filter:blur(12px)}

@media(max-width:900px){
  .nav-inner{height:64px!important;width:100%!important;padding:0 14px}.nav-toggle{display:flex!important}.nav-links{position:fixed!important;top:0!important;right:min(-100vw,-380px)!important;bottom:0!important;width:min(380px,92vw)!important;max-width:92vw!important;height:100dvh!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;padding:82px 12px 20px!important;background:linear-gradient(180deg,#3c0807,#190403)!important;z-index:101!important;visibility:hidden!important;transition:right .25s ease,visibility .25s!important;overflow-y:auto!important;overflow-x:hidden!important;box-shadow:-24px 0 60px rgba(0,0,0,.34)!important}.nav-links.open{right:0!important;visibility:visible!important}.nav-links>li{width:100%!important}.nav-links>li>a,.nav-dropdown-btn{width:100%!important;justify-content:flex-start!important;border-radius:14px!important;padding:13px 14px!important;min-height:46px!important}.mega-panel{position:static!important;width:100%!important;max-width:100%!important;display:none!important;opacity:1!important;visibility:visible!important;transform:none!important;margin:8px 0 10px!important;padding:12px!important;border-radius:18px!important;box-shadow:none!important}.mega-panel.show{display:block!important}.mega-grid{grid-template-columns:1fr!important;gap:10px!important}.mega-col{min-width:0!important}.mega-col a{font-size:13px!important;padding:9px 10px!important}.mega-header,.mega-footer{display:none!important}.brand-title{font-size:16px}.brand-subtitle{font-size:9px}.brand-seal{width:38px!important;height:38px!important}.site-header .nav-inner{max-width:none!important}.hero:not(.idx-hero){border-radius:0 0 26px 26px!important;margin-left:-14px!important;margin-right:-14px!important;padding:42px 18px!important}.container,.footer-inner{width:calc(100% - 28px)!important}.page-wrap>.container{padding-top:14px}.gplay-buttons{display:grid!important;grid-template-columns:1fr!important;max-width:360px;margin:0 auto}.footer-legal-links a{font-size:11px}.combo-float-widget{right:12px!important;bottom:12px!important}.combo-btn span:nth-child(2){display:none!important}}
@media(max-width:420px){.nav-links{width:calc(100vw - 8px)!important;max-width:calc(100vw - 8px)!important}.brand-copy{max-width:210px}.footer-inner::before{font-size:24px}.hero:not(.idx-hero) h1{font-size:34px!important}}
.v11-footer-inner{display:grid;gap:22px;}
.v11-footer-brand{display:flex;align-items:center;justify-content:center;gap:14px;text-align:left;margin:0 auto 4px;max-width:760px}.v11-footer-seal{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle,var(--card2),#a76d20 62%,#4a0b0b);color:var(--ink-421009)!important;font-size:27px;text-decoration:none;box-shadow:0 0 0 1px rgba(255,232,169,.35)}.v11-footer-brand strong{display:block;color:#fff2c6;font-family:Georgia,serif;font-size:28px;line-height:1}.v11-footer-brand p{margin:5px 0 0;color:rgba(255,245,218,.62);font-size:13px;line-height:1.45}.v11-footer-nav{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:4px auto 10px;max-width:920px}.v11-footer-nav a{color:rgba(255,245,218,.78);text-decoration:none;font-size:12px;font-weight:800;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.045);border:1px solid rgba(215,173,79,.14)}.v11-footer-nav a:hover{color:#ffe2a1;background:rgba(215,173,79,.10);border-color:rgba(215,173,79,.28)}
.site-footer .footer-inner::before,.site-footer .footer-inner::after{display:none!important;content:none!important;}
@media(max-width:640px){.v11-footer-brand{align-items:flex-start}.v11-footer-brand strong{font-size:24px}.v11-footer-seal{width:46px;height:46px}.v11-footer-nav{justify-content:flex-start}.site-footer{text-align:left!important}}

/* ===== V15 guide/policy pages ===== */
.v15-guide-hero,.v15-policy-hero{position:relative;overflow:hidden;border:1px solid rgba(212,175,55,.26);box-shadow:0 24px 70px rgba(50,8,8,.12)}
.v15-guide-hero:after,.v15-policy-hero:after{content:"";position:absolute;right:-70px;top:-70px;width:220px;height:220px;border:1px solid rgba(212,175,55,.18);border-radius:50%;box-shadow:inset 0 0 0 30px rgba(212,175,55,.04);pointer-events:none}.v15-guide-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:22px;align-items:start;margin:24px 0}.v15-guide-toc{position:sticky;top:88px;border:1px solid rgba(154,87,25,.18);border-radius:20px;background:rgba(var(--surface-rgb), 0.88);padding:18px;box-shadow:0 14px 34px rgba(72,37,12,.07)}.v15-guide-toc strong{display:block;font-family:Georgia,serif;margin-bottom:10px}.v15-guide-toc ol{margin:0;padding-left:1.1rem}.v15-guide-toc li{margin:.5rem 0}.v15-guide-toc a{text-decoration:none;color:var(--text-main,var(--ink-2b180e))}.v15-guide-card{margin-bottom:16px}.v15-guide-card h2{margin:0;font-size:1.18rem}.v15-guide-card p{line-height:1.78}.v15-reader-note{margin:20px 0;padding:18px 20px;border-radius:18px;background:linear-gradient(135deg,rgba(92,16,16,.95),rgba(123,28,28,.88));color:#fff7e8;box-shadow:0 18px 42px rgba(92,16,16,.18)}.v15-reader-note strong{display:block;margin-bottom:6px;color:#f4d16b}.v15-policy-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:24px 0}.v15-policy-grid .card{height:100%}.v15-policy-grid h2{font-size:1.1rem;margin:0}.v15-check-list{line-height:1.8;margin:0;padding-left:1.2rem}@media(max-width:860px){.v15-guide-layout{grid-template-columns:1fr}.v15-guide-toc{position:relative;top:auto}.v15-policy-grid{grid-template-columns:1fr}.v15-guide-hero:after,.v15-policy-hero:after{opacity:.45}}
