/* V64 — supplied StockDivar brand identity */
.brand-logo-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 17px;
  isolation: isolate;
  filter: drop-shadow(0 8px 14px rgba(185, 28, 28, .22));
  transform: translateZ(0);
}

.brand-logo-wrap::before {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239,68,68,.20), rgba(239,68,68,0) 70%);
  animation: stockdivar-logo-halo 4.6s ease-in-out infinite;
}

.brand-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: 50% 52%;
  animation: stockdivar-logo-float 5.2s ease-in-out infinite;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), filter .28s ease;
}

.brand:hover .brand-logo,
.panel-brand:hover .brand-logo,
.auth-brand:hover .brand-logo {
  transform: translateY(-1px) rotate(-3deg) scale(1.055);
  filter: saturate(1.08) contrast(1.03);
}

.footer-brand .brand-logo-wrap {
  width: 54px;
  height: 54px;
  flex-basis: 54px;
}

@keyframes stockdivar-logo-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-1.5px) rotate(1deg); }
}

@keyframes stockdivar-logo-halo {
  0%, 100% { opacity: .36; transform: scale(.92); }
  50% { opacity: .72; transform: scale(1.08); }
}

@media (max-width: 640px) {
  .brand-logo-wrap {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 14px;
    filter: drop-shadow(0 6px 10px rgba(185,28,28,.18));
  }

  .footer-brand .brand-logo-wrap {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo,
  .brand-logo-wrap::before {
    animation: none !important;
  }
}
