/* Hive Interactive 3D Globe Stage
   Obsidian + Machined Sapphire & Amber spatial stage for thehiveryiq.com */

.hive-globe-stage {
  --hg-bg-deep: #060910;
  --hg-bg-mid: #0b1220;
  --hg-surface: rgba(9, 15, 28, 0.82);
  --hg-surface-strong: rgba(8, 13, 25, 0.94);
  --hg-surface-hover: rgba(18, 29, 52, 0.92);
  --hg-border: rgba(148, 184, 255, 0.18);
  --hg-border-strong: rgba(47, 128, 255, 0.48);
  --hg-text: #eef4ff;
  --hg-text-muted: #9eb0cc;
  --hg-text-dim: #7083a3;
  --hg-sapphire: #2f80ff;
  --hg-cyan: #38bdf8;
  --hg-amber: #f59e0b;
  --hg-emerald: #34d399;
  --hg-font-sans: "Space Grotesk", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --hg-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  position: relative;
  width: 100%;
  min-height: 640px;
  height: clamp(640px, 72vh, 760px);
  border-radius: 4px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 70% at 50% 42%, rgba(28, 63, 138, 0.24) 0%, rgba(11, 18, 32, 0.92) 55%, #060910 100%);
  border: 1px solid var(--hg-border);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(190, 218, 255, 0.1);
  color: var(--hg-text);
  font-family: var(--hg-font-sans);
  user-select: none;
  -webkit-user-select: none;
  isolation: isolate;
}

.hive-globe-stage *,
.hive-globe-stage *::before,
.hive-globe-stage *::after {
  box-sizing: border-box;
}

/* Canvas Viewport Layer */
.hg-viewport {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: grab;
  touch-action: pan-y;
}

.hg-viewport.is-dragging {
  cursor: grabbing;
}

.hg-viewport.is-targeting {
  cursor: pointer;
}

.hg-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Projected 3D City Labels Layer */
.hg-labels-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.hg-city-label {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -100%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(7, 12, 24, 0.78);
  border: 1px solid rgba(148, 184, 255, 0.22);
  color: var(--hg-text);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease, opacity 180ms ease;
  will-change: transform, opacity;
}

.hg-city-label:hover,
.hg-city-label.is-hovered {
  background: rgba(15, 29, 58, 0.95);
  border-color: rgba(56, 189, 248, 0.72);
  box-shadow: 0 0 16px rgba(47, 128, 255, 0.36);
  z-index: 6;
}

.hg-city-label.is-focused {
  background: rgba(20, 44, 92, 0.96);
  border-color: var(--hg-cyan);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.48);
  z-index: 8;
}

.hg-city-label.is-active-landing {
  border-color: rgba(245, 158, 11, 0.65);
}

.hg-city-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hg-cyan);
  box-shadow: 0 0 8px currentColor;
  flex-shrink: 0;
}

.hg-city-name {
  font-weight: 600;
  color: #f4f8ff;
}

.hg-city-sub {
  color: var(--hg-text-muted);
  font-size: 10.5px;
}

/* Bullet-Time Hover Tooltip + Reticle */
.hg-hover-reticle {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  margin-top: -22px;
  border-radius: 50%;
  border: 1.5px solid rgba(56, 189, 248, 0.85);
  box-shadow: 0 0 18px rgba(47, 128, 255, 0.55), inset 0 0 10px rgba(56, 189, 248, 0.25);
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 120ms ease;
}

.hg-hover-reticle.is-visible {
  opacity: 1;
}

.hg-hover-reticle::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(245, 158, 11, 0.55);
  animation: hg-spin 7s linear infinite;
}

@keyframes hg-spin {
  to {
    transform: rotate(360deg);
  }
}

.hg-hover-card {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 12;
  max-width: 310px;
  padding: 10px 13px;
  border-radius: 13px;
  background: rgba(7, 13, 27, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.62), 0 0 24px rgba(47, 128, 255, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.96);
  transition: opacity 120ms ease, transform 120ms ease;
}

.hg-hover-card.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.hg-hover-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hg-cyan);
  margin-bottom: 4px;
}

.hg-hover-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.25;
}

.hg-hover-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--hg-text-muted);
  line-height: 1.35;
}

.hg-hover-type {
  font-family: var(--hg-font-mono);
  font-size: 11px;
  color: #bae6fd;
  background: rgba(47, 128, 255, 0.18);
  padding: 1px 6px;
  border-radius: 5px;
}

.hg-hover-hint {
  margin-top: 6px;
  font-size: 11px;
  color: var(--hg-amber);
  font-weight: 500;
}

/* HUD Top Bar */
.hg-hud-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 32;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.hg-hud-top > * {
  pointer-events: auto;
}

.hg-telemetry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--hg-surface);
  border: 1px solid var(--hg-border);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  font-size: 12px;
}

.hg-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hg-emerald);
  box-shadow: 0 0 10px var(--hg-emerald);
  flex-shrink: 0;
}

.hg-telemetry-counts {
  font-weight: 600;
  color: #f3f7ff;
  letter-spacing: 0.01em;
}

.hg-speed-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--hg-font-mono);
  font-size: 11px;
  background: rgba(47, 128, 255, 0.14);
  border: 1px solid rgba(47, 128, 255, 0.34);
  color: #bfd7ff;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.hg-speed-pill.is-slow {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.56);
  color: #fde68a;
}

.hg-speed-pill.is-paused {
  background: rgba(129, 140, 248, 0.2);
  border-color: rgba(129, 140, 248, 0.55);
  color: #e0e7ff;
}

.hg-icon-btn {
  appearance: none;
  border: 1px solid rgba(148, 184, 255, 0.22);
  background: rgba(14, 24, 44, 0.82);
  color: var(--hg-text);
  border-radius: 9px;
  padding: 5px 9px;
  font-family: var(--hg-font-sans);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.hg-icon-btn:hover,
.hg-icon-btn:focus-visible {
  background: rgba(31, 55, 102, 0.9);
  border-color: rgba(56, 189, 248, 0.65);
  outline: none;
}

/* Search / Fire Any of 146 Primitives Combobox */
.hg-finder {
  position: relative;
  width: min(330px, 44vw);
  min-width: 220px;
}

.hg-finder-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 13px;
  background: var(--hg-surface-strong);
  border: 1px solid var(--hg-border);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.hg-finder-box:focus-within {
  border-color: var(--hg-cyan);
  box-shadow: 0 0 0 3px rgba(47, 128, 255, 0.2);
}

.hg-finder-icon {
  color: var(--hg-cyan);
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}

.hg-finder-input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-family: var(--hg-font-sans);
  font-size: 12.5px;
  outline: none;
}

.hg-finder-input::placeholder {
  color: var(--hg-text-dim);
}

.hg-finder-clear {
  appearance: none;
  border: 0;
  background: rgba(148, 184, 255, 0.14);
  color: var(--hg-text-muted);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.hg-finder-clear.is-visible {
  display: inline-flex;
}

.hg-finder-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 310px;
  overflow-y: auto;
  border-radius: 14px;
  background: rgba(7, 12, 24, 0.97);
  border: 1px solid var(--hg-border-strong);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.72);
  padding: 6px;
  display: none;
  z-index: 30;
}

.hg-finder-results.is-open {
  display: block;
}

.hg-finder-item {
  width: 100%;
  text-align: left;
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--hg-text);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.hg-finder-item:hover,
.hg-finder-item:focus-visible {
  background: rgba(47, 128, 255, 0.18);
  border-color: rgba(56, 189, 248, 0.42);
  outline: none;
}

.hg-finder-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hg-finder-item-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #f8fbff;
}

.hg-finder-item-type {
  font-family: var(--hg-font-mono);
  font-size: 10.5px;
  color: #93c5fd;
}

.hg-finder-item-cat {
  font-size: 11px;
  color: var(--hg-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hg-finder-empty {
  padding: 12px;
  font-size: 12px;
  color: var(--hg-text-muted);
  text-align: center;
}

/* Zoom & Orbit Controls (Left Mid-Bottom) */
.hg-orbit-controls {
  position: absolute;
  left: 14px;
  top: 66px;
  z-index: 14;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hg-orbit-btn {
  appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--hg-border);
  background: var(--hg-surface);
  color: var(--hg-text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 140ms ease, border-color 140ms ease;
}

.hg-orbit-btn:hover,
.hg-orbit-btn:focus-visible {
  background: rgba(31, 58, 110, 0.9);
  border-color: var(--hg-cyan);
  outline: none;
}

/* Live Flight Ticker Pill (Bottom-Right when Popover Closed) */
.hg-flight-feed {
  position: absolute;
  left: 14px;
  bottom: 174px;
  z-index: 12;
  max-width: min(370px, calc(100% - 28px));
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(7, 12, 24, 0.78);
  border: 1px solid rgba(148, 184, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 11.5px;
  color: var(--hg-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.hg-flight-feed:hover {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(12, 22, 42, 0.92);
}

.hg-flight-feed-badge {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hg-flight-feed-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hg-flight-feed-text strong {
  color: #f3f7ff;
  font-weight: 600;
}

/* HUD Bottom Controls: Category Filters + Global Pulse City Chips */
.hg-hud-bottom {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.hg-hud-bottom > * {
  pointer-events: auto;
}

.hg-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding-bottom: 2px;
}

.hg-chip-row::-webkit-scrollbar {
  display: none;
}

.hg-chip-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hg-text-dim);
  margin-right: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.hg-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 184, 255, 0.2);
  background: rgba(8, 14, 27, 0.84);
  color: #dbe8ff;
  font-family: var(--hg-font-sans);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 120ms ease;
}

.hg-chip:hover,
.hg-chip:focus-visible {
  background: rgba(24, 44, 84, 0.94);
  border-color: rgba(56, 189, 248, 0.6);
  color: #ffffff;
  outline: none;
}

.hg-chip.is-active {
  background: rgba(47, 128, 255, 0.28);
  border-color: rgba(96, 165, 250, 0.85);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(47, 128, 255, 0.34);
}

.hg-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hg-chip--pulse {
  border-color: rgba(56, 189, 248, 0.26);
}

.hg-chip--more {
  border-style: dashed;
  color: #bae6fd;
}

/* All Cities Directory Drawer (Overlay) */
.hg-cities-modal {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 92px;
  z-index: 25;
  max-height: 310px;
  overflow-y: auto;
  padding: 14px;
  border-radius: 16px;
  background: rgba(7, 12, 24, 0.97);
  border: 1px solid var(--hg-border-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: none;
}

.hg-cities-modal.is-open {
  display: block;
}

.hg-cities-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.hg-cities-modal-title {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.hg-cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 8px;
}

.hg-city-card-btn {
  appearance: none;
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 184, 255, 0.16);
  background: rgba(15, 25, 45, 0.72);
  color: var(--hg-text);
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.hg-city-card-btn:hover,
.hg-city-card-btn:focus-visible {
  background: rgba(31, 56, 104, 0.9);
  border-color: var(--hg-cyan);
  outline: none;
}

.hg-city-card-co {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
}

.hg-city-card-loc {
  font-size: 11px;
  color: var(--hg-text-muted);
  margin-top: 2px;
}

/* Glassmorphic Building & Primitive Inspector Popover Card */
.hg-popover {
  position: absolute;
  top: 66px;
  right: 14px;
  bottom: 98px;
  width: min(430px, calc(100% - 28px));
  z-index: 22;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: rgba(8, 13, 25, 0.94);
  border: 1px solid rgba(72, 148, 255, 0.44);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.76),
    0 0 36px rgba(47, 128, 255, 0.18),
    inset 0 1px 0 rgba(200, 224, 255, 0.14);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px) scale(0.985);
  transition: opacity 200ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hg-popover.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.hg-popover-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(148, 184, 255, 0.14);
  background: linear-gradient(180deg, rgba(47, 128, 255, 0.12) 0%, rgba(8, 13, 25, 0) 100%);
  flex-shrink: 0;
}

.hg-popover-company {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.hg-popover-location {
  margin-top: 3px;
  font-size: 12px;
  color: var(--hg-text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.hg-popover-sector {
  font-size: 10.5px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #bae6fd;
}

.hg-popover-close {
  appearance: none;
  border: 1px solid rgba(148, 184, 255, 0.24);
  background: rgba(16, 26, 48, 0.85);
  color: var(--hg-text);
  border-radius: 10px;
  padding: 5px 10px;
  font-family: var(--hg-font-sans);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.hg-popover-close:hover,
.hg-popover-close:focus-visible {
  background: rgba(47, 128, 255, 0.28);
  border-color: var(--hg-cyan);
  outline: none;
}

.hg-popover-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hg-popover-body::-webkit-scrollbar {
  width: 6px;
}

.hg-popover-body::-webkit-scrollbar-thumb {
  background: rgba(148, 184, 255, 0.24);
  border-radius: 999px;
}

/* Active Primitive Spotlight Box */
.hg-active-box {
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(14, 24, 46, 0.78);
  border: 1px solid rgba(72, 148, 255, 0.32);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hg-active-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hg-amber);
}

.hg-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #eaf2ff;
}

.hg-prim-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.hg-prim-name {
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.hg-prim-type {
  font-family: var(--hg-font-mono);
  font-size: 11.5px;
  color: #93c5fd;
  background: rgba(47, 128, 255, 0.16);
  border: 1px solid rgba(47, 128, 255, 0.3);
  padding: 2px 7px;
  border-radius: 6px;
}

.hg-surface-callout {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(6, 11, 22, 0.72);
  border-left: 3px solid var(--hg-cyan);
  font-size: 12.5px;
  line-height: 1.4;
  color: #e2eeff;
}

.hg-surface-callout-label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hg-cyan);
  margin-bottom: 2px;
}

.hg-fact-line {
  font-size: 12.5px;
  line-height: 1.45;
  color: #d6e4fa;
  margin: 0;
}

.hg-fact-line strong {
  color: #ffffff;
  font-weight: 600;
}

.hg-fact-line--boundary {
  color: var(--hg-text-muted);
}

.hg-popover-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.hg-btn {
  appearance: none;
  border-radius: 10px;
  padding: 9px 11px;
  font-family: var(--hg-font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background-color 140ms ease, border-color 140ms ease, transform 120ms ease, box-shadow 140ms ease;
}

.hg-btn--primary {
  background: linear-gradient(135deg, #2f80ff 0%, #1d5ed6 100%);
  border: 1px solid rgba(147, 197, 253, 0.55);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(47, 128, 255, 0.32);
}

.hg-btn--primary:hover,
.hg-btn--primary:focus-visible {
  background: linear-gradient(135deg, #438eff 0%, #256ce8 100%);
  transform: translateY(-1px);
  outline: none;
}

.hg-btn--secondary {
  background: rgba(16, 28, 52, 0.88);
  border: 1px solid rgba(148, 184, 255, 0.28);
  color: #e6f0ff;
}

.hg-btn--secondary:hover,
.hg-btn--secondary:focus-visible {
  background: rgba(28, 48, 86, 0.96);
  border-color: rgba(56, 189, 248, 0.65);
  transform: translateY(-1px);
  outline: none;
}

/* Company Surface Portfolio List (10+ Primitives) */
.hg-portfolio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #c9dbff;
  letter-spacing: 0.02em;
}

.hg-portfolio-sub {
  font-size: 11px;
  color: var(--hg-text-dim);
  font-weight: 400;
}

.hg-portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hg-portfolio-row {
  appearance: none;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid rgba(148, 184, 255, 0.14);
  background: rgba(12, 20, 38, 0.72);
  color: var(--hg-text);
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  transition: background-color 130ms ease, border-color 130ms ease, transform 120ms ease;
}

.hg-portfolio-row:hover,
.hg-portfolio-row:focus-visible {
  background: rgba(24, 42, 78, 0.88);
  border-color: rgba(56, 189, 248, 0.5);
  outline: none;
}

.hg-portfolio-row.is-selected {
  background: rgba(47, 128, 255, 0.2);
  border-color: rgba(96, 165, 250, 0.8);
  box-shadow: 0 0 16px rgba(47, 128, 255, 0.22);
}

.hg-portfolio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.hg-portfolio-main {
  min-width: 0;
  flex: 1 1 auto;
}

.hg-portfolio-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.hg-portfolio-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #f6f9ff;
}

.hg-portfolio-type {
  font-family: var(--hg-font-mono);
  font-size: 10.5px;
  color: #93c5fd;
  flex-shrink: 0;
}

.hg-portfolio-surface {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--hg-text-muted);
  line-height: 1.32;
}

/* Honesty Footer Pill */
.hg-honesty-pill {
  padding: 10px 14px;
  border-top: 1px solid rgba(148, 184, 255, 0.14);
  background: rgba(5, 9, 18, 0.92);
  font-size: 11px;
  line-height: 1.35;
  color: var(--hg-text-dim);
  flex-shrink: 0;
}

/* Return-to-Globe Toast Banner */
.hg-return-banner {
  position: absolute;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(12, 26, 54, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  font-size: 12px;
  color: #eaf3ff;
}

.hg-return-banner.is-visible {
  display: inline-flex;
}

.hg-telemetry-honesty {
  font-size: 11px;
  color: rgba(214, 226, 248, 0.78);
  padding-left: 8px;
  border-left: 1px solid rgba(148, 163, 184, 0.25);
  white-space: nowrap;
}

.hg-finder-scan-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid rgba(56, 189, 248, 0.48);
  background: rgba(47, 128, 255, 0.16);
  color: #f0f6ff;
  font: 600 12px/1.35 inherit;
  cursor: pointer;
  text-align: left;
  transition: background 140ms ease, border-color 140ms ease;
}

.hg-finder-scan-btn:hover {
  background: rgba(47, 128, 255, 0.28);
  border-color: rgba(56, 189, 248, 0.78);
}

.hg-popover-actions .hg-btn:nth-child(3) {
  grid-column: 1 / -1;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  .hg-telemetry-honesty {
    display: block;
    width: 100%;
    padding-left: 0;
    padding-top: 4px;
    border-left: 0;
    white-space: normal;
  }

  .hg-chip {
    min-height: 36px;
    padding: 6px 12px;
  }

  .hg-finder-box {
    min-height: 40px;
  }

  .hive-globe-stage {
    min-height: 620px;
    height: clamp(600px, 84vh, 760px);
    border-radius: 16px;
  }

  .hg-hud-top {
    flex-direction: column;
    align-items: stretch;
  }

  .hg-finder {
    width: 100%;
    min-width: 0;
  }

  .hg-orbit-controls {
    top: auto;
    bottom: 106px;
    left: 12px;
    flex-direction: row;
  }

  .hg-flight-feed {
    display: none;
  }

  .hg-popover {
    top: auto;
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    max-height: 76%;
  }

  .hg-popover-actions {
    grid-template-columns: 1fr;
  }

  .hg-chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hg-hover-reticle::after {
    animation: none;
  }
  .hg-popover,
  .hg-hover-card,
  .hg-city-label {
    transition: none;
  }
}
