/* ==========================================================================
   DWARAWATI — Portal Data Pariwisata Terintegrasi Kabupaten Banjarnegara
   Sistem desain halaman publik (mengikuti referensi desain portal).
   ========================================================================== */

:root {
  --navy: #16164C;
  --navy-2: #1E1E6E;
  --ink: #14143F;
  --ink-soft: #2B2B63;
  --muted: #6B6B93;
  --line: #E9E7FB;
  --bg: #F6F5FF;
  --bg-2: #EFEDFE;
  --white: #FFFFFF;

  --violet: #7C3AED;
  --violet-2: #8B5CF6;
  --indigo: #4F46E5;
  --pink: #EC4899;
  --rose: #F43F5E;
  --orange: #F97316;
  --amber: #F59E0B;
  --green: #10B981;
  --teal: #14B8A6;
  --blue: #2563EB;
  --sky: #0EA5E9;

  --radius: 26px;
  --radius-sm: 14px;
  --shadow-sm: 0 4px 14px rgba(28, 24, 90, .06);
  --shadow: 0 18px 40px -18px rgba(28, 24, 90, .22), 0 2px 8px rgba(28, 24, 90, .04);
  --shadow-lg: 0 30px 70px -30px rgba(28, 24, 90, .35);
  --font-display: 'Archivo Black', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand: 'Caveat', 'Segoe Script', cursive;
  --grad-primary: linear-gradient(120deg, #7C3AED 0%, #4F46E5 55%, #2563EB 100%);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.15; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap-wide { width: min(1340px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-fill { fill: currentColor; stroke: none; }

/* ------------------------------- WARNA AKSEN ------------------------------ */
.acc-orange { --acc: #F97316; --acc-2: #FB923C; --acc-soft: #FFF3E7; }
.acc-pink { --acc: #EC4899; --acc-2: #F43F5E; --acc-soft: #FFEFF6; }
.acc-green { --acc: #10B981; --acc-2: #14B8A6; --acc-soft: #E7FBF4; }
.acc-violet { --acc: #7C3AED; --acc-2: #8B5CF6; --acc-soft: #F2ECFF; }
.acc-blue { --acc: #2563EB; --acc-2: #0EA5E9; --acc-soft: #EAF2FF; }
.acc-teal { --acc: #14B8A6; --acc-2: #0EA5E9; --acc-soft: #E6FAF8; }
.acc-rose { --acc: #F43F5E; --acc-2: #EC4899; --acc-soft: #FFF0F3; }

/* --------------------------------- HEADER -------------------------------- */
.topbar {
  background: linear-gradient(90deg, #14143F 0%, #1B1B60 60%, #232378 100%);
  color: #fff;
  position: relative;
  z-index: 40;
}
.topbar-inner { display: flex; align-items: center; gap: 22px; min-height: 74px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-emblem { width: 46px; height: 46px; flex: none; }
.brand-text { font-size: .74rem; line-height: 1.2; letter-spacing: .02em; text-transform: uppercase; font-weight: 700; }
.brand-text span { display: block; font-weight: 500; opacity: .85; letter-spacing: .08em; font-size: .62rem; margin-top: 2px; }

.mainnav { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.mainnav > a, .mainnav > .navdrop > button {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border-radius: 999px; font-size: .93rem; font-weight: 600; color: #E8E7FF;
  background: transparent; border: 0; cursor: pointer; font-family: inherit;
}
.mainnav > a:hover, .mainnav > .navdrop > button:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.mainnav > a.active, .mainnav > .navdrop > button.active { background: var(--grad-primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(124, 58, 237, .9); }
.navdrop { position: relative; }
.navdrop-panel {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(-6px);
  background: #fff; color: var(--ink); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 12px; width: 430px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  opacity: 0; visibility: hidden; transition: .18s ease; border: 1px solid var(--line); z-index: 50;
}
.navdrop:hover .navdrop-panel, .navdrop:focus-within .navdrop-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.navdrop-panel a { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 12px; font-size: .86rem; }
.navdrop-panel a:hover { background: var(--bg-2); }
.navdrop-panel .num { font-family: var(--font-display); font-size: .72rem; color: var(--acc, var(--violet)); }
.navdrop-panel b { display: block; font-size: .9rem; }
.navdrop-panel small { color: var(--muted); font-size: .76rem; line-height: 1.35; display: block; }
.nav-search { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 7px 12px; }
.nav-search input { background: transparent; border: 0; color: #fff; font-family: inherit; font-size: .88rem; width: 130px; outline: none; }
.nav-search input::placeholder { color: rgba(255, 255, 255, .65); }
.nav-burger { display: none; margin-left: auto; background: rgba(255, 255, 255, .14); border: 0; color: #fff; border-radius: 12px; padding: 10px 12px; cursor: pointer; }

@media (max-width: 1080px) {
  .nav-search { display: none; }
  .nav-burger { display: inline-flex; }
  .mainnav {
    position: absolute; top: 74px; left: 0; right: 0; background: #191961; padding: 14px 20px 20px;
    flex-direction: column; align-items: stretch; display: none; z-index: 45;
  }
  .mainnav.open { display: flex; }
  .navdrop-panel { position: static; transform: none; width: auto; opacity: 1; visibility: visible; grid-template-columns: 1fr; margin-top: 6px; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
  .navdrop-panel a { color: #EDEBFF; }
  .navdrop-panel small { color: rgba(255, 255, 255, .7); }
}

/* ---------------------------------- HERO --------------------------------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #FBF8F2 0%, #EEF3FF 45%, #F6F5FF 100%); }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-inner { position: relative; z-index: 2; padding: 58px 0 42px; min-height: 470px; display: flex; flex-direction: column; justify-content: center; }
.hero-copy { max-width: 620px; }
.hero-kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .82rem; font-weight: 700; color: #3B3B7A; margin-bottom: 6px; }
.hero h1 {
  font-family: var(--font-display); font-size: clamp(3.1rem, 8.4vw, 5.6rem); line-height: .92;
  color: #101045; letter-spacing: -.02em; margin: 0 0 .18em; text-shadow: 0 2px 0 rgba(255, 255, 255, .35);
}
.hero-sub { font-size: clamp(1.05rem, 2.1vw, 1.42rem); color: #2C2C63; font-weight: 500; max-width: 460px; margin-bottom: 26px; }
.btn-hero {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 999px;
  background: var(--grad-primary); color: #fff; font-weight: 700; font-size: 1.04rem;
  box-shadow: 0 18px 32px -14px rgba(79, 70, 229, .85); transition: .2s ease;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 22px 38px -14px rgba(79, 70, 229, .95); }
.btn-hero .ic { width: 20px; height: 20px; }
.hero-sticker {
  position: absolute; right: 4%; bottom: 44px; width: 178px; height: 178px; z-index: 3;
  display: grid; place-items: center; text-align: center;
}
.hero-sticker svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 46s linear infinite; }
.hero-sticker span { font-family: var(--font-hand); font-size: 1.12rem; line-height: 1.25; color: #14143F; max-width: 108px; transform: rotate(-6deg); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .hero-sticker { display: none; } }

.scroll-hint { display: flex; justify-content: center; padding: 0 0 26px; color: #6C6C9C; }

/* ------------------------------- JUDUL SEKSI ----------------------------- */
.section { padding: 40px 0 62px; }
.section-head { position: relative; text-align: center; margin-bottom: 34px; }
.section-head .brushes { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 8px; color: #B9B4EA; }
.section-head .kick { color: var(--muted); font-size: .92rem; }
.section-head h2 {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3.6vw, 2.35rem); color: #191950;
  display: inline-block; position: relative; padding: 0 .2em;
}
.section-head h2::before, .section-head h2::after {
  content: ''; position: absolute; top: 50%; width: 46px; height: 12px; border-radius: 12px; opacity: .85;
}
.section-head h2::before { left: -58px; background: linear-gradient(90deg, var(--orange), var(--amber)); }
.section-head h2::after { right: -58px; background: linear-gradient(90deg, var(--violet), var(--sky)); }
.section-note {
  position: absolute; right: 0; top: 6px; font-family: var(--font-hand); font-size: 1.28rem; color: #2E4FC7;
  transform: rotate(-5deg); max-width: 190px; line-height: 1.15; text-align: center;
}
.sticker-left {
  position: absolute; left: 0; top: 0; font-family: var(--font-hand); font-size: 1.24rem; color: #E0685D; transform: rotate(-4deg);
}
@media (max-width: 900px) { .section-note, .sticker-left { display: none; } .section-head h2::before, .section-head h2::after { display: none; } }

/* ------------------------------- KARTU MENU ------------------------------ */
.menu-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.menu-card {
  grid-column: span 2; position: relative; overflow: hidden; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow); padding: 22px 22px 24px;
  display: flex; flex-direction: column; transition: transform .22s ease, box-shadow .22s ease;
}
.menu-card.wide { grid-column: span 3; }
.menu-card::before {
  content: ''; position: absolute; right: -52px; top: -46px; width: 190px; height: 168px;
  background:
    radial-gradient(closest-side at 62% 38%, color-mix(in srgb, var(--acc) 30%, transparent), transparent 72%),
    radial-gradient(closest-side at 30% 72%, color-mix(in srgb, var(--acc-2) 22%, transparent), transparent 70%);
  border-radius: 46% 54% 60% 40% / 52% 44% 56% 48%;
  filter: blur(2px); pointer-events: none;
}
.menu-card::after {
  content: ''; position: absolute; left: -30px; bottom: -60px; width: 150px; height: 150px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 14%, transparent), transparent 72%);
  border-radius: 50%; pointer-events: none;
}
.menu-card:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -26px rgba(28, 24, 90, .42); }
.menu-card > * { position: relative; z-index: 1; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.card-num {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: linear-gradient(140deg, var(--acc), var(--acc-2)); color: #fff;
  font-family: var(--font-display); font-size: .95rem; transform: rotate(-6deg);
  box-shadow: 0 10px 18px -10px var(--acc);
}
.card-icon { width: 54px; height: 54px; flex: none; border-radius: 18px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc); }
.card-icon .ic { width: 28px; height: 28px; stroke-width: 1.9; }
.card-scene { position: absolute; right: 6px; top: 4px; width: 132px; height: 84px; opacity: .95; }
.card-title { font-family: var(--font-display); font-size: 1.58rem; color: var(--acc); letter-spacing: .01em; margin: 2px 0 4px; }
.card-sub { font-weight: 700; color: #1B1B57; font-size: 1.02rem; margin-bottom: 6px; }
.card-desc { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.card-list { display: grid; gap: 7px; margin-bottom: 18px; }
.card-list.two { grid-template-columns: 1fr 1fr; column-gap: 14px; }
.card-list li { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; color: #494970; }
.card-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); margin-top: .55em; flex: none; }
.card-list a:hover { color: var(--acc); text-decoration: underline; }
.card-cta { margin-top: auto; }
.btn-card {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 13px 20px; border-radius: 999px; color: #fff; font-weight: 700; font-size: .95rem;
  background: linear-gradient(120deg, var(--acc), var(--acc-2)); box-shadow: 0 14px 26px -16px var(--acc);
  transition: .2s ease;
}
.btn-card:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-card .ic { width: 18px; height: 18px; }
.btn-card .arrow { transition: transform .2s ease; }
.btn-card:hover .arrow { transform: translateX(4px); }

@media (max-width: 1020px) { .menu-grid { grid-template-columns: repeat(4, 1fr); } .menu-card, .menu-card.wide { grid-column: span 2; } }
@media (max-width: 700px) { .menu-grid { grid-template-columns: 1fr; gap: 18px; } .menu-card, .menu-card.wide { grid-column: span 1; } .card-list.two { grid-template-columns: 1fr; } }

/* ------------------------------- KARTU METRIK ---------------------------- */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.metric {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow-sm);
  display: flex; gap: 14px; align-items: flex-start;
}
.metric .m-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--acc-soft, var(--bg-2)); color: var(--acc, var(--violet)); flex: none; }
.metric b { font-family: var(--font-display); font-size: 1.5rem; display: block; color: #191950; letter-spacing: -.01em; }
.metric span { color: var(--muted); font-size: .84rem; display: block; }
.metric small { color: var(--acc, var(--violet)); font-weight: 600; font-size: .76rem; }

/* ------------------------------- PANEL / KARTU --------------------------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); padding: 22px 24px; }
.panel + .panel { margin-top: 22px; }
.panel h3 { font-size: 1.06rem; color: #191950; display: flex; align-items: center; gap: 9px; }
.panel h3 .ic { width: 20px; height: 20px; color: var(--violet); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 940px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* --------------------------------- TABEL -------------------------------- */
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 620px; }
table.data th, table.data td { padding: 11px 14px; text-align: left; border-bottom: 1px solid #F1F0FB; vertical-align: top; }
table.data th { background: #F8F7FF; font-weight: 700; color: #2B2B63; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; position: sticky; top: 0; z-index: 2; }
table.data tbody tr:hover { background: #FBFAFF; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .row-act { display: flex; gap: 6px; justify-content: flex-end; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--bg-2); color: #413F86; white-space: nowrap; }
.tag.green { background: #E7FBF4; color: #06795B; }
.tag.orange { background: #FFF1E3; color: #B45309; }
.tag.red { background: #FFECEF; color: #BE123C; }
.tag.blue { background: #EAF2FF; color: #1D4ED8; }
.tag.violet { background: #F2ECFF; color: #6D28D9; }
.tag.demo { background: #FFF7E6; color: #96610A; border: 1px dashed #F0C56B; }

/* --------------------------------- TOMBOL ------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: .88rem; border: 1px solid transparent; cursor: pointer; font-family: inherit;
  background: var(--grad-primary); color: #fff; transition: .18s ease;
}
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: #fff; color: #2B2B63; border-color: var(--line); }
.btn.ghost:hover { background: var(--bg-2); }
.btn.danger { background: #E11D48; }
.btn.small { padding: 7px 13px; font-size: .8rem; }
.btn.icon-only { padding: 8px; border-radius: 12px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------------------------------- FORM -------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .84rem; font-weight: 700; color: #2B2B63; margin-bottom: 5px; }
.field label .req { color: #E11D48; }
.field .help { font-size: .76rem; color: var(--muted); margin-top: 4px; }
.field input[type=text], .field input[type=number], .field input[type=date], .field input[type=email],
.field input[type=tel], .field input[type=url], .field input[type=password], .field input[type=month],
.field select, .field textarea {
  width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid #DDDBF3; background: #fff;
  font-family: inherit; font-size: .9rem; color: var(--ink); outline: none; transition: .15s ease;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet-2); box-shadow: 0 0 0 3px rgba(139, 92, 246, .16); }
.field .hint-empty { color: #A6A3C6; }
@media (max-width: 760px) { .form-grid { grid-template-columns: 1fr; } }

.alert { border-radius: 14px; padding: 12px 16px; font-size: .88rem; margin-bottom: 16px; }
.alert.err { background: #FFF0F3; color: #9F1239; border: 1px solid #FBD0D9; }
.alert.ok { background: #EAFBF4; color: #046C4E; border: 1px solid #B8EEDB; }
.alert.info { background: #EFF3FF; color: #1E3A8A; border: 1px solid #D3DDFF; }
.alert.warn { background: #FFF8E8; color: #8A5B08; border: 1px solid #F3DFA8; }

/* --------------------------------- FILTER ------------------------------- */
.filterbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 18px; }
.filterbar .field { min-width: 160px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .8rem; color: var(--muted); margin-bottom: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--violet); }

/* --------------------------------- PAGING ------------------------------- */
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.pager a, .pager span { padding: 8px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: .84rem; }
.pager .on { background: var(--grad-primary); color: #fff; border-color: transparent; }

/* ------------------------------- GRAFIK & PETA -------------------------- */
.chart { width: 100%; height: 240px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .grid-line { stroke: #EDEBFA; stroke-width: 1; }
.chart .axis-label { font-size: 10px; fill: #8A88AD; font-family: var(--font-body); }
.chart .bar { rx: 6; }
.chart .line-path { fill: none; stroke-width: 2.6; stroke-linecap: round; }
.chart .dot { stroke: #fff; stroke-width: 2; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: .8rem; color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; }
.geomap { position: relative; width: 100%; aspect-ratio: 16 / 10; background: linear-gradient(160deg, #EAF1FF, #F7F5FF); border-radius: 18px; border: 1px solid var(--line); overflow: hidden; }
.geomap svg { width: 100%; height: 100%; }
.geomap .pin { fill: var(--violet); stroke: #fff; stroke-width: 1.4; cursor: pointer; }
.geomap .pin:hover { fill: var(--orange); }
.geomap-labels { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; margin-top: 14px; font-size: .82rem; }
.geomap-labels a { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.geomap-labels a:hover { border-color: var(--violet-2); }
.geomap-labels .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); flex: none; }

/* ---------------------------------- FOOTER ------------------------------ */
.site-foot { position: relative; margin-top: 40px; background: linear-gradient(180deg, #1B1B60 0%, #14143F 100%); color: #D9D8F5; padding: 56px 0 118px; overflow: hidden; }
.site-foot .mountains { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 150px; opacity: .5; }
.foot-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.4fr 2fr 1fr; gap: 34px; }
.foot-brand { display: flex; gap: 14px; }
.foot-brand .brand-text { color: #fff; }
.foot-brand h4 { font-size: 1rem; color: #fff; margin: 10px 0 2px; }
.foot-motto { font-family: var(--font-hand); font-size: 1.3rem; color: #C7C4FF; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px; }
.foot-col { display: flex; gap: 12px; align-items: flex-start; }
.foot-col .ic { width: 26px; height: 26px; color: #A5A1F5; margin-top: 2px; }
.foot-col b { display: block; color: #fff; font-size: .9rem; }
.foot-col span { font-size: .8rem; color: #B9B7E4; }
.foot-bottom { position: relative; z-index: 2; margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; }
.foot-bottom a:hover { color: #fff; }
.foot-manual {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  color: #E7E5FF; font-weight: 600; font-size: .84rem;
}
.foot-manual:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.foot-admin { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(197, 168, 128, .6); color: #E6D3AE; font-weight: 600; }
.foot-admin:hover { background: rgba(197, 168, 128, .16); color: #fff; }
.foot-tag { font-family: var(--font-hand); font-size: 1.1rem; color: #C7C4FF; transform: rotate(-3deg); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr; } }

/* ------------------------------ SPANDUK DATA CONTOH --------------------- */
.demo-banner {
  display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap;
  background: linear-gradient(90deg, #FFF6E3, #FFEFD6); color: #7A5207; font-size: .84rem;
  padding: 10px 16px; border-bottom: 1px solid #F2DEBB;
}
.demo-banner a { text-decoration: underline; font-weight: 600; }

/* --------------------------------- LIVE CHAT ---------------------------- */
.chat-dock { position: fixed; right: 22px; bottom: 22px; z-index: 60; pointer-events: none; }
.chat-dock > * { pointer-events: auto; }
.chat-launcher {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--grad-primary); color: #fff; font-weight: 700; font-family: inherit; box-shadow: 0 20px 40px -18px rgba(79, 70, 229, .95);
}
.chat-launcher .badge { background: #F43F5E; color: #fff; border-radius: 999px; padding: 1px 7px; font-size: .72rem; }
.chat-panel {
  position: absolute; right: 0; bottom: 66px; width: min(370px, calc(100vw - 44px)); background: #fff;
  border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; display: none;
}
.chat-panel.open { display: block; }
.chat-head { background: linear-gradient(120deg, #1E1E6E, #4F46E5); color: #fff; padding: 14px 18px; }
.chat-head b { display: block; font-size: .96rem; }
.chat-head span { font-size: .78rem; opacity: .9; }
.chat-head .close { position: absolute; right: 16px; top: 16px; background: rgba(255, 255, 255, .18); border: 0; color: #fff; border-radius: 8px; cursor: pointer; padding: 4px 8px; }
.chat-body { height: 300px; overflow-y: auto; padding: 16px; background: #FAFAFF; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; padding: 10px 13px; border-radius: 16px; font-size: .86rem; }
.msg.visitor { background: var(--grad-primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.msg.admin { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 6px; }
.msg time { display: block; font-size: .68rem; opacity: .7; margin-top: 4px; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-form input, .chat-form textarea { flex: 1; border: 1px solid #DDDBF3; border-radius: 12px; padding: 10px 12px; font-family: inherit; font-size: .88rem; resize: none; }
.chat-gate { padding: 18px; display: grid; gap: 10px; }
.chat-gate h4 { font-size: .95rem; }
.chat-topic { font-size: .78rem; color: var(--muted); }
@media (max-width: 560px) { .chat-dock { right: 12px; bottom: 12px; } }

/* --------------------------------- LAINNYA ------------------------------ */
.hero-sm { background: linear-gradient(120deg, #1B1B60, #3B2E9E 55%, #2563EB); color: #fff; padding: 42px 0 46px; position: relative; overflow: hidden; }
.hero-sm .num { font-family: var(--font-display); opacity: .35; font-size: 3.2rem; line-height: 1; }
.hero-sm h1 { font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.6rem); color: #fff; }
.hero-sm p { color: #D7D5FF; max-width: 720px; }
.hero-sm .badge-line { display: inline-flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, .14); padding: 6px 14px; border-radius: 999px; font-size: .8rem; margin-bottom: 10px; }

.submenu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.submenu-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 6px; transition: .18s ease; }
.submenu-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.submenu-card b { color: #1B1B57; font-size: .98rem; }
.submenu-card span { color: var(--muted); font-size: .84rem; }
.submenu-card .count { font-size: .78rem; color: var(--violet); font-weight: 700; }
.submenu-card .ic { width: 22px; height: 22px; color: var(--acc, var(--violet)); }

.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.news-cover { height: 150px; background: linear-gradient(120deg, #4F46E5, #7C3AED); position: relative; color: #fff; display: grid; place-items: end start; padding: 12px; font-size: .78rem; }
.news-cover.v2 { background: linear-gradient(120deg, #10B981, #0EA5E9); }
.news-cover.v3 { background: linear-gradient(120deg, #F97316, #EC4899); }
.news-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card h4 { font-size: 1rem; color: #1B1B57; }
.news-card p { color: var(--muted); font-size: .86rem; margin: 0; }
.news-card .meta { font-size: .76rem; color: #8A88AD; margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

.article-body { font-size: 1rem; color: #33335F; }
.article-body h2, .article-body h3 { margin-top: 1.4em; color: #1B1B57; }
.article-body img, .article-body iframe { border-radius: 16px; max-width: 100%; }
.article-body iframe { aspect-ratio: 16/9; width: 100%; }
.article-body blockquote { border-left: 4px solid var(--violet-2); padding-left: 16px; color: #4A4A7A; font-style: italic; }
.article-body table { width: 100%; border-collapse: collapse; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 10px; }

.doc-list { display: grid; gap: 12px; }
.doc-row { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.doc-row .ic { width: 22px; height: 22px; color: var(--violet); }
.doc-row b { font-size: .92rem; }
.doc-row span { font-size: .8rem; color: var(--muted); display: block; }

.tree { display: grid; gap: 10px; }
.tree-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.tree-item .jenis { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--violet); }
.tree-item.ind-1 { margin-left: 28px; }
.tree-item.ind-2 { margin-left: 56px; }

.steps { display: grid; gap: 12px; counter-reset: st; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 16px 62px; }
.step::before { counter-increment: st; content: counter(st); position: absolute; left: 18px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--grad-primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }

.kv { display: grid; grid-template-columns: 190px 1fr; gap: 8px 16px; font-size: .89rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: #22224F; font-weight: 500; }
@media (max-width: 640px) { .kv { grid-template-columns: 1fr; } .kv dt { font-weight: 700; color: #2B2B63; } }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .ic { width: 40px; height: 40px; color: #C6C3E8; margin-bottom: 10px; }

/* ------------------------------ PUSAT PANDUAN ---------------------------- */
.docs-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.docs-meta .tag { background: rgba(255, 255, 255, .16); color: #F0EEFF; }

.docs-layout { display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: start; }
.docs-side { position: sticky; top: 18px; display: flex; flex-direction: column; gap: 16px; }
.docs-search { display: flex; gap: 8px; }
.docs-search input { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-family: inherit; font-size: .88rem; outline: none; background: #fff; }
.docs-search input:focus { border-color: var(--violet-2); box-shadow: 0 0 0 3px rgba(139, 92, 246, .16); }
.docs-group { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow-sm); }
.docs-group-title {
  display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: .92rem; color: #1B1B57;
  padding: 4px 0 8px; border-bottom: 1px solid #F1F0FB; margin-bottom: 6px;
}
.docs-group-title .ic { width: 18px; height: 18px; color: var(--violet); }
.docs-group-title.on { color: var(--violet); }
.docs-group-title.static { cursor: default; }
.docs-group-title .docs-count { margin-left: auto; font-size: .74rem; background: var(--bg-2); color: #413F86; border-radius: 999px; padding: 1px 9px; }
.docs-list { display: flex; flex-direction: column; gap: 2px; }
.docs-list a { display: block; padding: 7px 10px; border-radius: 10px; font-size: .86rem; color: #3D3D6B; }
.docs-list a:hover { background: var(--bg-2); color: var(--violet); }
.docs-list a.on { background: #F2ECFF; color: var(--violet); font-weight: 600; }
.docs-list.toc a { font-size: .84rem; color: var(--muted); }
.docs-list .lvl-3 a { padding-left: 22px; font-size: .8rem; }
.docs-list .lvl-4 a { padding-left: 32px; font-size: .78rem; }
.docs-side-foot { padding: 0 2px; }

.docs-main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.docs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.docs-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.docs-card:hover { border-color: var(--violet-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.docs-card b { color: #1B1B57; font-size: .96rem; }
.docs-card span { color: var(--muted); font-size: .84rem; }
.docs-card .tag { align-self: flex-start; margin-bottom: 2px; }

.docs-article { padding: 26px 30px; }
.docs-content { font-size: .96rem; color: #33335F; line-height: 1.75; }
.docs-content > *:first-child { margin-top: 0; }
.docs-content h2 {
  font-family: var(--font-display); font-size: 1.3rem; color: #191950; margin: 1.5em 0 .5em;
  padding-bottom: 8px; border-bottom: 2px solid #F1F0FB; scroll-margin-top: 90px;
}
.docs-content h3 { font-size: 1.06rem; color: #23235C; margin: 1.3em 0 .4em; scroll-margin-top: 90px; }
.docs-content h4 { font-size: .98rem; color: #2B2B63; margin: 1.1em 0 .3em; scroll-margin-top: 90px; }
.docs-content ul, .docs-content ol { margin: 0 0 1em 1.3em; padding: 0; list-style: disc; }
.docs-content ol { list-style: decimal; }
.docs-content li { margin-bottom: .4em; }
.docs-content a { color: var(--indigo); text-decoration: underline; text-decoration-color: rgba(79, 70, 229, .35); }
.docs-content a:hover { color: var(--violet); }
.docs-content blockquote {
  margin: 1em 0; padding: 12px 16px; background: #FFF9EC; border-left: 4px solid var(--amber);
  border-radius: 0 12px 12px 0; color: #6B520F;
}
.docs-content code { background: #F2F1FB; padding: 2px 6px; border-radius: 6px; font-size: .88em; }
.docs-content pre { background: #14143F; color: #E6E4FF; padding: 14px 16px; border-radius: 12px; overflow-x: auto; font-size: .82rem; }
.docs-content pre code { background: none; color: inherit; padding: 0; }
.docs-content table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .88rem; }
.docs-content table th, .docs-content table td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.docs-content table th { background: #F8F7FF; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: #4B4B85; }
.docs-content img { border-radius: 14px; margin: 1em 0; }
.docs-content hr { border: 0; border-top: 1px solid var(--line); margin: 1.6em 0; }

.docs-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.docs-nav-item { display: flex; flex-direction: column; gap: 3px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.docs-nav-item:hover { border-color: var(--violet-2); }
.docs-nav-item span { font-size: .76rem; color: var(--muted); }
.docs-nav-item b { font-size: .9rem; color: #1B1B57; }
.docs-nav-item.right { text-align: right; align-items: flex-end; }

.md-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.md-input {
  width: 100%; min-height: 420px; border: 1px solid #DDDBF3; border-radius: 14px; padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .84rem; line-height: 1.6; resize: vertical;
}
.md-input:focus { outline: none; border-color: var(--violet-2); box-shadow: 0 0 0 3px rgba(139, 92, 246, .16); }
.md-preview { border: 1px solid var(--line); border-radius: 14px; background: #fff; display: flex; flex-direction: column; max-height: 620px; }
.md-preview-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #FBFAFF; font-size: .82rem; font-weight: 700; color: #4B4B85; border-radius: 14px 14px 0 0; }
.md-preview-body { padding: 14px 18px; overflow-y: auto; font-size: .88rem; }

@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-side { position: static; }
  .docs-nav, .md-grid { grid-template-columns: 1fr; }
  .docs-article { padding: 20px; }
}

@media print {
  .topbar, .site-foot, .docs-side, .docs-nav, .chat-dock, .demo-banner, .docs-meta + .btn-row { display: none !important; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-article { border: 0; box-shadow: none; padding: 0; }
  body { background: #fff; }
}
