.hub-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
}

.hub-orbit {
  isolation: isolate;
}

.hub-orbit::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 388px;
  height: 388px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 305deg,
    rgba(255, 91, 85, 0.02) 320deg,
    rgba(255, 91, 85, 0.22) 354deg,
    transparent 360deg
  );
  -webkit-mask: radial-gradient(circle, transparent 0 47%, #000 49% 100%);
  mask: radial-gradient(circle, transparent 0 47%, #000 49% 100%);
  animation: radar-sweep 7s linear infinite;
  pointer-events: none;
}

.ring-one {
  animation: radar-ring-clockwise 20s linear infinite;
}

.ring-two {
  animation: radar-ring-counter 15s linear infinite;
}

.orbit-core {
  overflow: hidden;
  padding: 0;
  z-index: 2;
  animation: core-breathe 3.8s ease-in-out infinite;
}

.orbit-core::after {
  content: "";
  position: absolute;
  inset: 50%;
  z-index: -1;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255, 91, 85, 0.38);
  border-radius: 36px;
  transform: translate(-50%, -50%);
  animation: core-pulse 3.8s ease-out infinite;
}

.orbit-core img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.orbit-mood {
  animation: card-orbit-mood 8s ease-in-out infinite;
}

.orbit-next {
  animation: card-orbit-next 8s ease-in-out infinite;
}

@keyframes radar-sweep {
  to { transform: rotate(360deg); }
}

@keyframes radar-ring-clockwise {
  50% { border-color: rgba(255, 91, 85, 0.26); }
  to { transform: rotate(360deg); }
}

@keyframes radar-ring-counter {
  50% { border-color: rgba(17, 24, 69, 0.34); }
  to { transform: rotate(-360deg); }
}

@keyframes core-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 24px 70px rgba(17, 24, 69, 0.14); }
  50% { transform: scale(1.06); box-shadow: 0 30px 82px rgba(255, 91, 85, 0.2); }
}

@keyframes core-pulse {
  0% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.8); }
  70%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.75); }
}

@keyframes card-orbit-mood {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(15px, 12px) rotate(1deg); }
  50% { transform: translate(-4px, 27px) rotate(0deg); }
  75% { transform: translate(-18px, 9px) rotate(-1deg); }
}

@keyframes card-orbit-next {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-13px, -10px) rotate(-1deg); }
  50% { transform: translate(5px, -25px) rotate(0deg); }
  75% { transform: translate(18px, -8px) rotate(1deg); }
}

@media (max-width: 680px) {
  .hub-orbit::before {
    width: 308px;
    height: 308px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-orbit::before,
  .ring-one,
  .ring-two,
  .orbit-core,
  .orbit-core::after,
  .orbit-mood,
  .orbit-next {
    animation: none;
  }
}
