@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,600&display=swap");

:root {
  --bg: #040b18;
  --glass: rgba(9, 19, 38, 0.72);
  --glass-strong: rgba(9, 19, 38, 0.88);
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.24);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --soft: #64748b;
  --teal: #2dd4bf;
  --blue: #60a5fa;
  --gold: #fcd34d;
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --left-w: 340px;
  --right-w: 360px;
  --gap: 16px;
  --top-h: 60px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button { font: inherit; color: inherit; }

.pd-app {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.pd-map {
  position: absolute;
  inset: 0;
}

.pd-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, transparent 55%, rgba(2, 6, 16, 0.65) 100%),
    linear-gradient(180deg, rgba(2, 6, 16, 0.55) 0%, transparent 14%, transparent 86%, rgba(2, 6, 16, 0.6) 100%);
}

.pd-muted { color: var(--muted); font-size: 12px; margin: 0; }
.pd-teal { color: var(--teal); }
.pd-blue { color: var(--blue); }
.pd-gold { color: var(--gold); }

.pd-glass,
.pd-panel,
.pd-top__title,
.pd-live,
.pd-clock,
.pd-replay,
.pd-top__brand {
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: var(--shadow);
}

/* ——— Top bar ——— */
.pd-top {
  position: absolute;
  top: var(--gap);
  left: var(--gap);
  right: var(--gap);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.pd-top > * { pointer-events: auto; }

.pd-top__brand {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s;
}

.pd-top__brand:hover { background: var(--glass-strong); }

.pd-top__brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.pd-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.35);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.22), rgba(56, 189, 248, 0.16)), var(--glass);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: var(--shadow);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s;
}

.pd-menu-btn:hover { transform: translateY(-1px); border-color: rgba(45, 212, 191, 0.6); }

/* ——— Keterangan (tooltip ⓘ) ——— */
.pd-tip {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-left: 2px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: italic 700 9.5px/1 Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  text-transform: none;
  vertical-align: 1px;
  cursor: help;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}

.pd-tip:hover,
.pd-tip.is-on,
.pd-tip:focus-visible {
  color: #04201c;
  background: var(--teal);
  border-color: var(--teal);
  transform: scale(1.1);
  outline: none;
}

.pd-tip::before {
  content: "";
  position: absolute;
  inset: -8px;
}

.pd-tip { position: relative; }

.pd-tip-pop {
  position: fixed;
  z-index: 40;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(13, 25, 48, 0.97);
  border: 1px solid rgba(45, 212, 191, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  color: #dbe4f0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
  pointer-events: none;
}

.pd-tip-pop::after {
  content: "";
  position: absolute;
  left: calc(var(--ax, 50%) - 6px);
  width: 10px;
  height: 10px;
  background: inherit;
  border: inherit;
  transform: rotate(45deg);
}

.pd-tip-pop[data-side="below"]::after { top: -6px; border-right: 0; border-bottom: 0; }
.pd-tip-pop[data-side="above"]::after { bottom: -6px; border-left: 0; border-top: 0; }

.pd-tip-pop.is-in { animation: pd-tip-in 0.22s var(--ease) both; }
.pd-tip-pop[data-side="above"].is-in { animation-name: pd-tip-in-up; }

@keyframes pd-tip-in { from { opacity: 0; transform: translateY(-4px); } }
@keyframes pd-tip-in-up { from { opacity: 0; transform: translateY(4px); } }

.pd-kpi__lbl,
.pd-block__title,
.pd-feed__head h2,
.pd-drawer__sec h3 { display: flex; align-items: center; gap: 6px; }

.pd-replay__lead { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }

/* ——— Cara membaca peta ——— */
.pd-help-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: var(--shadow);
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}

.pd-help-btn:hover,
.pd-help-btn[aria-expanded="true"] { color: #fff; border-color: rgba(45, 212, 191, 0.5); transform: translateY(-1px); }

.pd-help-btn.is-hint::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  animation: pd-hint 2.4s ease-out 1.5s 4;
  pointer-events: none;
}

@keyframes pd-hint {
  0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.55); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(45, 212, 191, 0); }
}

.pd-help {
  position: absolute;
  z-index: 26;
  top: calc(var(--gap) + var(--top-h) + 4px);
  right: var(--gap);
  width: 340px;
  max-height: calc(100% - var(--gap) * 2 - var(--top-h) - 100px);
  overflow-y: auto;
  padding: 14px 16px 16px;
  border-radius: 18px;
  background: rgba(9, 19, 38, 0.95);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
}

.pd-help.is-in { animation: pd-help-in 0.35s var(--ease) both; }

@keyframes pd-help-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.pd-help__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pd-help__head strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 17px;
  font-weight: 600;
}

.pd-help__head .pd-drawer__close { position: static; float: none; width: 30px; height: 30px; }

.pd-help__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.pd-help__list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  line-height: 1.45;
  color: #a8b5c8;
}

.pd-help__list b { color: #fff; font-weight: 700; }

.pd-help__ico { width: 40px; height: 24px; display: block; }

.pd-help__grad {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1e3a8a, #0ea5e9, #2dd4bf, #fef3c7);
}

.pd-help__pulse circle:not(:last-child) { transform-origin: 20px 12px; animation: pd-help-pulse 2s ease-out infinite; }
.pd-help__pulse circle:nth-child(2) { animation-delay: 0.4s; }

@keyframes pd-help-pulse {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(1.1); opacity: 0; }
}

.pd-help__live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 9px;
  font-weight: 800;
  color: #6ee7b7;
}

.pd-help__live i { width: 5px; height: 5px; border-radius: 50%; background: #34d399; }

.pd-help__note {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
  font-size: 11px;
  line-height: 1.5;
  color: var(--soft);
}

/* ——— Menu layanan ——— */
.pd-nav-backdrop {
  position: absolute;
  inset: 0;
  z-index: 28;
  background: rgba(2, 6, 16, 0.5);
  backdrop-filter: blur(2px);
  animation: pd-fade-in 0.3s ease both;
}

.pd-nav {
  position: absolute;
  z-index: 29;
  top: var(--gap);
  right: var(--gap);
  bottom: var(--gap);
  width: min(380px, calc(100vw - var(--gap) * 2));
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: rgba(9, 19, 38, 0.94);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  overflow: hidden;
  animation: pd-nav-in 0.5s var(--ease) both;
}

.pd-nav[hidden],
.pd-nav-backdrop[hidden],
.pd-help[hidden],
.pd-tip-pop[hidden] { display: none; }

@keyframes pd-nav-in {
  from { opacity: 0; transform: translateX(32px); }
  to { opacity: 1; transform: none; }
}

@keyframes pd-fade-in { from { opacity: 0; } }

.pd-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 14px 20px;
  border-bottom: 1px solid var(--line);
}

.pd-nav__kicker {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.pd-nav__title {
  display: block;
  margin-top: 2px;
  font-family: Fraunces, Georgia, serif;
  font-size: 21px;
  font-weight: 600;
}

.pd-nav__head .pd-drawer__close { position: static; float: none; }

.pd-nav__body {
  flex: 1;
  overflow-y: auto;
  padding: 6px 12px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.25) transparent;
}

.pd-nav__group {
  margin: 16px 8px 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.pd-nav__link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s var(--ease);
}

.pd-nav__link:hover,
.pd-nav__link:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(3px);
  outline: none;
}

.pd-nav__link-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.pd-nav__link-desc {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.pd-nav__link--muted { opacity: 0.6; }

.pd-top__title {
  padding: 7px 16px 8px;
  border-radius: 14px;
}

.pd-top__kicker {
  margin: 0;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.pd-top__title h1 {
  margin: 1px 0 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.pd-top__title h1 span {
  background: linear-gradient(90deg, var(--teal), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pd-top__right {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.pd-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.pd-live__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
}

.pd-live[data-state="live"] { color: #6ee7b7; }
.pd-live[data-state="live"] .pd-live__dot {
  background: #34d399;
  animation: pd-ping 1.6s var(--ease) infinite;
}
.pd-live[data-state="connecting"] .pd-live__dot { background: var(--gold); animation: pd-blink 1s infinite; }
.pd-live[data-state="error"] { color: #fca5a5; letter-spacing: 0; font-weight: 700; }
.pd-live[data-state="error"] .pd-live__dot { background: #f87171; }

@keyframes pd-ping {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  80%, 100% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
}

@keyframes pd-blink { 50% { opacity: 0.3; } }

.pd-clock {
  height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

/* ——— Panels ——— */
.pd-panel {
  position: absolute;
  z-index: 4;
  top: calc(var(--gap) + var(--top-h) + 8px);
  bottom: calc(var(--gap) + 84px);
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
}

.pd-panel--left {
  left: var(--gap);
  width: var(--left-w);
  padding: 16px;
  overflow-y: auto;
  transform: translateX(-24px);
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.25) transparent;
}

.pd-panel--right {
  right: var(--gap);
  width: var(--right-w);
  transform: translateX(24px);
}

.is-ready .pd-panel { opacity: 1; transform: none; }
.is-ready .pd-panel--right { transition-delay: 0.15s; }

/* ——— KPIs ——— */
.pd-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pd-kpi {
  padding: 12px 12px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}

.pd-kpi--hero {
  grid-column: 1 / -1;
  padding: 14px 14px 13px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(45, 212, 191, 0.16), transparent 60%),
    rgba(255, 255, 255, 0.035);
}

.pd-kpi--live {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: baseline;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(252, 211, 77, 0.14), transparent 60%),
    rgba(255, 255, 255, 0.035);
}

.pd-kpi--live .pd-kpi__lbl { grid-column: 1 / -1; }
.pd-kpi--live .pd-kpi__num { color: var(--gold); }
.pd-kpi--live .pd-kpi__sub { margin: 0; }

.pd-kpi__lbl {
  margin: 0;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.pd-kpi__num {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.pd-kpi--hero .pd-kpi__num { font-size: 34px; }

.pd-kpi__sub {
  margin: 4px 0 0;
  font-size: 11.5px;
  color: var(--muted);
}

/* ——— Blocks ——— */
.pd-block {
  margin-top: 18px;
}

.pd-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pd-block__title {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pd-block__head .pd-block__title { margin-bottom: 10px; }

.pd-link {
  margin-bottom: 10px;
  background: none;
  border: 0;
  padding: 0;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--teal);
  cursor: pointer;
}

.pd-badge {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: #fde68a;
  background: rgba(252, 211, 77, 0.12);
  border: 1px solid rgba(252, 211, 77, 0.28);
}

.pd-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 3px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.pd-seg button {
  border: 0;
  background: transparent;
  padding: 8px 4px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s;
}

.pd-seg button:hover { color: var(--text); }

.pd-seg button.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.pd-legend { margin-top: 12px; }

.pd-legend__bar {
  height: 8px;
  border-radius: 999px;
  transition: background 0.5s;
}

.pd-legend__labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  font-size: 10.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.pd-legend__labels span:nth-child(2) { color: var(--soft); text-align: center; }

.pd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pd-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 11.5px;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.pd-chip:hover { border-color: var(--line-strong); color: #fff; transform: translateY(-1px); }

.pd-chip--impact.is-active { background: rgba(45, 212, 191, 0.16); border-color: rgba(45, 212, 191, 0.5); color: #99f6e4; }
.pd-chip--tech.is-active { background: rgba(96, 165, 250, 0.16); border-color: rgba(96, 165, 250, 0.5); color: #bfdbfe; }
.pd-chip--impact::before, .pd-chip--tech::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}
.pd-chip--tech::before { background: var(--blue); }

.pd-chip--kampus i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 8px var(--c);
}

.pd-chip--kampus small {
  font-size: 10px;
  color: var(--soft);
  font-weight: 700;
}

.pd-chip--kampus.is-active {
  background: color-mix(in srgb, var(--c) 18%, transparent);
  border-color: color-mix(in srgb, var(--c) 60%, transparent);
  color: #fff;
}

/* ——— Bars ——— */
.pd-bars { display: grid; gap: 9px; }

.pd-bar__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.3;
}

.pd-bar__row b { font-variant-numeric: tabular-nums; color: #fff; }

.pd-bar__track {
  margin-top: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.pd-bar__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width 1s var(--ease);
}

.pd-bar__fill.is-in { width: var(--w); }
.pd-bar__fill--teal { background: linear-gradient(90deg, #0d9488, var(--teal)); box-shadow: 0 0 10px rgba(45, 212, 191, 0.45); }
.pd-bar__fill--blue { background: linear-gradient(90deg, #2563eb, var(--blue)); box-shadow: 0 0 10px rgba(96, 165, 250, 0.45); }

/* ——— Feed ——— */
.pd-feed {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: opacity 0.35s, transform 0.5s var(--ease);
}

.pd-feed.is-under { opacity: 0; transform: scale(0.97); pointer-events: none; }

.pd-feed__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 16px 10px;
  border-bottom: 1px solid var(--line);
}

.pd-feed__head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.pd-feed__list {
  list-style: none;
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.25) transparent;
}

.pd-feed__list--compact { padding: 0; overflow: visible; }

.pd-item {
  padding: 11px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.pd-item + .pd-item { border-top: 1px solid rgba(148, 163, 184, 0.08); }
.pd-item:hover { background: rgba(255, 255, 255, 0.05); }

.pd-item.is-new {
  animation: pd-item-in 1.1s var(--ease) both, pd-item-glow 2.6s ease-out;
}

@keyframes pd-item-in {
  from { opacity: 0; transform: translateY(-14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes pd-item-glow {
  0% { background: rgba(252, 211, 77, 0.2); box-shadow: inset 3px 0 0 var(--gold); }
  100% { background: transparent; box-shadow: inset 3px 0 0 transparent; }
}

.pd-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  font-size: 12.5px;
}

.pd-item__k { color: var(--teal); font-weight: 700; }

.pd-item__head time {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--soft);
  font-variant-numeric: tabular-nums;
}

.pd-item__txt {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #a8b5c8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pd-item__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}

.pd-mini {
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
}

.pd-mini--teal { background: rgba(45, 212, 191, 0.12); color: #5eead4; }
.pd-mini--blue { background: rgba(96, 165, 250, 0.12); color: #93c5fd; }

/* ——— Drawer ——— */
.pd-drawer {
  position: absolute;
  inset: 0;
  padding: 18px 18px 24px;
  overflow-y: auto;
  background: var(--glass-strong);
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.25) transparent;
}

.pd-drawer.is-in { animation: pd-drawer-in 0.6s var(--ease) both; }

@keyframes pd-drawer-in {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: none; }
}

.pd-drawer__close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.pd-drawer__close:hover { background: rgba(255, 255, 255, 0.12); }

.pd-drawer__eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.pd-drawer__title {
  margin: 4px 0 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.pd-drawer__kampus {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.pd-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
}

.pd-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }

.pd-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 16px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
}

.pd-stats div {
  padding: 10px 8px;
  background: rgba(9, 19, 38, 0.92);
}

.pd-stats span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.pd-stats b {
  display: block;
  margin-top: 3px;
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.pd-drawer__sec { margin-top: 20px; }

.pd-drawer__sec h3 {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.pd-spark { width: 100%; height: 56px; display: block; }

.pd-spark__meta {
  margin: -4px 0 10px;
  font-size: 12px;
  color: var(--muted);
}

.pd-spark__meta b { color: #fff; font-variant-numeric: tabular-nums; }

.pd-spark__axis {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--soft);
  margin-top: 4px;
}

.pd-dist {
  display: grid;
  gap: 8px;
}

.pd-dist__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(45, 212, 191, 0.07);
  border: 1px solid rgba(45, 212, 191, 0.2);
}

.pd-dist__item--tech { background: rgba(96, 165, 250, 0.07); border-color: rgba(96, 165, 250, 0.22); }

.pd-dist__item b {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
  min-width: 3.2ch;
}

.pd-dist__item--tech b { color: var(--blue); }

.pd-dist__item span {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

.pd-dist__item strong { color: #fff; font-size: 12.5px; }

.pd-drawer__more {
  margin-top: 16px;
  border-top: 1px dashed var(--line-strong);
}

.pd-drawer__more summary {
  padding: 12px 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  cursor: pointer;
  list-style: none;
}

.pd-drawer__more summary::-webkit-details-marker { display: none; }
.pd-drawer__more[open] .pd-bar__fill { width: var(--w); }

/* ——— Replay ——— */
.pd-replay {
  position: absolute;
  z-index: 4;
  left: calc(var(--gap) * 2 + var(--left-w));
  right: calc(var(--gap) * 2 + var(--right-w));
  bottom: var(--gap);
  height: 68px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px 0 12px;
  border-radius: 18px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease) 0.3s, transform 0.9s var(--ease) 0.3s;
}

.is-ready .pd-replay { opacity: 1; transform: none; }

.pd-replay__btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #04201c;
  background: linear-gradient(135deg, #5eead4, #38bdf8);
  box-shadow: 0 6px 20px rgba(45, 212, 191, 0.35);
  transition: transform 0.2s var(--ease);
}

.pd-replay__btn:hover { transform: scale(1.06); }
.pd-replay__btn .pd-ico-pause { display: none; }
.pd-replay.is-playing .pd-ico-pause { display: block; }
.pd-replay.is-playing .pd-ico-play { display: none; }
.pd-replay.is-playing .pd-replay__btn { animation: pd-ping-teal 1.4s infinite; }

@keyframes pd-ping-teal {
  0% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.55); }
  100% { box-shadow: 0 0 0 14px rgba(94, 234, 212, 0); }
}

.pd-replay__track {
  position: relative;
  flex: 1;
  min-width: 0;
}

.pd-replay__label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pd-replay__label span:last-child { color: var(--teal); font-variant-numeric: tabular-nums; }

.pd-replay__spark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  width: 100%;
  height: 26px;
  pointer-events: none;
}

#pdScrub {
  --p: 100%;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

#pdScrub::-webkit-slider-runnable-track {
  height: 3px;
  margin-top: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal) var(--p), rgba(255, 255, 255, 0.12) var(--p));
}

#pdScrub::-moz-range-track { height: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
#pdScrub::-moz-range-progress { height: 3px; border-radius: 999px; background: var(--teal); }

#pdScrub::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.35), 0 2px 6px rgba(0, 0, 0, 0.4);
}

#pdScrub::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.35);
}

/* ——— Map markers ——— */
.pd-kampus-pin {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.pd-kampus-pin__logo {
  --s: 26px;
  display: grid;
  place-items: center;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 2px var(--c),
    0 0 0 4px rgba(4, 11, 24, 0.75),
    0 0 18px color-mix(in srgb, var(--c) 55%, transparent),
    0 6px 14px rgba(0, 0, 0, 0.45);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), transform 0.25s var(--ease), opacity 0.4s, box-shadow 0.3s;
}

.pd-kampus-pin__logo img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  display: block;
}

.is-zoomed-k .pd-kampus-pin__logo { --s: 36px; }

.pd-kampus-pin__name {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  transform: translate(-50%, -4px);
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(4, 11, 24, 0.85);
  border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.3s var(--ease);
}

.is-zoomed-k .pd-kampus-pin__name,
.pd-kampus-pin:hover .pd-kampus-pin__name,
.pd-kampus-pin.is-active .pd-kampus-pin__name { opacity: 1; transform: translate(-50%, 0); }

.pd-kampus-pin:hover,
.pd-kampus-pin.is-active { z-index: 3; }
.pd-kampus-pin:hover .pd-kampus-pin__logo { transform: scale(1.18); }
.pd-kampus-pin.is-dim .pd-kampus-pin__logo,
.pd-kampus-pin.is-dim .pd-kampus-pin__name { opacity: 0.25; filter: grayscale(0.7); }
.pd-kampus-pin.is-active .pd-kampus-pin__logo {
  transform: scale(1.3);
  box-shadow: 0 0 0 2.5px var(--c), 0 0 0 5px #fff, 0 0 28px var(--c), 0 6px 14px rgba(0, 0, 0, 0.45);
}

.pd-kampus-pin__logo--dot { background: var(--c); }

/* ——— Logo kampus di chip, tag, feed ——— */
.pd-chip__logo,
.pd-tag__logo,
.pd-item__logo {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1.5px var(--c, rgba(255, 255, 255, 0.3));
}

.pd-chip__logo { width: 18px; height: 18px; margin-left: -3px; }
.pd-tag__logo { width: 16px; height: 16px; margin-left: -3px; }
.pd-item__logo { width: 18px; height: 18px; align-self: center; }

.pd-chip__logo img,
.pd-tag__logo img,
.pd-item__logo img { width: 84%; height: 84%; object-fit: contain; display: block; }

.pd-chip__logo--dot,
.pd-tag__logo--dot { background: var(--c); }

.pd-klabel { pointer-events: none; }

.pd-klabel span {
  display: block;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: #e2e8f0;
  background: rgba(4, 11, 24, 0.7);
  border: 1px solid var(--line);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

.is-zoomed .pd-klabel span,
.pd-klabel.is-sel span { opacity: 1; }

.pd-klabel.is-sel { z-index: 2; }

.pd-klabel.is-sel span {
  color: #04201c;
  background: #5eead4;
  border-color: transparent;
}

/* ——— Popup ——— */
.maplibregl-popup.pd-pop .maplibregl-popup-content {
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(9, 19, 38, 0.94);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  color: var(--text);
  font-family: inherit;
}

.maplibregl-popup.pd-pop .maplibregl-popup-tip { display: none; }

.pd-pop__t { margin: 0; font-size: 14px; font-weight: 800; }
.pd-pop__s { margin: 2px 0 0; font-size: 11px; color: var(--muted); }
.pd-pop__v { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--teal); }
.pd-pop__live { margin: 4px 0 0; font-size: 11.5px; font-weight: 700; color: var(--gold); }
.pd-pop__f { margin: 6px 0 0; font-size: 11px; color: var(--muted); }

.maplibregl-ctrl-group {
  background: var(--glass) !important;
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow) !important;
  border-radius: 12px !important;
  overflow: hidden;
}

.maplibregl-ctrl-group button + button { border-top-color: var(--line) !important; }
.maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1) brightness(0.9); }

.maplibregl-ctrl-bottom-right {
  right: calc(var(--right-w) + var(--gap) * 2 - 6px);
  bottom: calc(84px + var(--gap));
}

.maplibregl-ctrl-attrib {
  background: rgba(4, 11, 24, 0.6) !important;
  color: var(--soft);
}

.maplibregl-ctrl-attrib a { color: var(--muted); }

/* ——— Toast ——— */
.pd-toast {
  position: absolute;
  z-index: 8;
  top: calc(var(--gap) + var(--top-h) + 10px);
  left: 50%;
  max-width: min(520px, calc(100vw - 32px));
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(9, 19, 38, 0.92);
  border: 1px solid rgba(45, 212, 191, 0.4);
  box-shadow: var(--shadow), 0 0 24px rgba(45, 212, 191, 0.2);
  backdrop-filter: blur(14px);
  transform: translate(-50%, -18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.6s var(--ease);
}

.pd-toast.is-gold { border-color: rgba(252, 211, 77, 0.55); box-shadow: var(--shadow), 0 0 28px rgba(252, 211, 77, 0.25); }
.pd-toast.is-in { opacity: 1; transform: translate(-50%, 0); }

/* ——— Loader ——— */
.pd-loader {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: radial-gradient(ellipse at center, #0b1a33 0%, #040b18 70%);
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}

.pd-loader p { margin: 0; font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; }

.pd-loader__ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(45, 212, 191, 0.15);
  border-top-color: var(--teal);
  animation: pd-spin 1s linear infinite;
}

@keyframes pd-spin { to { transform: rotate(360deg); } }

.pd-loader.is-out { opacity: 0; visibility: hidden; }

.pd-sheetnav { display: none; }

/* ——— Responsive ——— */
@media (max-width: 1180px) {
  :root { --right-w: 320px; --left-w: 310px; }
  .pd-kpi--hero .pd-kpi__num { font-size: 30px; }
}

@media (max-width: 960px) and (min-width: 821px) {
  :root { --right-w: 290px; --left-w: 290px; }
  .pd-replay__label span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

@media (max-width: 820px) {
  :root {
    --gap: 10px;
    --top-h: 48px;
    --nav-h: 58px;
    --sheet-h: 44vh;
  }

  .pd-top__brand { width: 40px; height: 40px; border-radius: 12px; }
  .pd-top__brand img { width: 26px; height: 26px; }
  .pd-menu-btn { width: 36px; height: 34px; padding: 0; justify-content: center; }
  .pd-menu-btn span { display: none; }
  .pd-help-btn { width: 34px; height: 34px; padding: 0; justify-content: center; }
  .pd-help-btn span { display: none; }
  .pd-top__right { gap: 6px; }
  .pd-help { left: var(--gap); right: var(--gap); width: auto; top: calc(var(--gap) + var(--top-h) + 2px); max-height: calc(100% - var(--top-h) - var(--nav-h) - 40px); }
  .pd-app:not(.is-zoomed-k) .pd-kampus-pin__logo { --s: 19px; }
  .pd-app:not(.is-zoomed-k) .pd-kampus-pin__logo { box-shadow: 0 0 0 1.5px var(--c), 0 0 0 3px rgba(4, 11, 24, 0.75), 0 4px 10px rgba(0, 0, 0, 0.45); }
  .pd-nav { top: 0; right: 0; bottom: 0; width: min(360px, 92vw); border-radius: 22px 0 0 22px; }
  .pd-top__title { padding: 5px 10px 6px; }
  .pd-top__kicker { display: none; }
  .pd-top__title h1 { font-size: 16px; }
  .pd-clock { display: none; }
  .pd-live { height: 34px; padding: 0 10px; }

  .pd-panel,
  .pd-panel--left,
  .pd-panel--right {
    top: auto;
    left: 0;
    right: 0;
    bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
    width: auto;
    height: var(--sheet-h);
    border-radius: 22px 22px 0 0;
    border-bottom: 0;
    transform: translateY(24px);
    transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), height 0.5s var(--ease);
  }

  .pd-panel--left { padding: 14px 14px 18px; }

  .pd-app[data-sheet="ringkasan"] .pd-panel--right,
  .pd-app:not([data-sheet="ringkasan"]) .pd-panel--left {
    opacity: 0 !important;
    pointer-events: none;
    transform: translateY(30px) !important;
  }

  .pd-app[data-sheet="live"] .pd-drawer { display: none; }
  .pd-app[data-sheet="kawasan"] .pd-feed { display: none; }

  .is-sheet-min .pd-panel { height: 0; border-width: 0; }

  .pd-kpi--hero, .pd-kpi--live { grid-column: span 1; }
  .pd-kpi--live { display: block; }
  .pd-kpi { padding: 10px; }
  .pd-kpi__num { font-size: 19px; }
  .pd-kpi--hero .pd-kpi__num { font-size: 22px; }
  .pd-kpi__lbl { font-size: 9.5px; letter-spacing: 0.05em; }
  .pd-kpi__sub { font-size: 10.5px; }

  .pd-drawer { padding: 16px 14px 24px; }
  .pd-drawer__title { font-size: 24px; }
  .pd-stats b { font-size: 15px; }

  .pd-replay {
    left: var(--gap);
    right: var(--gap);
    bottom: calc(var(--nav-h) + var(--sheet-h) + env(safe-area-inset-bottom) + 10px);
    height: 56px;
    padding: 0 14px 0 8px;
    gap: 10px;
    transition: opacity 0.7s var(--ease) 0.3s, transform 0.9s var(--ease) 0.3s, bottom 0.5s var(--ease);
  }

  .is-sheet-min .pd-replay { bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 10px); }
  .pd-replay__btn { width: 38px; height: 38px; }
  .pd-replay__label { font-size: 11px; }

  .maplibregl-ctrl-bottom-right { display: none; }

  .pd-sheetnav {
    position: absolute;
    z-index: 6;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(var(--nav-h) + env(safe-area-inset-bottom));
    padding: 6px 10px env(safe-area-inset-bottom);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    background: rgba(6, 14, 28, 0.94);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(18px);
  }

  .pd-sheetnav button {
    border: 0;
    border-radius: 12px;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
  }

  .pd-sheetnav button.is-active { background: rgba(255, 255, 255, 0.08); color: #fff; }
  .pd-sheetnav button:disabled { opacity: 0.35; }

  .pd-sheetnav__n:not(:empty) {
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--gold);
    color: #1c1400;
    font-size: 10px;
    font-weight: 800;
  }

  .pd-toast { top: calc(var(--gap) + var(--top-h) + 6px); font-size: 12px; border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
