/**
 * Hub v4 — full-flow hero + glass deck overlay + compact dashboard.
 */

body.hub-public-body--v4 {
  --hub-brand: var(--hub-primary, var(--hub-accent, #a78bfa));
  --hub-rail-w: 13.75rem;
  --hub-app-gap: 0.85rem;
  --hub-app-pad: clamp(0.75rem, 2vw, 1.25rem);
  --hub-deck-pull: clamp(4.25rem, 10vw, 6.75rem);
  --hub-surface: rgba(14, 14, 20, 0.72);
  --hub-surface-solid: rgba(14, 14, 20, 0.94);
  --hub-surface-2: rgba(255, 255, 255, 0.045);
  --hub-glass: rgba(18, 18, 26, 0.55);
  --hub-line: rgba(255, 255, 255, 0.09);
  --hub-text: rgba(255, 255, 255, 0.96);
  --hub-muted: rgba(148, 163, 184, 0.92);
  font-family: 'DM Sans', 'Noto Sans', system-ui, sans-serif;
}

[data-mantine-color-scheme="light"] body.hub-public-body--v4 {
  --hub-surface: rgba(255, 255, 255, 0.82);
  --hub-surface-solid: rgba(255, 255, 255, 0.97);
  --hub-surface-2: rgba(15, 23, 42, 0.04);
  --hub-glass: rgba(255, 255, 255, 0.72);
  --hub-line: rgba(15, 23, 42, 0.09);
  --hub-text: #0f172a;
  --hub-muted: #64748b;
}

/* Themed scrollbars — hub public + editor (not browser default) */
body.hub-public-body--v4,
body.hub-body--edit-v4 {
  --hub-scrollbar-size: 8px;
  --hub-scrollbar-thumb: color-mix(in srgb, var(--hub-accent) 42%, rgba(148, 163, 184, 0.4));
  --hub-scrollbar-thumb-hover: color-mix(in srgb, var(--hub-accent) 58%, rgba(148, 163, 184, 0.55));
  --hub-scrollbar-track: color-mix(in srgb, var(--hub-line) 55%, transparent);
  scrollbar-width: thin;
  scrollbar-color: var(--hub-scrollbar-thumb) var(--hub-scrollbar-track);
}

[data-mantine-color-scheme="light"] body.hub-public-body--v4,
[data-mantine-color-scheme="light"] body.hub-body--edit-v4 {
  --hub-scrollbar-thumb: color-mix(in srgb, var(--hub-accent) 36%, #94a3b8);
  --hub-scrollbar-thumb-hover: color-mix(in srgb, var(--hub-accent) 52%, #64748b);
  --hub-scrollbar-track: color-mix(in srgb, var(--hub-line) 75%, #f1f5f9);
}

body.hub-public-body--v4 *,
body.hub-body--edit-v4 * {
  scrollbar-width: thin;
  scrollbar-color: var(--hub-scrollbar-thumb) var(--hub-scrollbar-track);
}

body.hub-public-body--v4 ::-webkit-scrollbar,
body.hub-body--edit-v4 ::-webkit-scrollbar {
  width: var(--hub-scrollbar-size);
  height: var(--hub-scrollbar-size);
}

body.hub-public-body--v4 ::-webkit-scrollbar-track,
body.hub-body--edit-v4 ::-webkit-scrollbar-track {
  background: var(--hub-scrollbar-track);
  border-radius: 4px;
}

body.hub-public-body--v4 ::-webkit-scrollbar-thumb,
body.hub-body--edit-v4 ::-webkit-scrollbar-thumb {
  background: var(--hub-scrollbar-thumb);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

body.hub-public-body--v4 ::-webkit-scrollbar-thumb:hover,
body.hub-body--edit-v4 ::-webkit-scrollbar-thumb:hover {
  background: var(--hub-scrollbar-thumb-hover);
  background-clip: padding-box;
}

body.hub-public-body--v4 ::-webkit-scrollbar-corner,
body.hub-body--edit-v4 ::-webkit-scrollbar-corner {
  background: transparent;
}

body.hub-public-body--v4 .hub-public-hero-stack,
body.hub-public-body--v4 .hub-tab-dock,
body.hub-public-body--v4 .hub-public-cover__dock,
body.hub-public-body--v4 .hub-public-cover__actions,
body.hub-public-body--v4 .hub-section-intro--strip,
body.hub-public-body--v4 #site-dashboard-nav,
body.hub-public-body--v4 .nav-dashboard-float-cluster {
  display: none !important;
}

body.hub-public-body--v4 .dashboard-main.hub-main--public {
  padding-top: 0 !important;
}

body.hub-public-body--v4 .hub-public-stage-wrap {
  overflow-x: clip;
}

/* ═══ FULL-FLOW HERO ═══ */
.hub-flow {
  position: relative;
  width: 100%;
}

.hub-flow__hero {
  position: relative;
  width: 100%;
  min-height: clamp(14rem, 32vw, 22rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: var(--landing-bg-mid, #131316);
}

.hub-flow__hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hub-flow__hero-bg {
  position: absolute;
  inset: -20% -8% -50% -8%;
  background-size: cover;
  background-position: center 32%;
  background-repeat: no-repeat;
  transform: scale(1.08);
  transform-origin: center 38%;
  filter: saturate(1.06) contrast(1.03) blur(0.4px);
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 28%,
    rgba(0, 0, 0, 0.82) 52%,
    rgba(0, 0, 0, 0.35) 72%,
    transparent 92%
  );
  mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 28%,
    rgba(0, 0, 0, 0.82) 52%,
    rgba(0, 0, 0, 0.35) 72%,
    transparent 92%
  );
}

.hub-flow__hero-bg--mesh {
  inset: 0;
  transform: none;
  filter: none;
  -webkit-mask-image: none;
  mask-image: none;
  background:
    radial-gradient(ellipse 95% 75% at 12% 18%, color-mix(in srgb, var(--hub-accent) 42%, transparent), transparent 58%),
    radial-gradient(ellipse 80% 65% at 88% 12%, rgba(59, 130, 246, 0.35), transparent 52%),
    radial-gradient(ellipse 70% 55% at 50% 100%, rgba(139, 92, 246, 0.22), transparent 55%),
    linear-gradient(145deg, #08080e 0%, #12121c 38%, var(--landing-bg-mid, #131316) 100%);
}

.hub-flow__hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hub-flow__hero-glow {
  position: absolute;
  inset: auto 0 0 0;
  height: 70%;
  background:
    radial-gradient(ellipse 55% 80% at 18% 100%, color-mix(in srgb, var(--hub-accent) 35%, transparent), transparent 62%),
    radial-gradient(ellipse 45% 60% at 82% 90%, rgba(59, 130, 246, 0.18), transparent 55%);
  pointer-events: none;
}

.hub-flow__hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.42) 0%,
      rgba(0, 0, 0, 0.1) 30%,
      rgba(0, 0, 0, 0.38) 55%,
      rgba(10, 10, 14, 0.88) 72%,
      var(--landing-bg-mid, #131316) 100%
    ),
    linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, transparent 40%, transparent 60%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
}

.hub-flow__hero-feather {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 62%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(10, 10, 14, 0.25) 38%,
    color-mix(in srgb, var(--landing-bg-mid, #131316) 72%, transparent) 68%,
    var(--landing-bg-mid, #131316) 100%
  );
}

.hub-flow__hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(6.5rem, 18vw, 11rem);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    color-mix(in srgb, var(--landing-bg-mid, #131316) 55%, transparent) 45%,
    var(--landing-bg-mid, #131316) 100%
  );
}

[data-mantine-color-scheme="light"] .hub-flow__hero {
  background: var(--landing-bg-mid, #f8fafc);
}

[data-mantine-color-scheme="light"] .hub-flow__hero-scrim {
  background:
    linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.22) 0%,
      transparent 32%,
      rgba(241, 245, 249, 0.65) 68%,
      var(--landing-bg-mid, #f8fafc) 100%
    ),
    linear-gradient(90deg, rgba(15, 23, 42, 0.14) 0%, transparent 50%, rgba(15, 23, 42, 0.1) 100%);
}

[data-mantine-color-scheme="light"] .hub-flow__hero-feather {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(248, 250, 252, 0.35) 40%,
    color-mix(in srgb, var(--landing-bg-mid, #f8fafc) 78%, transparent) 70%,
    var(--landing-bg-mid, #f8fafc) 100%
  );
}

[data-mantine-color-scheme="light"] .hub-flow__hero::after {
  background: linear-gradient(
    180deg,
    transparent 0%,
    color-mix(in srgb, var(--landing-bg-mid, #f8fafc) 60%, transparent) 48%,
    var(--landing-bg-mid, #f8fafc) 100%
  );
}

.hub-flow__hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(1.25rem, 3.5vw, 2.25rem) var(--hub-app-pad) calc(var(--hub-deck-pull) + 1.25rem);
  box-sizing: border-box;
}

.hub-flow__identity {
  display: flex;
  align-items: flex-end;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  max-width: 72rem;
}

.hub-flow__avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.hub-flow__avatar-ring {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--hub-brand), var(--hub-accent), var(--hub-brand));
  opacity: 0.95;
  animation: hub-flow-ring 16s linear infinite;
}

@keyframes hub-flow-ring {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hub-flow__avatar-ring { animation: none; }
}

.hub-flow__avatar {
  position: relative;
  z-index: 1;
  width: clamp(5rem, 12vw, 7.5rem);
  height: clamp(5rem, 12vw, 7.5rem);
  border-radius: 50%;
  border: 4px solid rgba(10, 10, 14, 0.85);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 20px 50px -12px rgba(0, 0, 0, 0.75),
    0 0 40px color-mix(in srgb, var(--hub-accent) 25%, transparent);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #fff;
  background: linear-gradient(135deg, var(--hub-brand), var(--hub-accent));
}

.hub-flow__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-flow__copy {
  flex: 1;
  min-width: 0;
  padding-bottom: 0.15rem;
}

.hub-flow__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.hub-flow__page-pill {
  display: inline-flex;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f5f3ff;
  background: color-mix(in srgb, var(--hub-accent) 55%, rgba(0, 0, 0, 0.4));
  border: 1px solid color-mix(in srgb, var(--hub-accent) 50%, rgba(255, 255, 255, 0.15));
  box-shadow: 0 4px 16px color-mix(in srgb, var(--hub-accent) 30%, transparent);
}

.hub-flow__eyebrow-text {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

[data-mantine-color-scheme="light"] .hub-flow__eyebrow-text {
  color: var(--hub-muted);
}

.hub-flow__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.85rem;
  margin: 0;
  font-family: 'Outfit', 'DM Sans', system-ui, sans-serif;
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hub-flow__handle {
  flex: 0 1 auto;
}

.hub-flow__shop-name {
  flex: 0 1 auto;
  max-width: 100%;
  font-size: clamp(1.125rem, 3.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hub-flow__shop-name::before {
  content: '·';
  margin-right: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.42);
}

[data-mantine-color-scheme="light"] .hub-flow__title {
  color: var(--hub-text);
  text-shadow: none;
}

[data-mantine-color-scheme="light"] .hub-flow__shop-name {
  color: var(--hub-text);
  text-shadow: none;
}

[data-mantine-color-scheme="light"] .hub-flow__shop-name::before {
  color: var(--hub-muted);
}

.hub-flow__bio {
  margin: 0.45rem 0 0;
  max-width: 40rem;
  font-size: clamp(0.8125rem, 1.8vw, 0.9375rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.hub-flow__bio--muted {
  color: rgba(255, 255, 255, 0.58);
}

[data-mantine-color-scheme="light"] .hub-flow__bio,
[data-mantine-color-scheme="light"] .hub-flow__bio--muted {
  color: var(--hub-muted);
}

.hub-flow__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.hub-flow__chip {
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.hub-flow__chip--role {
  background: color-mix(in srgb, var(--hub-accent) 38%, rgba(0, 0, 0, 0.45));
  border-color: color-mix(in srgb, var(--hub-accent) 48%, transparent);
}

[data-mantine-color-scheme="light"] .hub-flow__chip {
  background: rgba(255, 255, 255, 0.85);
  border-color: #e2e8f0;
  color: #475569;
}

/* Deck overlaps hero */
.hub-flow__deck {
  position: relative;
  z-index: 3;
  margin-top: calc(-1 * var(--hub-deck-pull));
  padding: 0 var(--hub-app-pad) var(--hub-app-pad);
}

body.hub-public-body--v4 .hub-flow .hub-public-stage {
  padding: 0;
}

body.hub-public-body--v4 .hub-flow .hub-public-stage__content {
  padding: 0;
}

@media (max-width: 40rem) {
  .hub-flow__identity {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hub-flow__chips {
    justify-content: center;
  }
}

/* ═══ APP GRID ═══ */
.hub-app {
  display: grid;
  grid-template-columns: var(--hub-rail-w) minmax(0, 1fr);
  gap: var(--hub-app-gap);
  width: 100%;
  align-items: start;
}

@media (max-width: 56rem) {
  .hub-app {
    grid-template-columns: 1fr;
  }
}

/* Glass rail */
.hub-app__rail {
  position: sticky;
  top: calc(var(--landing-nav-offset, 5rem) + 0.35rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 16px;
  border: 1px solid var(--hub-line);
  background: var(--hub-glass);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  box-shadow:
    0 16px 48px -20px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  max-height: calc(100vh - var(--landing-nav-offset, 5rem) - 1rem);
  overflow-y: auto;
}

body.hub-public-body--v4 .hub-app__rail {
  top: calc(var(--landing-nav-offset, 5rem) + 0.35rem);
}

[data-mantine-color-scheme="light"] .hub-app__rail {
  box-shadow: 0 12px 40px -16px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-mantine-color-scheme="light"] .hub-kpi,
[data-mantine-color-scheme="light"] .hub-panel,
[data-mantine-color-scheme="light"] .hub-lic-cell,
[data-mantine-color-scheme="light"] .hub-ref-mini {
  box-shadow: 0 8px 24px -16px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hub-app__rail-head {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--hub-line);
}

.hub-app__rail-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hub-muted);
}

.hub-app__rail-user {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--hub-text);
}

.hub-app__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

@media (max-width: 56rem) {
  .hub-app__rail {
    position: relative;
    top: 0;
    max-height: none;
  }
  .hub-app__nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--hub-scrollbar-thumb) var(--hub-scrollbar-track);
    padding-bottom: 0.15rem;
  }
}

.hub-app__nav-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--hub-muted);
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.15s ease, border-color 0.18s ease, transform 0.12s ease;
  white-space: nowrap;
}

.hub-app__nav-link:hover {
  color: var(--hub-text);
  background: var(--hub-surface-2);
  border-color: var(--hub-line);
  transform: translateX(2px);
}

.hub-app__nav-link--active {
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--hub-accent) 75%, #1e1b4b), var(--hub-accent));
  border-color: color-mix(in srgb, var(--hub-accent) 50%, transparent);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--hub-accent) 35%, transparent);
}

[data-mantine-color-scheme="light"] .hub-app__nav-link--active {
  color: #fff;
}

.hub-app__nav-link--edit {
  margin-top: 0.15rem;
  border-style: dashed;
  color: color-mix(in srgb, var(--hub-accent) 35%, #e9d5ff);
  border-color: color-mix(in srgb, var(--hub-accent) 28%, var(--hub-line));
}

.hub-app__nav-ic {
  display: inline-flex;
  width: 1.125rem;
  height: 1.125rem;
  opacity: 0.9;
  flex-shrink: 0;
}

.hub-app__nav-ic svg {
  width: 100%;
  height: 100%;
}

.hub-app__main {
  min-width: 0;
}

.hub-app__content {
  padding: 0.85rem 1rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--hub-line);
  background: var(--hub-surface);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  box-shadow:
    0 20px 56px -24px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-mantine-color-scheme="light"] .hub-app__content {
  box-shadow: 0 16px 48px -20px rgba(15, 23, 42, 0.1);
}

/* Page head */
.hub-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--hub-line);
}

.hub-page-head__title {
  margin: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--hub-text);
}

.hub-page-head__meta {
  font-size: 0.75rem;
  color: var(--hub-muted);
}

.hub-page-head__badge {
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--hub-accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--hub-accent) 30%, transparent);
  color: color-mix(in srgb, var(--hub-accent) 25%, #fff);
}

.hub-page-head__cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.85rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--hub-accent) 90%, #fff), var(--hub-accent));
  box-shadow: 0 6px 18px color-mix(in srgb, var(--hub-accent) 38%, transparent);
  transition: filter 0.15s ease, transform 0.12s ease;
}

.hub-page-head__cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Dashboard */
.hub-dash {
  display: grid;
  gap: 0.75rem;
}

.hub-dash__kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

@media (max-width: 40rem) {
  .hub-dash__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.hub-kpi {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.8rem 0.85rem 0.75rem;
  border-radius: 14px;
  border: 1px solid var(--hub-line);
  background: var(--hub-glass);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  overflow: hidden;
  box-shadow:
    0 12px 36px -22px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.hub-kpi::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--hub-brand), var(--hub-accent));
  opacity: 0.85;
}

.hub-kpi:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--hub-brand) 24%, var(--hub-line));
}

.hub-kpi__head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.hub-kpi__ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 8px;
  flex-shrink: 0;
  color: color-mix(in srgb, var(--hub-brand) 70%, #fff);
  background: color-mix(in srgb, var(--hub-brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--hub-brand) 20%, transparent);
}

.hub-kpi__ic svg {
  width: 0.9rem;
  height: 0.9rem;
}

.hub-kpi__val {
  display: block;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--hub-brand);
}

.hub-kpi__lab {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hub-muted);
  white-space: nowrap;
}

.hub-dash__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 52rem) {
  .hub-dash__grid { grid-template-columns: 1fr; }
}

.hub-panel {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--hub-line);
  background: var(--hub-glass);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  padding: 0.95rem 1rem;
  box-shadow:
    0 12px 36px -22px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}

.hub-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--hub-brand), var(--hub-accent));
  opacity: 0.75;
}

.hub-panel:hover {
  border-color: color-mix(in srgb, var(--hub-brand) 22%, var(--hub-line));
}

.hub-panel__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--hub-text);
}

.hub-panel__icon {
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: color-mix(in srgb, var(--hub-brand) 55%, #fff);
  background: color-mix(in srgb, var(--hub-brand) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--hub-brand) 22%, transparent);
}

.hub-lic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (max-width: 30rem) {
  .hub-lic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.hub-lic-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  padding: 0.7rem 0.45rem 0.6rem;
  border-radius: 12px;
  border: 1px solid var(--hub-line);
  background: var(--hub-glass);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  text-align: center;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.hub-lic-cell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--hub-brand), var(--hub-accent));
  opacity: 0.8;
}

.hub-lic-cell:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--hub-brand) 22%, var(--hub-line));
}

.hub-lic-cell__ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 7px;
  color: color-mix(in srgb, var(--hub-brand) 65%, #fff);
  background: color-mix(in srgb, var(--hub-brand) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--hub-brand) 18%, transparent);
}

.hub-lic-cell__ic svg {
  width: 0.8rem;
  height: 0.8rem;
}

.hub-lic-cell__val {
  display: block;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--hub-brand);
}

.hub-lic-cell__lab {
  display: block;
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--hub-muted);
}

.hub-kv {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--hub-line);
  font-size: 0.8125rem;
}

.hub-kv:last-child { border-bottom: none; }
.hub-kv__key { color: var(--hub-muted); }
.hub-kv__val { color: var(--hub-text); font-weight: 500; text-align: right; }
.hub-kv__val a { color: var(--hub-brand); text-decoration: none; }

.hub-ref-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.hub-ref-mini {
  position: relative;
  padding: 0.6rem 0.55rem 0.55rem;
  border-radius: 12px;
  background: var(--hub-glass);
  border: 1px solid var(--hub-line);
  text-align: center;
  overflow: hidden;
}

.hub-ref-mini::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--hub-brand), var(--hub-accent));
  opacity: 0.75;
}

.hub-ref-mini__num {
  display: block;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--hub-brand);
}

.hub-ref-mini__lab {
  font-size: 0.5625rem;
  color: var(--hub-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hub-ref-copy {
  display: flex;
  gap: 0.4rem;
}

.hub-ref-copy input {
  flex: 1;
  min-width: 0;
  padding: 0.48rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--hub-line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--hub-text);
  font-size: 0.6875rem;
}

[data-mantine-color-scheme="light"] .hub-ref-copy input {
  background: #f8fafc;
}

.hub-ref-copy button {
  padding: 0.48rem 0.75rem;
  border-radius: 10px;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--hub-brand), var(--hub-accent));
}

.hub-proj-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.75rem;
}

.hub-proj-table th,
.hub-proj-table td {
  padding: 0.42rem 0.4rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--hub-line);
}

.hub-proj-table th:nth-child(1),
.hub-proj-table td:nth-child(1) { width: 28%; }
.hub-proj-table th:nth-child(2),
.hub-proj-table td:nth-child(2) { width: 22%; }
.hub-proj-table th:nth-child(3),
.hub-proj-table td:nth-child(3) { width: 18%; }
.hub-proj-table th:nth-child(4),
.hub-proj-table td:nth-child(4) { width: 32%; }

.hub-proj-table th {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hub-muted);
  padding-bottom: 0.35rem;
}

.hub-proj-table tr:last-child td { border-bottom: none; }
.hub-proj-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.hub-panel__sub {
  margin: -0.15rem 0 0.65rem;
  font-size: 0.6875rem;
  line-height: 1.45;
  color: var(--hub-muted);
}

.hub-proj-table__masked {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hub-proj-table__name-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  flex-wrap: wrap;
}

.hub-proj-table__idx {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hub-muted);
  opacity: 0.7;
  flex-shrink: 0;
}

.hub-proj-table__activity {
  white-space: nowrap;
}

.hub-proj-activity {
  display: inline;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hub-proj-activity--high {
  color: color-mix(in srgb, var(--hub-brand) 70%, #fff);
}
.hub-proj-activity--med {
  color: color-mix(in srgb, var(--hub-accent) 65%, #fff);
}
.hub-proj-activity--low,
.hub-proj-activity--none {
  color: var(--hub-muted);
}

.hub-proj-activity-bar {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.35rem;
  width: 2.75rem;
  height: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hub-line) 80%, transparent);
  overflow: hidden;
}

.hub-proj-activity-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--hub-brand), var(--hub-accent));
}

.hub-proj-scale {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--hub-text);
}

.hub-proj-table__masked--owner {
  color: var(--hub-text);
}

.hub-proj-table__scale {
  white-space: nowrap;
}

.hub-proj-health {
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
  align-items: center;
}

.hub-proj-health__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.14rem 0.38rem;
  border-radius: 999px;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--hub-brand) 18%, var(--hub-line));
  background: color-mix(in srgb, var(--hub-brand) 6%, transparent);
  color: var(--hub-muted);
  line-height: 1.15;
}

.hub-proj-health__chip--ok {
  color: color-mix(in srgb, var(--hub-brand) 55%, #fff);
  border-color: color-mix(in srgb, var(--hub-brand) 28%, var(--hub-line));
}

.hub-proj-health__chip--ban,
.hub-proj-health__chip--exp,
.hub-proj-health__chip--pend {
  color: color-mix(in srgb, var(--hub-accent) 50%, var(--hub-muted));
  border-color: color-mix(in srgb, var(--hub-accent) 22%, var(--hub-line));
}

.hub-proj-health__count {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--hub-text);
}

.hub-proj-keys--compact {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  min-width: 0;
}

.hub-proj-keys__total {
  font-size: 0.8125rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--hub-brand) 65%, #fff);
  line-height: 1;
  flex-shrink: 0;
}

.hub-proj-keys__pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.18rem;
  align-items: center;
  min-width: 0;
}

.hub-proj-keys__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  padding: 0.1rem 0.3rem;
  border-radius: 5px;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--hub-brand) 16%, var(--hub-line));
  background: color-mix(in srgb, var(--hub-brand) 5%, transparent);
  color: var(--hub-muted);
  line-height: 1.2;
}

.hub-proj-keys__pill strong {
  font-weight: 800;
  color: var(--hub-text);
}

.hub-proj-keys__pill--ban,
.hub-proj-keys__pill--exp {
  border-color: color-mix(in srgb, var(--hub-accent) 24%, var(--hub-line));
  color: color-mix(in srgb, var(--hub-accent) 45%, var(--hub-muted));
}

.hub-kv__val--muted {
  color: var(--hub-muted);
  font-size: 0.8125rem;
}

.hub-kv__val--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.hub-profile-staff-banner,
.hub-profile-owner-banner {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.6875rem;
  line-height: 1.45;
  border: 1px solid color-mix(in srgb, var(--hub-brand) 22%, var(--hub-line));
  background: color-mix(in srgb, var(--hub-brand) 8%, transparent);
  color: var(--hub-muted);
}

.hub-profile-staff-banner {
  color: color-mix(in srgb, var(--hub-accent) 55%, #fff);
  border-color: color-mix(in srgb, var(--hub-accent) 28%, var(--hub-line));
  background: color-mix(in srgb, var(--hub-accent) 10%, transparent);
}

.hub-privacy-field.ag-privacy-field {
  cursor: pointer;
}

/* Links — v4 panels (matches profile dashboard) */
.hub-dash--links {
  gap: 0.75rem;
}

.hub-dash__grid--links {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  align-items: start;
}

@media (max-width: 52rem) {
  .hub-dash__grid--links {
    grid-template-columns: 1fr;
  }
}

.hub-links-prose {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--hub-line);
  background: color-mix(in srgb, var(--hub-brand) 4%, transparent);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--hub-muted);
}

.hub-panel--empty {
  text-align: center;
  padding: 1.25rem 1rem;
}

.hub-panel--discord .hub-panel__icon {
  color: #5865f2;
  background: color-mix(in srgb, #5865f2 14%, transparent);
  border-color: color-mix(in srgb, #5865f2 24%, transparent);
}

.hub-discord-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hub-discord-invite {
  --discord-accent: #5865f2;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--discord-accent) 22%, var(--hub-line));
  background: color-mix(in srgb, var(--discord-accent) 6%, var(--hub-glass));
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.hub-discord-invite::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--discord-accent), color-mix(in srgb, var(--discord-accent) 40%, var(--hub-accent)));
  opacity: 0.85;
}

.hub-discord-invite:hover {
  border-color: color-mix(in srgb, var(--discord-accent) 40%, var(--hub-line));
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -14px color-mix(in srgb, var(--discord-accent) 35%, transparent);
}

.hub-discord-invite__ic {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: color-mix(in srgb, var(--discord-accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--discord-accent) 28%, transparent);
}

.hub-discord-invite__ic svg {
  width: 1.1rem;
  height: 1.1rem;
}

.hub-discord-invite__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.hub-discord-invite__label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--hub-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hub-discord-invite__hint {
  font-size: 0.6875rem;
  color: var(--hub-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hub-discord-invite__join {
  flex-shrink: 0;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--discord-accent) 88%, #fff), var(--discord-accent));
}

.hub-discord-compact {
  --discord-accent: #5865f2;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--hub-line);
  background: var(--hub-glass);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.hub-discord-compact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--discord-accent), color-mix(in srgb, var(--discord-accent) 40%, var(--hub-accent)));
  opacity: 0.9;
}

.hub-discord-compact::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 120% at 0% 0%, color-mix(in srgb, var(--discord-accent) 12%, transparent), transparent 55%);
  pointer-events: none;
}

.hub-discord-compact:hover {
  border-color: color-mix(in srgb, var(--discord-accent) 35%, var(--hub-line));
  transform: translateY(-1px);
}

.hub-discord-compact__main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.hub-discord-compact__main:hover .hub-discord-compact__name {
  color: color-mix(in srgb, var(--discord-accent) 55%, #fff);
}

.hub-discord-compact__avatar-wrap {
  flex-shrink: 0;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--discord-accent), color-mix(in srgb, var(--discord-accent) 35%, #fff));
}

.hub-discord-compact__avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--hub-surface-solid);
}

.hub-discord-compact__body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.hub-discord-compact__eyebrow {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--hub-muted);
}

.hub-discord-compact__name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--hub-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hub-discord-compact__handle {
  font-size: 0.6875rem;
  color: var(--hub-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hub-discord-compact__id-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.1rem;
}

.hub-discord-compact__id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.625rem;
  color: color-mix(in srgb, var(--hub-text) 75%, var(--hub-muted));
  background: color-mix(in srgb, var(--hub-brand) 6%, transparent);
  padding: 0.12rem 0.35rem;
  border-radius: 5px;
  border: 1px solid var(--hub-line);
}

.hub-discord-compact__copy {
  font-size: 0.5625rem;
  font-weight: 600;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--discord-accent) 28%, var(--hub-line));
  background: color-mix(in srgb, var(--discord-accent) 10%, transparent);
  color: var(--hub-text);
  cursor: pointer;
  transition: background 0.12s ease;
}

.hub-discord-compact__copy:hover {
  background: color-mix(in srgb, var(--discord-accent) 18%, transparent);
}

.hub-discord-compact__actions {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.hub-discord-compact__open {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.7rem;
  border-radius: 9px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--discord-accent) 88%, #fff), var(--discord-accent));
  box-shadow: 0 4px 14px color-mix(in srgb, var(--discord-accent) 32%, transparent);
  transition: filter 0.12s ease, transform 0.12s ease;
}

.hub-discord-compact__open:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

@media (max-width: 32rem) {
  .hub-discord-compact {
    flex-wrap: wrap;
  }

  .hub-discord-compact__actions {
    width: 100%;
  }

  .hub-discord-compact__open {
    width: 100%;
    justify-content: center;
  }
}

body.hub-public-body--v4 .hub-links-grid,
body.hub-public-body--v4 .hub-public-profile-root .hub-links-live__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  align-items: stretch;
}

@media (min-width: 40rem) {
  body.hub-public-body--v4 .hub-links-grid,
  body.hub-public-body--v4 .hub-public-profile-root .hub-links-live__links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
  }
}

@media (min-width: 62rem) {
  body.hub-public-body--v4 .hub-links-grid,
  body.hub-public-body--v4 .hub-public-profile-root .hub-links-live__links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

body.hub-public-body--v4 .hub-link-card {
  --link-accent: var(--hub-brand);
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.85rem;
  padding: 0.65rem 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--hub-line);
  background: var(--hub-glass);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

body.hub-public-body--v4 .hub-link-card[data-svc="discord"],
body.hub-public-body--v4 .hub-link-card[data-svc="discord_invite"] { --link-accent: #5865f2; }
body.hub-public-body--v4 .hub-link-card[data-svc="youtube"] { --link-accent: #ff0000; }
body.hub-public-body--v4 .hub-link-card[data-svc="x"] { --link-accent: #e7e9ea; }
body.hub-public-body--v4 .hub-link-card[data-svc="instagram"] { --link-accent: #e4405f; }
body.hub-public-body--v4 .hub-link-card[data-svc="tiktok"] { --link-accent: #25f4ee; }
body.hub-public-body--v4 .hub-link-card[data-svc="github"] { --link-accent: #8b949e; }
body.hub-public-body--v4 .hub-link-card[data-svc="telegram"] { --link-accent: #26a5e4; }
body.hub-public-body--v4 .hub-link-card[data-svc="twitch"] { --link-accent: #9146ff; }
body.hub-public-body--v4 .hub-link-card[data-svc="facebook"] { --link-accent: #1877f2; }
body.hub-public-body--v4 .hub-link-card[data-svc="patreon"] { --link-accent: #ff424d; }

body.hub-public-body--v4 .hub-link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--link-accent), color-mix(in srgb, var(--link-accent) 35%, var(--hub-accent)));
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

body.hub-public-body--v4 .hub-link-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 80% at 0% 0%, color-mix(in srgb, var(--link-accent) 10%, transparent), transparent 58%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

body.hub-public-body--v4 .hub-link-card:hover {
  border-color: color-mix(in srgb, var(--link-accent) 32%, var(--hub-line));
  transform: translateY(-2px);
  box-shadow:
    0 10px 26px -16px color-mix(in srgb, var(--link-accent) 40%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.hub-public-body--v4 .hub-link-card:hover::before {
  opacity: 1;
}

body.hub-public-body--v4 .hub-link-card:hover::after {
  opacity: 1;
}

body.hub-public-body--v4 .hub-link-card__ic {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: color-mix(in srgb, var(--link-accent) 70%, #fff);
  background: color-mix(in srgb, var(--link-accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--link-accent) 24%, transparent);
}

body.hub-public-body--v4 .hub-link-card__ic svg {
  width: 1.15rem;
  height: 1.15rem;
}

body.hub-public-body--v4 .hub-link-card__body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
}

body.hub-public-body--v4 .hub-link-card__label {
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.25;
  color: var(--hub-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.hub-public-body--v4 .hub-link-card__hint {
  font-size: 0.6875rem;
  color: var(--hub-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.hub-public-body--v4 .hub-link-card__arrow {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 8px;
  color: var(--hub-muted);
  background: color-mix(in srgb, var(--link-accent) 6%, transparent);
  opacity: 0.7;
  transition: opacity 0.12s ease, color 0.12s ease, background 0.12s ease;
}

body.hub-public-body--v4 .hub-link-card:hover .hub-link-card__arrow {
  opacity: 1;
  color: color-mix(in srgb, var(--link-accent) 65%, #fff);
  background: color-mix(in srgb, var(--link-accent) 14%, transparent);
}

/* Status — compact live board */
.hub-dash--status {
  gap: 0.75rem;
}

.hub-panel--status .hub-panel__icon {
  color: color-mix(in srgb, var(--hub-accent) 55%, #fff);
}

.hub-status-mix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

@media (min-width: 40rem) {
  .hub-status-mix {
    grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
    max-width: 36rem;
  }
}

.hub-status-mix__cell {
  --status-c: #94a3b8;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.62rem 0.4rem 0.55rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--status-c) 24%, var(--hub-line));
  background: color-mix(in srgb, var(--status-c) 6%, var(--hub-glass));
  text-align: center;
  overflow: hidden;
}

.hub-status-mix__cell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--status-c), color-mix(in srgb, var(--status-c) 35%, var(--hub-accent)));
  opacity: 0.9;
}

.hub-status-mix__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--status-c);
  box-shadow: 0 0 8px color-mix(in srgb, var(--status-c) 50%, transparent);
  animation: hub-status-pulse 2.2s ease-out infinite;
}

.hub-status-mix__val {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  color: color-mix(in srgb, var(--status-c) 55%, #fff);
}

.hub-status-mix__lab {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hub-muted);
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-status-board {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hub-status-block {
  --status-c: #94a3b8;
  border-radius: 12px;
  border: 1px solid var(--hub-line);
  background: color-mix(in srgb, var(--status-c) 3%, transparent);
  overflow: hidden;
}

.hub-status-block__head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid color-mix(in srgb, var(--status-c) 18%, var(--hub-line));
  background: color-mix(in srgb, var(--status-c) 8%, transparent);
}

.hub-status-block__dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--status-c);
  box-shadow: 0 0 8px color-mix(in srgb, var(--status-c) 55%, transparent);
  flex-shrink: 0;
}

.hub-status-block__label {
  flex: 1;
  min-width: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--hub-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hub-status-block__count {
  flex-shrink: 0;
  min-width: 1.25rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  text-align: center;
  background: color-mix(in srgb, var(--status-c) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--status-c) 30%, transparent);
  color: color-mix(in srgb, var(--status-c) 35%, #fff);
}

.hub-status-block__list {
  display: flex;
  flex-direction: column;
}

.hub-status-row {
  --status-c: #94a3b8;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--hub-line);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.hub-status-row:last-child {
  border-bottom: none;
}

.hub-status-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--status-c);
  opacity: 0;
  transition: opacity 0.12s ease;
}

.hub-status-row:hover {
  background: color-mix(in srgb, var(--status-c) 6%, transparent);
}

.hub-status-row:hover::before {
  opacity: 0.85;
}

.hub-status-row__idx {
  flex-shrink: 0;
  width: 1.15rem;
  font-size: 0.5625rem;
  font-weight: 700;
  color: var(--hub-muted);
  text-align: center;
  opacity: 0.65;
}

.hub-status-row__thumb {
  flex-shrink: 0;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--status-c) 22%, var(--hub-line));
  background: color-mix(in srgb, var(--status-c) 10%, var(--hub-surface-solid));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-status-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hub-status-row__letter {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: color-mix(in srgb, var(--status-c) 55%, #fff);
}

.hub-status-row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hub-status-row__name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hub-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hub-status-row__deal {
  flex-shrink: 0;
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--hub-accent) 40%, #fff);
  background: color-mix(in srgb, var(--hub-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--hub-accent) 22%, transparent);
}

.hub-status-row__price {
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  font-variant-numeric: tabular-nums;
}

.hub-status-row__slash {
  font-size: 0.625rem;
  color: var(--hub-muted);
  text-decoration: line-through;
}

.hub-status-row__now {
  font-size: 0.75rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--hub-brand) 45%, #fff);
}

.hub-status-row__go {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 7px;
  color: var(--hub-muted);
  opacity: 0.45;
  transition: opacity 0.12s ease, color 0.12s ease, background 0.12s ease;
}

.hub-status-row:hover .hub-status-row__go {
  opacity: 1;
  color: color-mix(in srgb, var(--status-c) 60%, #fff);
  background: color-mix(in srgb, var(--status-c) 10%, transparent);
}

@keyframes hub-status-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--status-c, #94a3b8) 55%, transparent); }
  70% { box-shadow: 0 0 0 6px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hub-status-empty__title {
  margin: 0 0 0.35rem;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--hub-text);
}

.hub-status-empty__cta {
  margin: 0.85rem auto 0;
  display: inline-flex;
}

body.hub-public-body--v4 .hub-page__mesh { display: none; }
body.hub-public-body--v4 .hub-market-live__context-card { display: none; }
body.hub-public-body--v4 .hub-page-head__extra { margin-bottom: 0.65rem; }
body.hub-public-body--v4 .hub-page-head__extra:empty { display: none; }

body.hub-public-body--v4 .hub-public-profile-root .profile-section {
  padding: 0;
  background: transparent;
  border: none;
  margin: 0;
}

/* Product pages */
body.hub-public-body--v4.hub-public-body--product-detail .hub-public-hero-stack {
  display: block !important;
}

body.hub-public-body--v4.hub-public-body--product-detail .hub-flow {
  display: none;
}

/* Market — v4 dashboard panels */
.hub-dash--market {
  gap: 0.75rem;
}

.hub-market-mix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: 0.5rem;
  max-width: 24rem;
}

.hub-market-mix__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.62rem 0.4rem 0.55rem;
  border-radius: 12px;
  border: 1px solid var(--hub-line);
  background: var(--hub-glass);
  text-align: center;
}

.hub-market-mix__cell--accent {
  border-color: color-mix(in srgb, var(--hub-accent) 28%, var(--hub-line));
  background: color-mix(in srgb, var(--hub-accent) 8%, var(--hub-glass));
}

.hub-market-mix__val {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  color: color-mix(in srgb, var(--hub-accent) 55%, #fff);
}

.hub-market-mix__val--text {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hub-market-mix__lab {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hub-muted);
}

.hub-panel--market-filters .hub-market-filters {
  margin: 0;
}

.hub-panel--market-filters .hub-market-filters__bar {
  border: none;
  background: transparent;
  padding: 0;
}

.hub-panel--market-listings .hub-product-grid--public {
  margin-top: 0;
}

/* Reviews — v4 */
.hub-dash--feedback {
  gap: 0.75rem;
}

.hub-fb-page__layout--v4 {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

@media (max-width: 52rem) {
  .hub-fb-page__layout--v4 {
    grid-template-columns: 1fr;
  }
}

.hub-panel--feedback-summary .hub-sat__card {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.hub-panel--feedback-feed .hub-fb-feed {
  margin: 0;
}

body.hub-public-body--v4.hub-public-body--feedback-full .hub-page--feedback {
  width: 100%;
}

/* Hub editor — v4 (matches public profile shell) */
body.hub-body--edit-v4.hub-public-body--v4 .hub-main--edit-v4 {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.hub-body--edit-v4 .hub-flow--edit .hub-flow__deck {
  margin-top: calc(-1 * var(--hub-deck-pull, 2.5rem));
}

body.hub-body--edit-v4 .hub-flow--edit .hub-public-stage,
body.hub-body--edit-v4 .hub-flow--edit .hub-public-stage__content {
  width: 100%;
  max-width: none;
}

body.hub-body--edit-v4 .hub-app--edit .hub-app__rail--edit.hub-edit-rail {
  gap: 0;
  display: flex;
  flex-direction: column;
}

body.hub-body--edit-v4 .hub-app--edit .hub-app__rail--edit:not(.hub-edit-rail) {
  gap: 0.65rem;
}

/* Legacy edit rail markup — keep readable until cache clears */
body.hub-body--edit-v4 .hub-app__rail--edit:not(.hub-edit-rail) .hub-app__nav-link {
  padding: 0.4rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 9px;
}

body.hub-body--edit-v4 .hub-app__rail--edit:not(.hub-edit-rail) .hub-app__nav-link__desc {
  font-size: 0.5625rem;
}

body.hub-body--edit-v4 .hub-app__rail--edit:not(.hub-edit-rail) .hub-edit-rail-live__link {
  min-height: 1.55rem;
  font-size: 0.65rem;
}

.hub-edit-rail-live {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--hub-line);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hub-edit-rail-live__label {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hub-muted);
}

.hub-edit-rail-live__link {
  display: flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 0.28rem 0.48rem;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--hub-muted);
  border: 1px solid transparent;
  transition: color 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.hub-edit-rail-live__link:hover {
  color: var(--hub-text);
  background: color-mix(in srgb, var(--hub-brand) 8%, transparent);
  border-color: var(--hub-line);
}

.hub-edit-rail-live__link--dash {
  margin-top: 0.15rem;
  color: color-mix(in srgb, var(--hub-accent) 55%, #fff);
}

.hub-dash--edit {
  gap: 0.75rem;
}

body.hub-body--edit-v4 .hub-edit-board--v4 {
  /* Canvas card — see edit_theme.css */
}

body.hub-body--edit-v4 .hub-edit-board--v4::before {
  display: none;
}

body.hub-body--edit-v4 .hub-edit-board--v4 .hub-settings-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  grid-template-columns: unset !important;
}

body.hub-body--edit-v4 .hub-edit-board--v4 .hub-settings-card--full {
  grid-column: auto !important;
}

body.hub-body--edit-v4 .hub-settings-card {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--hub-line);
  background: var(--hub-glass);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  padding: 0.95rem 1rem;
  box-shadow: 0 12px 36px -22px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

body.hub-body--edit-v4 .hub-settings-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--hub-brand), var(--hub-accent));
  opacity: 0.75;
}

body.hub-body--edit-v4 .hub-settings-card__header {
  margin-bottom: 0.65rem;
  padding-bottom: 0;
  border: none;
}

body.hub-body--edit-v4 .hub-settings-card__title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--hub-text);
}

body.hub-body--edit-v4 .hub-settings-card__title::before {
  display: none;
}

body.hub-body--edit-v4 .hub-settings-card__desc {
  margin: 0.25rem 0 0;
  font-size: 0.6875rem;
  color: var(--hub-muted);
}

body.hub-body--edit-v4 .hub-market-toolbar {
  border-radius: 16px;
  border: 1px solid var(--hub-line);
  background: var(--hub-glass);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  padding: 0.75rem 0.95rem;
  margin-bottom: 0.75rem;
}

body.hub-body--edit-v4 .hub-product-card--new,
body.hub-body--edit-v4 .hub-product-card--item {
  border-radius: 16px;
  border: 1px solid var(--hub-line);
  background: var(--hub-glass);
}

body.hub-body--edit-v4 .hub-form-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin-top: 0.75rem;
  padding: 0.65rem 0;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--hub-bg, #0a0b10) 88%, transparent) 35%);
}

body.hub-body--edit-v4 .hub-edit-flash {
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, #22c55e 35%, var(--hub-line));
  background: color-mix(in srgb, #22c55e 10%, var(--hub-glass));
}

/* Legacy editor chrome — removed from markup */
body.hub-body--edit-v4 .hub-edit-topbar,
body.hub-body--edit-v4 .hub-edit-page-hero,
body.hub-body--edit-v4 .hub-edit-command,
body.hub-body--edit-v4 .hub-edit-toolbar {
  display: none !important;
}
