/* Widget samping Concept Hub: kembali ke pilihan paket dan lihat isi paket.
   Hanya untuk contoh desain. Tidak ikut ke website final. */

.hub {
  --hub-bg: #0c1630;
  position: fixed;
  z-index: 70;
  right: 16px;
  top: calc(var(--nav-h, 72px) + 12px);
  width: 296px;
  max-height: calc(100vh - var(--nav-h, 72px) - 112px);
  max-height: calc(100svh - var(--nav-h, 72px) - 112px);
  display: flex;
  flex-direction: column;
  background: var(--hub-bg);
  color: #fffbf9;
  border: 1px solid rgba(232, 200, 112, 0.45);
  border-radius: 14px;
  box-shadow: 0 24px 60px -22px rgba(0, 0, 0, 0.7);
  font-family: var(--sans, system-ui, sans-serif);
  line-height: 1.45;
  transition: transform 0.45s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.hub[data-hidden="true"] { transform: translateX(calc(100% + 16px)); box-shadow: none; }

/* panah di tepi kiri panel, tetap terlihat saat panel disembunyikan */
.hub__handle {
  position: absolute;
  left: -34px;
  top: 18px;
  width: 34px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(232, 200, 112, 0.45);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: var(--hub-bg);
  color: #e8c870;
  cursor: pointer;
}
.hub__handle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}
.hub[data-hidden="true"] .hub__handle svg { transform: rotate(180deg); }
.hub__handle:focus-visible { outline: 3px solid #e8c870; outline-offset: 2px; }

.hub__head { display: grid; gap: 10px; padding: 14px 14px 12px; }
.hub__tier { margin: 0; font-weight: 700; font-size: 0.95rem; color: #e8c870; }
.hub__back {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  background: #e8c870;
  color: #12203f;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s;
}
.hub__back:hover { background: #f4dc9c; }
.hub__back:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.hub__panel {
  overflow-y: auto;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  overscroll-behavior: contain;
}
.hub__panel h3 {
  margin: 0 0 6px;
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  color: #e8c870;
}
.hub__panel h3 + ul + h3 { margin-top: 14px; }
.hub__panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.hub__panel li {
  position: relative;
  padding-left: 22px;
  font-size: 0.86rem;
  line-height: 1.4;
}
.hub__panel li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.32em;
  width: 11px;
  height: 6px;
  border-left: 2px solid #e8c870;
  border-bottom: 2px solid #e8c870;
  transform: rotate(-45deg);
}
.hub__no li { color: #b9c2db; }
.hub__no li::before {
  left: 2px;
  top: 0.62em;
  width: 10px;
  height: 0;
  border-left: 0;
  border-bottom: 2px solid #8c97b8;
  transform: none;
}
.hub__note { margin: 14px 0 0; font-size: 0.78rem; line-height: 1.5; color: #b9c2db; }

@media (max-width: 760px) {
  .hub { right: 10px; width: min(276px, calc(100vw - 64px)); }
  .hub[data-hidden="true"] { transform: translateX(calc(100% + 10px)); }
  .hub__head { padding: 12px 12px 10px; }
  .hub__panel { padding: 10px 12px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .hub, .hub__handle svg, .hub__back { transition: none; }
}
@media print { .hub { display: none; } }
