/* Tur panduan (Shepherd) - warna mengikuti tema aplikasi */
.shepherd-element.dk-tur { max-width: min(360px, 92vw); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 99999; }
.shepherd-modal-overlay-container { z-index: 99998; }
.shepherd-element.dk-tur .shepherd-header { padding: .85rem 1rem .35rem; background: transparent; }
.shepherd-element.dk-tur .shepherd-title { font-weight: 700; font-size: 1rem; display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; flex: 1; }
.shepherd-element.dk-tur .dk-tur-hitung { font-size: .72rem; font-weight: 600; color: #8a8d93; white-space: nowrap; }
.shepherd-element.dk-tur .shepherd-text { padding: .25rem 1rem .75rem; font-size: .9rem; line-height: 1.5; }
.shepherd-element.dk-tur .dk-tur-list { padding-left: 1.1rem; margin: 0; }
.shepherd-element.dk-tur .dk-tur-list li { margin-bottom: .3rem; }
.shepherd-element.dk-tur .shepherd-footer { padding: 0 1rem 1rem; gap: .4rem; justify-content: flex-end; flex-wrap: wrap; }
.shepherd-element.dk-tur .shepherd-cancel-icon { font-size: 1.6rem; }
.dark-style .shepherd-element.dk-tur { background: #2f3349; color: #cfd3ec; }
.dark-style .shepherd-element.dk-tur .shepherd-title, .dark-style .shepherd-element.dk-tur .shepherd-text { color: #cfd3ec; }

/* ============================================================
   Pusat Panduan (/panduan): kelas .pnd-*, dipakai di tampilan admin dan portal.
   Mobile first: satu kolom, target sentuh >= 44px, filter topik geser ke samping.
   ============================================================ */
.pnd { width: 100%; min-width: 0; overflow-x: clip; --pnd-primary: #18397B; --pnd-ink: #2F2B3D; --pnd-muted: #6F6B7D; --pnd-line: #E4E3E9; --pnd-soft: #F6F7FA; --pnd-page-bg: #F8F7FA; max-width: none; margin: 0; }
.pnd * { box-sizing: border-box; }

/* warna kelompok */
.pnd-c-biru   { --c: #18397B; --cs: rgba(24,57,123,.12); }
.pnd-c-hijau  { --c: #267C1D; --cs: rgba(38,124,29,.12); }
.pnd-c-oranye { --c: #C26A12; --cs: rgba(203,128,55,.16); }
.pnd-c-ungu   { --c: #6246B5; --cs: rgba(98,70,181,.13); }
.pnd-c-tosca  { --c: #14808A; --cs: rgba(20,128,138,.13); }
.pnd-c-merah  { --c: #C42B3D; --cs: rgba(211,58,75,.12); }
.pnd-c-abu    { --c: #5D596C; --cs: rgba(111,107,125,.14); }

/* hero */
.pnd-hero { position: relative; overflow: hidden; border-radius: 18px; padding: 1.4rem 1.25rem 1.15rem; color: #fff;
  background: linear-gradient(135deg, #18397B 0%, #2A57B8 60%, #3D5FA8 100%); box-shadow: 0 8px 24px rgba(24,57,123,.28); margin-bottom: 1rem; }
.pnd-hero::before, .pnd-hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
.pnd-hero::before { width: 190px; height: 190px; right: -50px; top: -70px; }
.pnd-hero::after  { width: 120px; height: 120px; right: 70px; bottom: -60px; }
.pnd-hero-ico { position: relative; width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: .75rem; }
.pnd-hero-teks { position: relative; }
.pnd-hero-label { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .85; margin-bottom: .25rem; }
.pnd-hero h1 { color: #fff; font-size: 1.3rem; line-height: 1.3; font-weight: 700; margin: 0 0 .35rem; }
.pnd-hero p { margin: 0 0 1rem; opacity: .88; font-size: .9rem; line-height: 1.45; }
.pnd-cari { position: relative; display: flex; align-items: center; background: #fff; border-radius: 14px; padding: 0 .5rem 0 .9rem; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.pnd-cari > .ti-search { color: var(--pnd-primary); font-size: 1.25rem; }
.pnd-cari input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: .95rem .6rem; font-size: 1rem; color: #2F2B3D; }
.pnd-cari input::placeholder { color: #8d8a99; }
.pnd-cari input::-webkit-search-cancel-button { display: none; }
.pnd-cari-x { border: 0; background: #EEF0F6; color: #5D596C; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.pnd-hero-pil { position: relative; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; font-size: .8rem; }
.pnd-hero-pil > * { display: inline-flex; align-items: center; gap: .35rem; background: rgba(255,255,255,.16); color: #fff; padding: .4rem .75rem; border-radius: 999px; text-decoration: none; }
.pnd-hero-pil a.pnd-pil-aksi, .pnd-hero-pil a.pnd-pil-aksi:hover { color: #fff !important; font-weight: 600; background: rgba(255,255,255,.24); }
.pnd-hero-pil a.pnd-pil-aksi:hover { background: rgba(255,255,255,.34); }

/* filter topik */
.pnd-chip-bar { position: sticky; top: 0; z-index: 20; margin: 0 -.25rem .75rem; padding: .5rem .25rem; background: linear-gradient(var(--pnd-page-bg) 82%, rgba(248,247,250,0)); }
.pnd-chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding: 2px; -webkit-overflow-scrolling: touch; }
.pnd-chips::-webkit-scrollbar { display: none; }
.pnd-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--pnd-line); background: #fff; color: #4a4659; padding: .55rem .95rem; border-radius: 999px; font-size: .85rem; font-weight: 600; cursor: pointer; min-height: 40px; white-space: nowrap; transition: .15s; }
.pnd-chip:hover { border-color: var(--pnd-primary); color: var(--pnd-primary); }
.pnd-chip.is-aktif { background: var(--pnd-primary); border-color: var(--pnd-primary); color: #fff; box-shadow: 0 3px 10px rgba(24,57,123,.3); }
.pnd-hasil { margin: 0 0 .6rem; font-size: .85rem; color: var(--pnd-muted); }
.pnd-hasil:empty { display: none; }

/* kosong */
.pnd-kosong { text-align: center; padding: 2.5rem 1rem; background: #fff; border-radius: 16px; border: 1px dashed var(--pnd-line); margin-bottom: 1rem; }
.pnd-kosong > i { font-size: 3rem; color: #9aa3b8; }
.pnd-kosong h3 { font-size: 1.1rem; margin: .5rem 0 .25rem; }
.pnd-kosong p { color: var(--pnd-muted); margin: 0; }

/* kelompok */
.pnd-grup { margin-bottom: 1.5rem; scroll-margin-top: 70px; }
.pnd-grup-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .7rem; }
.pnd-ico { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px; background: var(--cs); color: var(--c); display: grid; place-items: center; font-size: 1.4rem; }
.pnd-ico-kecil { width: 40px; height: 40px; border-radius: 12px; font-size: 1.2rem; }
.pnd-grup-judul { flex: 1; min-width: 0; }
.pnd-grup-judul h2 { font-size: 1.05rem; font-weight: 700; margin: 0; color: var(--pnd-ink); }
.pnd-grup-judul p { margin: 0; font-size: .8rem; color: var(--pnd-muted); }
.pnd-hitung { background: var(--cs); color: var(--c); font-weight: 700; font-size: .8rem; min-width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; padding: 0 .5rem; }

/* kartu panduan */
.pnd-list { display: grid; gap: .6rem; }
.pnd-item { background: #fff; border: 1px solid var(--pnd-line); border-radius: 14px; overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.pnd-item:hover { border-color: var(--c); box-shadow: 0 4px 14px rgba(47,43,61,.08); }
.pnd-item[open] { border-color: var(--c); box-shadow: 0 6px 18px rgba(47,43,61,.1); }
.pnd-item > summary { list-style: none; display: flex; align-items: center; gap: .8rem; padding: .85rem .9rem; cursor: pointer; min-height: 64px; -webkit-tap-highlight-color: transparent; }
.pnd-item > summary::-webkit-details-marker { display: none; }
.pnd-item-teks { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.pnd-item-teks strong { font-size: .95rem; line-height: 1.3; color: var(--pnd-ink); }
.pnd-item-teks small { font-size: .8rem; color: var(--pnd-muted); line-height: 1.35; }
.pnd-panah { color: var(--pnd-muted); font-size: 1.2rem; transition: transform .2s; flex: 0 0 auto; }
.pnd-item[open] .pnd-panah { transform: rotate(180deg); color: var(--c); }
.pnd-isi { padding: .15rem .95rem 1rem; border-top: 1px solid var(--pnd-line); background: var(--pnd-soft); }

/* langkah bernomor */
.pnd-langkah { list-style: none; counter-reset: pnd; margin: .9rem 0 .8rem; padding: 0; display: grid; gap: .7rem; }
.pnd-langkah li { counter-increment: pnd; position: relative; padding-left: 2.4rem; font-size: .9rem; line-height: 1.5; color: #3b3749; }
.pnd-langkah li::before { content: counter(pnd); position: absolute; left: 0; top: -1px; width: 1.65rem; height: 1.65rem; border-radius: 50%; background: var(--c); color: #fff; font-size: .78rem; font-weight: 700; display: grid; place-items: center; }
.pnd-langkah li:not(:last-child)::after { content: ""; position: absolute; left: .8rem; top: 1.75rem; bottom: -.65rem; width: 2px; background: var(--cs); }

.pnd-catatan { display: flex; gap: .6rem; background: #FFF6E5; border: 1px solid #F3D9A4; color: #6b4a0f; border-radius: 12px; padding: .7rem .8rem; font-size: .85rem; line-height: 1.45; margin-bottom: .8rem; }
.pnd-catatan > i { font-size: 1.2rem; color: #CB8037; flex: 0 0 auto; margin-top: 1px; }

.pnd-aksi { display: flex; flex-wrap: wrap; gap: .5rem; }
.pnd-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .65rem 1rem; border-radius: 10px; font-size: .88rem; font-weight: 600; text-decoration: none; min-height: 44px; border: 1px solid transparent; }
.pnd-btn-utama { background: var(--pnd-primary); color: #fff; }
.pnd-btn-utama:hover { background: #122C61; color: #fff; }
.pnd-btn-garis { background: #fff; border-color: var(--pnd-primary); color: var(--pnd-primary); }
.pnd-btn-garis:hover { background: rgba(24,57,123,.07); color: var(--pnd-primary); }
.pnd-kaki { text-align: center; color: var(--pnd-muted); font-size: .85rem; margin: .5rem 0 1rem; }

/* HP */
@media (max-width: 575.98px) {
  .pnd-hero { border-radius: 16px; padding: 1.15rem 1rem 1rem; }
  .pnd-hero h1 { font-size: 1.15rem; }
  .pnd-aksi .pnd-btn { flex: 1 1 100%; }
}
/* tablet dan desktop: dua kolom kartu */
@media (min-width: 768px) {
  .pnd-hero { padding: 1.8rem 2rem 1.4rem; }
  .pnd-hero h1 { font-size: 1.6rem; }
  .pnd-list { grid-template-columns: 1fr 1fr; align-items: start; }
  .pnd-chip-bar { top: 64px; }
}
/* layar lebar: tiga kolom supaya ruang terpakai penuh */
@media (min-width: 1400px) {
  .pnd-list { grid-template-columns: repeat(3, 1fr); }
}

/* Tombol bantuan di navbar / header HP: berlabel "Panduan" + berdenyut sampai pernah ditekan */
.pnd-help { border-radius: 999px; padding: .35rem .75rem !important; background: rgba(24,57,123,.1); font-weight: 600; font-size: .85rem; white-space: nowrap; }
.pnd-help, .pnd-help:hover, .pnd-help i, .pnd-help span { color: #18397B !important; }
.pnd-help:hover { background: rgba(24,57,123,.18); }
.dark-style .pnd-help { background: rgba(255,255,255,.12); }
.dark-style .pnd-help, .dark-style .pnd-help i, .dark-style .pnd-help span { color: #dfe3f5 !important; }
/* di header HP portal (latar biru): pil putih */
.dk-mobile-top .pnd-help-hp { width: auto !important; height: 36px !important; padding: 0 .7rem !important; display: inline-flex !important; align-items: center; gap: .3rem; background: #fff !important; border-radius: 999px; font-size: .8rem; font-weight: 700; }
/* Nama panjang dipotong "..." supaya tombol Panduan & lonceng tidak terdorong keluar layar HP. */
.dk-mobile-top > .min-w-0 { min-width: 0; }
.dk-mobile-top > .dk-icon-btn, .dk-mobile-top > .dropdown { flex-shrink: 0; }
.dk-mobile-top .pnd-help-hp i { font-size: 1.15rem; }
.dk-mobile-top .pnd-help-hp, .dk-mobile-top .pnd-help-hp i, .dk-mobile-top .pnd-help-hp span { color: #18397B !important; }
@keyframes pnd-denyut { 0% { box-shadow: 0 0 0 0 rgba(24,57,123,.55); } 70% { box-shadow: 0 0 0 11px rgba(24,57,123,0); } 100% { box-shadow: 0 0 0 0 rgba(24,57,123,0); } }
.pnd-pulse { animation: pnd-denyut 1.8s infinite; }
.dk-mobile-top .pnd-pulse { animation-name: pnd-denyut-putih; }
@keyframes pnd-denyut-putih { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.75); } 70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
/* gelembung petunjuk (muncul beberapa kali pertama) */
.pnd-hint { position: fixed; z-index: 1060; max-width: 230px; background: #18397B; color: #fff; padding: .65rem .85rem; border-radius: 12px; font-size: .85rem; line-height: 1.4; box-shadow: 0 8px 22px rgba(24,57,123,.4); cursor: pointer; animation: pnd-muncul .35s ease; }
.pnd-hint::before { content: ""; position: absolute; top: -7px; right: var(--panah, 24px); border: 7px solid transparent; border-top: 0; border-bottom-color: #18397B; }
.pnd-hint b { display: block; margin-bottom: .1rem; }
@keyframes pnd-muncul { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* tombol Panduan melayang di halaman tamu (login, pendaftaran, sandi) */
a.pnd-fab, a.pnd-fab:hover, a.pnd-fab:visited { color: #fff !important; }
.pnd-fab { position: fixed; right: 16px; bottom: 16px; z-index: 1040; display: inline-flex; align-items: center; gap: .4rem; background: #18397B; color: #fff !important; padding: .65rem 1rem; border-radius: 999px; font-weight: 600; font-size: .88rem; text-decoration: none; box-shadow: 0 6px 18px rgba(24,57,123,.4); }
.pnd-fab i { font-size: 1.25rem; }
.pnd-fab:hover { background: #122C61; }
@media (max-width: 575.98px) { .pnd-fab span { display: none; } .pnd-fab { padding: .75rem; } }

/* tema gelap */
.dark-style .pnd { --pnd-ink: #e1def5; --pnd-muted: #a9a6c0; --pnd-line: #44485e; --pnd-soft: #2b2f44; --pnd-page-bg: #25293c; }
.dark-style .pnd-item, .dark-style .pnd-chip, .dark-style .pnd-kosong, .dark-style .pnd-btn-garis { background: #2f3349; }
.dark-style .pnd-chip { color: #cfd3ec; }
.dark-style .pnd-langkah li { color: #cfd3ec; }
.dark-style .pnd-catatan { background: #3b3320; border-color: #5c4a1c; color: #f0d9a0; }
