/* HalalTrading.com animated logo: a light sweep across the artwork (the logo itself stays sharp).
   Usage: <a class="live-logo" style="--m:url(/img/logo-wide.png);height:48px"><img src="/img/logo-wide.png" alt="..."></a> */
.live-logo { position: relative; display: inline-block; line-height: 0; flex-shrink: 0; }
.live-logo img { height: 100%; width: auto; display: block; filter: none; } /* steady, sharp logo (no glow pulse) */
.live-logo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .85) 50%, transparent 62%);
  background-size: 300% 100%; background-position: 150% 0;
  -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat;
  animation: htLogoShine 4.2s ease-in-out infinite; opacity: .55;
}
.live-logo.big img { animation: htLogoIn 1.1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes htLogoShine { 0%, 55% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
@keyframes htLogoGlow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(61, 255, 127, .25)); }
  50% { filter: drop-shadow(0 0 12px rgba(61, 255, 127, .55)) drop-shadow(0 0 4px rgba(255, 200, 60, .35)); }
}
@keyframes htLogoIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .live-logo img, .live-logo::after { animation: none !important; } }
