/* RoMulti logo — glow + gentle float (site only) */
.logo-anim {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.logo-anim--sm {
  width: 40px;
  height: 40px;
}

.logo-anim--lg {
  width: 56px;
  height: 56px;
}

.logo-anim::before,
.logo-anim::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 14px;
}

.logo-anim::before {
  inset: -12px;
  z-index: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.24) 0%,
    rgba(255, 255, 255, 0.06) 42%,
    transparent 72%
  );
  animation: logo-halo 4.4s ease-in-out infinite;
}

.logo-anim::after {
  inset: -2px;
  z-index: 0;
  animation: logo-ring 4.4s ease-in-out infinite;
}

.logo-anim .acc-brand-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  object-fit: contain;
  transform-origin: center center;
  animation: logo-float 5.8s ease-in-out infinite;
  will-change: transform, filter;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.22));
}

.logo-anim--hero .acc-brand-logo {
  animation-duration: 6.4s;
  animation-delay: -1.4s;
}

.logo-anim--hero::before,
.logo-anim--hero::after {
  animation-delay: -0.9s;
}

.logo-anim--sm .acc-brand-logo {
  animation-duration: 7.2s;
  animation-delay: -2.1s;
}

.logo-anim--lg .acc-brand-logo {
  animation-duration: 5.2s;
  animation-delay: -0.6s;
}

.nav-brand .logo-anim {
  margin-right: 2px;
}

.brand-glow-text {
  display: inline-block;
  color: inherit;
  animation: brand-text-glow 4.4s ease-in-out infinite;
}

.nav-brand .brand-glow-text {
  animation-delay: -0.35s;
}

.foot-brand .brand-glow-text {
  animation-duration: 7.2s;
  animation-delay: -2.1s;
}

.brand-glow-text--hero {
  animation-duration: 6.4s;
  animation-delay: -1.4s;
}

.brand-glow-text--lg {
  animation-duration: 5.2s;
  animation-delay: -0.6s;
}

.mrm-add-modal__icon .logo-anim {
  margin: 0 auto 12px;
}

@keyframes logo-halo {
  0%,
  100% {
    opacity: 0.32;
    transform: scale(0.86);
  }
  50% {
    opacity: 1;
    transform: scale(1.14);
  }
}

@keyframes logo-ring {
  0%,
  100% {
    box-shadow:
      0 0 10px rgba(255, 255, 255, 0.06),
      0 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow:
      0 0 18px rgba(255, 255, 255, 0.22),
      0 0 34px rgba(255, 255, 255, 0.1);
  }
}

@keyframes logo-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
    filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.18));
  }
  35% {
    transform: translateY(-5px) rotate(-2deg) scale(1.03);
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.42));
  }
  68% {
    transform: translateY(-2px) rotate(1.5deg) scale(1.015);
    filter: drop-shadow(0 0 11px rgba(255, 255, 255, 0.3));
  }
}

@keyframes brand-text-glow {
  0%,
  100% {
    text-shadow:
      0 0 10px rgba(255, 255, 255, 0.16),
      0 0 24px rgba(255, 255, 255, 0.06);
  }
  50% {
    text-shadow:
      0 0 14px rgba(255, 255, 255, 0.38),
      0 0 30px rgba(255, 255, 255, 0.18),
      0 0 46px rgba(255, 255, 255, 0.07);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-anim::before,
  .logo-anim::after,
  .logo-anim .acc-brand-logo {
    animation: none !important;
  }

  .logo-anim .acc-brand-logo {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
  }

  .brand-glow-text {
    animation: none !important;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.22);
  }
}
