/* ============================================================================
   Hub Page Styles
   ============================================================================ */
.hub-body {
  min-height: 100%;
  overflow-x: hidden;
  background-image:
    radial-gradient(1200px 520px at 8% -15%, rgba(42, 197, 140, 0.38), transparent 58%),
    radial-gradient(900px 420px at 92% -10%, rgba(46, 110, 255, 0.42), transparent 58%),
    radial-gradient(760px 360px at 50% 10%, rgba(186, 112, 255, 0.32), transparent 62%),
    linear-gradient(180deg, #d7e8ff 0%, #eef2ff 52%, #dde6ff 100%);
  background-size: cover;
  background-attachment: fixed;
}

.hub-body #app {
  min-height: 100%;
}

.hub-wrap {
  min-height: calc(var(--app-vh, 100vh) - var(--dash-header-height, 0px));
  padding-block: clamp(20px, 2.8vw, 36px);
  padding-inline: clamp(16px, 2vw, 28px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  position: relative;
}

.hub-wrap-with-header {
  padding-top: clamp(18px, 2.2vw, 28px);
}

.hub-background-image {
  background-image:
    radial-gradient(1200px 520px at 8% -15%, rgba(42, 197, 140, 0.38), transparent 58%),
    radial-gradient(900px 420px at 92% -10%, rgba(46, 110, 255, 0.42), transparent 58%),
    radial-gradient(760px 360px at 50% 10%, rgba(186, 112, 255, 0.32), transparent 62%),
    linear-gradient(180deg, #d7e8ff 0%, #eef2ff 52%, #dde6ff 100%);
  background-size: cover;
  background-position: center;
}

.hub-background-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.1)),
    repeating-linear-gradient(
      45deg,
      rgba(31, 36, 48, 0.04) 0 1px,
      transparent 1px 8px
    );
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hub-wrap::before,
.hub-wrap::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.hub-wrap::before {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 111, 247, 0.18), transparent 70%);
  top: -140px;
  left: -140px;
}

.hub-wrap::after {
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 174, 255, 0.18), transparent 70%);
  bottom: -220px;
  right: -160px;
}

/* Grid */
.hub-grid {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  align-items: stretch;
  z-index: 1;
}

.hub-empty {
  margin-top: 28px;
  padding: 16px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(35, 44, 62, 0.12);
  color: rgba(31, 36, 48, 0.7);
  font-weight: 600;
}
