/* Shared shell styling for hub tools (index + ticketoffice inspired) */
body.hub-shell {
  --hub-bg: #09070f;
  --hub-panel: rgba(255, 255, 255, 0.05);
  --hub-panel-2: rgba(0, 0, 0, 0.35);
  --hub-border: rgba(255, 255, 255, 0.12);
  --hub-border-subtle: rgba(255, 255, 255, 0.08);
  --hub-text: #f3f2fb;
  --hub-muted: #b6b0cc;
  --hub-accent: #ff4b8a;
  --hub-accent-2: #7c3cff;
  --hub-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);

  margin: 0;
  color: var(--hub-text);
  background: var(--hub-bg);
  min-height: 100vh;
}

body.hub-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 18% 10%, rgba(255, 75, 138, 0.22), transparent 60%),
    radial-gradient(900px 600px at 82% 16%, rgba(124, 77, 255, 0.16), transparent 60%),
    radial-gradient(900px 600px at 60% 92%, rgba(0, 184, 255, 0.10), transparent 55%),
    var(--hub-bg);
  background-repeat: no-repeat;
  background-size: cover;
}

body.hub-shell .hp-header,
body.hub-shell .media-head {
  border: 1px solid var(--hub-border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: var(--hub-shadow);
}

body.hub-shell .hp-sidebar,
body.hub-shell .hp-editor,
body.hub-shell .media-card,
body.hub-shell .sig-card {
  border: 1px solid var(--hub-border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow: var(--hub-shadow);
}

body.hub-shell .hp-list,
body.hub-shell .hp-content,
body.hub-shell .media-card .meta {
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--hub-border-subtle);
  border-radius: 14px;
}

body.hub-shell .hp-input,
body.hub-shell .hp-textarea,
body.hub-shell .hp-btn,
body.hub-shell .hp-tool {
  border-color: rgba(255,255,255,0.18);
}

body.hub-shell .hp-sub,
body.hub-shell .hp-hint,
body.hub-shell .media-url,
body.hub-shell .media-empty {
  color: var(--hub-muted);
}

/* Header button normalization */
body.hub-shell .btn,
body.hub-shell .hp-header__right .hp-btn,
body.hub-shell .media-toolbar .hp-btn {
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: var(--hub-text);
  border-radius: 999px;
}

body.hub-shell .btn.btn-ghost,
body.hub-shell .hp-btn--ghost {
  background: transparent;
}

body.hub-shell .btn.btn-primary,
body.hub-shell .hp-btn--good {
  border-color: rgba(255,75,138,0.4);
  background: rgba(255,75,138,0.18);
}
