:root {
  --hbx-hub-bg: rgba(7, 18, 31, 0.86);
  --hbx-hub-panel: rgba(14, 31, 51, 0.88);
  --hbx-hub-card: rgba(255, 255, 255, 0.09);
  --hbx-hub-line: rgba(133, 226, 255, 0.24);
  --hbx-hub-cyan: #39d8ff;
  --hbx-hub-gold: #ffd166;
  --hbx-hub-green: #58f29d;
  --hbx-hub-red: #ff6b6b;
  --hbx-hub-text: #f7fbff;
  --hbx-hub-muted: #a8bfd2;
  --hbx-hub-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.hbx-hub-root,
.hbx-hub-root * {
  box-sizing: border-box;
  font-family: "Trebuchet MS", "Verdana", sans-serif;
}

.hbx-hub-launcher {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 99999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 138px;
  height: 48px;
  padding: 0 16px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: var(--hbx-hub-text);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 209, 102, 0.28), transparent 36%),
    linear-gradient(135deg, rgba(23, 74, 115, 0.95), rgba(7, 28, 52, 0.96));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35), 0 0 26px rgba(57, 216, 255, 0.22);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  animation: hbxHubFloat 3.2s ease-in-out infinite;
}

.hbx-hub-launcher:hover {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.1);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.44), 0 0 34px rgba(57, 216, 255, 0.35);
}

.hbx-hub-launcher-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--hbx-hub-gold), #ff9f43);
  color: #152033;
  font-size: 18px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.16);
}

.hbx-hub-launcher-title {
  display: block;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
}

.hbx-hub-launcher-sub {
  display: block;
  margin-top: 3px;
  color: var(--hbx-hub-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.hbx-hub-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 16% 18%, rgba(57, 216, 255, 0.18), transparent 30%),
    radial-gradient(circle at 84% 72%, rgba(255, 209, 102, 0.15), transparent 28%),
    rgba(1, 8, 15, 0.58);
  backdrop-filter: blur(8px);
}

.hbx-hub-root.is-open .hbx-hub-overlay {
  display: flex;
}

.hbx-hub-shell {
  position: relative;
  width: min(1040px, 96vw);
  max-height: min(720px, 92vh);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  color: var(--hbx-hub-text);
  background:
    linear-gradient(145deg, rgba(14, 32, 54, 0.97), rgba(5, 13, 26, 0.97)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 13px);
  box-shadow: var(--hbx-hub-shadow);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  animation: hbxHubIn 0.22s ease forwards;
}

.hbx-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--hbx-hub-line);
  background: linear-gradient(90deg, rgba(57, 216, 255, 0.1), rgba(255, 209, 102, 0.06));
}

.hbx-hub-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hbx-hub-logo {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--hbx-hub-cyan), var(--hbx-hub-gold));
  color: #071627;
  font-size: 27px;
  box-shadow: 0 14px 30px rgba(57, 216, 255, 0.18);
}

.hbx-hub-kicker {
  margin: 0 0 4px;
  color: var(--hbx-hub-gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hbx-hub-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}

.hbx-hub-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 14px;
  color: var(--hbx-hub-text);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-size: 22px;
}

.hbx-hub-body {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 540px;
}

.hbx-hub-tabs {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px;
  border-right: 1px solid var(--hbx-hub-line);
  background: rgba(0, 0, 0, 0.13);
}

.hbx-hub-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 15px;
  color: var(--hbx-hub-muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 900;
}

.hbx-hub-tab.is-active,
.hbx-hub-tab:hover {
  color: var(--hbx-hub-text);
  border-color: rgba(57, 216, 255, 0.3);
  background: rgba(57, 216, 255, 0.12);
}

.hbx-hub-content {
  min-width: 0;
  padding: 22px;
  overflow: auto;
}

.hbx-hub-panel {
  display: none;
}

.hbx-hub-panel.is-active {
  display: block;
}

.hbx-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hbx-hub-card {
  position: relative;
  overflow: hidden;
  min-height: 130px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background: var(--hbx-hub-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hbx-hub-card.is-wide {
  grid-column: span 2;
}

.hbx-hub-card.is-full {
  grid-column: 1 / -1;
}

.hbx-hub-card h3,
.hbx-hub-card h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.hbx-hub-card p {
  margin: 0;
  color: var(--hbx-hub-muted);
  font-size: 13px;
  line-height: 1.45;
}

.hbx-hub-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
}

.hbx-hub-stat strong {
  color: var(--hbx-hub-gold);
  font-size: 20px;
}

.hbx-hub-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  border: 0;
  border-radius: 14px;
  color: #071627;
  background: linear-gradient(135deg, var(--hbx-hub-cyan), #83f2ff);
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(57, 216, 255, 0.18);
}

.hbx-hub-button.is-gold {
  background: linear-gradient(135deg, var(--hbx-hub-gold), #ff9f43);
}

.hbx-hub-button.is-ghost {
  color: var(--hbx-hub-text);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.hbx-hub-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.hbx-hub-reward-row,
.hbx-hub-mission-row,
.hbx-hub-news-row,
.hbx-hub-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.hbx-hub-reward-row:last-child,
.hbx-hub-mission-row:last-child,
.hbx-hub-news-row:last-child,
.hbx-hub-status-row:last-child {
  border-bottom: 0;
}

.hbx-hub-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #071627;
  background: var(--hbx-hub-gold);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.hbx-hub-progress {
  width: 160px;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.hbx-hub-progress > span {
  display: block;
  height: 100%;
  width: var(--value, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--hbx-hub-cyan), var(--hbx-hub-green));
}

.hbx-hub-wheel-wrap {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 22px;
  align-items: center;
}

.hbx-hub-wheel {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(#39d8ff 0 45deg, #ffd166 45deg 90deg, #58f29d 90deg 135deg, #ff6b6b 135deg 180deg, #9b5cff 180deg 225deg, #ff9f43 225deg 270deg, #83f2ff 270deg 315deg, #ffffff 315deg 360deg);
  box-shadow: inset 0 0 0 13px rgba(7, 18, 31, 0.9), 0 18px 48px rgba(0, 0, 0, 0.34);
  transition: transform 2.4s cubic-bezier(0.15, 0.78, 0.18, 1);
}

.hbx-hub-wheel::before {
  content: "H";
  position: absolute;
  inset: 34%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #071627;
  background: linear-gradient(135deg, var(--hbx-hub-gold), var(--hbx-hub-cyan));
  font-size: 42px;
  font-weight: 900;
}

.hbx-hub-wheel-pointer {
  position: absolute;
  left: 50%;
  top: -2px;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 28px solid var(--hbx-hub-gold);
  z-index: 2;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.3));
}

.hbx-hub-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 100001;
  display: none;
  max-width: min(440px, calc(100vw - 32px));
  transform: translateX(-50%);
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  color: var(--hbx-hub-text);
  background: rgba(7, 18, 31, 0.94);
  box-shadow: var(--hbx-hub-shadow);
  font-weight: 900;
}

.hbx-hub-toast.is-visible {
  display: block;
  animation: hbxHubToast 2.7s ease forwards;
}

@keyframes hbxHubFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}

@keyframes hbxHubIn {
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes hbxHubToast {
  0% { opacity: 0; transform: translate(-50%, 12px); }
  12%, 86% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

@media (max-width: 820px) {
  .hbx-hub-launcher {
    right: 14px;
    bottom: 76px;
    min-width: 52px;
    padding: 0 10px;
  }

  .hbx-hub-launcher-copy {
    display: none;
  }

  .hbx-hub-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hbx-hub-tabs {
    flex-direction: row;
    overflow: auto;
    border-right: 0;
    border-bottom: 1px solid var(--hbx-hub-line);
  }

  .hbx-hub-tab {
    min-width: max-content;
  }

  .hbx-hub-grid,
  .hbx-hub-wheel-wrap {
    grid-template-columns: 1fr;
  }

  .hbx-hub-card.is-wide,
  .hbx-hub-card.is-full {
    grid-column: auto;
  }
}
/* Vibboza Hub Pack 2 additions */
.hbx-hub-root .hbx-hub-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.hbx-hub-root .hbx-hub-day {
  min-height: 116px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.hbx-hub-root .hbx-hub-day.is-today {
  border-color: rgba(255, 209, 102, 0.75);
  background: linear-gradient(145deg, rgba(255, 209, 102, 0.18), rgba(57, 216, 255, 0.1));
  box-shadow: 0 0 24px rgba(255, 209, 102, 0.14);
}

.hbx-hub-root .hbx-hub-day-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 22px;
}

.hbx-hub-root .hbx-hub-day strong,
.hbx-hub-root .hbx-hub-chest strong,
.hbx-hub-root .hbx-hub-fame strong,
.hbx-hub-root .hbx-hub-event strong {
  display: block;
  margin-bottom: 5px;
}

.hbx-hub-root .hbx-hub-chest-grid,
.hbx-hub-root .hbx-hub-fame-grid,
.hbx-hub-root .hbx-hub-event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.hbx-hub-root .hbx-hub-chest,
.hbx-hub-root .hbx-hub-fame,
.hbx-hub-root .hbx-hub-event {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(57, 216, 255, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.08);
}

.hbx-hub-root .hbx-hub-chest-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--hbx-hub-gold), #ff9f43);
  color: #071627;
  font-size: 30px;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.15);
}

.hbx-hub-root .hbx-hub-fame-rank {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  border-radius: 12px;
  color: #071627;
  background: var(--hbx-hub-gold);
  font-weight: 900;
}

.hbx-hub-root .hbx-hub-event-time {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(57, 216, 255, 0.16);
  color: var(--hbx-hub-cyan);
  font-size: 12px;
  font-weight: 900;
}

.hbx-hub-root .hbx-hub-notification-stack {
  position: fixed;
  right: 24px;
  top: 82px;
  z-index: 100002;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 28px));
  pointer-events: none;
}

.hbx-hub-root .hbx-hub-notification {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  color: var(--hbx-hub-text);
  background: rgba(7, 18, 31, 0.94);
  box-shadow: var(--hbx-hub-shadow);
  animation: hbxHubNoticeIn 0.24s ease forwards, hbxHubNoticeOut 0.35s ease 5.4s forwards;
}

.hbx-hub-root .hbx-hub-notification-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--hbx-hub-cyan), var(--hbx-hub-gold));
  color: #071627;
  font-size: 22px;
}

.hbx-hub-root .hbx-hub-notification h4 {
  margin: 0 0 3px;
  font-size: 14px;
}

.hbx-hub-root .hbx-hub-notification p {
  margin: 0;
  color: var(--hbx-hub-muted);
  font-size: 12px;
  line-height: 1.35;
}

@keyframes hbxHubNoticeIn {
  from { opacity: 0; transform: translateX(18px) scale(0.98); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes hbxHubNoticeOut {
  to { opacity: 0; transform: translateX(18px) scale(0.98); }
}

@media (max-width: 820px) {
  .hbx-hub-root .hbx-hub-mini-grid,
  .hbx-hub-root .hbx-hub-chest-grid,
  .hbx-hub-root .hbx-hub-fame-grid,
  .hbx-hub-root .hbx-hub-event-grid {
    grid-template-columns: 1fr;
  }

  .hbx-hub-root .hbx-hub-notification-stack {
    right: 14px;
    top: 70px;
  }
}

/* Vibboza Hub Radio NRJ */
.hbx-hub-root .hbx-radio-hero {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  align-items: center;
}

.hbx-hub-root .hbx-radio-disc {
  position: relative;
  display: grid;
  place-items: center;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(7, 18, 31, 1) 0 26%, transparent 27%),
    conic-gradient(from 0deg, #39d8ff, #ffd166, #ff6b6b, #9b5cff, #39d8ff);
  box-shadow: inset 0 0 0 14px rgba(255,255,255,0.08), 0 20px 50px rgba(0,0,0,0.38);
}

.hbx-hub-root .hbx-radio-disc.is-playing {
  animation: hbxRadioSpin 4.5s linear infinite;
}

.hbx-hub-root .hbx-radio-disc::after {
  content: "NRJ";
  position: absolute;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  color: #071627;
  background: linear-gradient(135deg, var(--hbx-hub-gold), var(--hbx-hub-cyan));
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.hbx-hub-root .hbx-radio-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--hbx-hub-green);
  background: rgba(88, 242, 157, 0.13);
  font-size: 12px;
  font-weight: 900;
}

.hbx-hub-root .hbx-radio-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hbx-hub-green);
  box-shadow: 0 0 14px var(--hbx-hub-green);
}

.hbx-hub-root .hbx-radio-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hbx-hub-root .hbx-radio-volume {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.09);
  color: var(--hbx-hub-muted);
  font-size: 12px;
  font-weight: 900;
}

.hbx-hub-root .hbx-radio-volume input {
  accent-color: var(--hbx-hub-cyan);
  width: 110px;
}

.hbx-hub-root .hbx-radio-note {
  margin-top: 14px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 209, 102, 0.1);
  color: var(--hbx-hub-muted);
  font-size: 12px;
  line-height: 1.45;
}

@keyframes hbxRadioSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 820px) {
  .hbx-hub-root .hbx-radio-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}
