/* Widget samping: kembali ke Concept Hub dan daftar fitur paket (selalu terbuka). Bisa disembunyikan ke tepi layar. */
.hub {
  --hub-tx: 0px;
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translate(var(--hub-tx), -50%);
  z-index: 60;
  width: 308px;
  font-family: var(--sans, system-ui, sans-serif);
  line-height: 1.45;
  color: #fff;
  transition: transform 0.38s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hub[data-hidden="true"] {
  --hub-tx: calc(100% + 16px);
}

/* Kartu */
.hub__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 20px;
  background: rgba(10, 12, 16, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 70px -20px rgba(0, 0, 0, 0.7);
}

/* Tombol panah di tepi: sembunyikan dan tampilkan */
.hub__handle {
  position: absolute;
  left: -33px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 68px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-right: 0;
  border-radius: 14px 0 0 14px;
  background: rgba(10, 12, 16, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #00a3ea;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: -10px 14px 40px -16px rgba(0, 0, 0, 0.7);
  transition: background 0.25s, color 0.25s;
}
.hub__handle:hover {
  background: #00a3ea;
  color: #0a0c10;
}
.hub__handle span {
  display: block;
  transition: transform 0.3s;
}
.hub[data-hidden="true"] .hub__handle span {
  transform: rotate(180deg);
}

.hub__head {
  padding: 14px 14px 12px;
  display: grid;
  gap: 12px;
}
.hub__tier {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #00a3ea;
}
.hub__back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  background: #00a3ea;
  color: #0a0c10;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-transform: uppercase;
  text-align: center;
  transition: background 0.25s;
}
.hub__back:hover {
  background: #fff;
}
.hub__panel {
  max-height: min(60vh, 480px);
  overflow-y: auto;
  padding: 2px 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.hub__panel[hidden] {
  display: none;
}
.hub__panel h3 {
  margin: 14px 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.hub__panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.hub__panel li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.9);
}
.hub__panel li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 10px;
  height: 6px;
  border-left: 2px solid #00a3ea;
  border-bottom: 2px solid #00a3ea;
  transform: rotate(-45deg);
}
.hub__panel ul.hub__no li {
  color: rgba(255, 255, 255, 0.55);
}
.hub__panel ul.hub__no li::before {
  width: 10px;
  height: 0;
  top: 0.62em;
  border-left: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
  transform: none;
}
.hub__note {
  margin: 14px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 767px) {
  .hub {
    top: auto;
    bottom: 12px;
    right: 12px;
    transform: translateX(var(--hub-tx));
    width: min(308px, calc(100vw - 56px));
  }
  .hub[data-hidden="true"] {
    --hub-tx: calc(100% + 12px);
  }
  .hub__handle {
    top: auto;
    bottom: 12px;
    transform: none;
    height: 60px;
  }
  .hub__head {
    padding: 10px 10px 10px;
    gap: 8px;
  }
  .hub__tier {
    display: none;
  }
  .hub__back {
    padding: 10px 10px;
    font-size: 10.5px;
    letter-spacing: 0.02em;
  }
  .hub__panel {
    max-height: 40vh;
  }
}

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

@media print {
  .hub {
    display: none;
  }
}
