/* TechOne CRM brand lockup: compact SVG mark + optional wordmark text */
.toc-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  line-height: 1;
}

.toc-brand-logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.toc-brand-logo__img {
  display: block;
  flex-shrink: 0;
  width: auto;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
}

.toc-brand-logo__text {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
}

/* Dashboard sidebar */
.toc-brand-logo--sidebar .toc-brand-logo__text {
  color: #fff;
  font-size: 1rem;
}

.toc-brand-logo--sidebar .toc-brand-logo__img {
  width: 36px;
  height: 36px;
  max-width: 36px;
  max-height: 36px;
  border-radius: 8px;
}

.brand-link.toc-brand-logo {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 57px;
  padding: 0.75rem 0.65rem !important;
  box-sizing: border-box;
}

/* Wordmark present: align with nav icon column */
.brand-link.toc-brand-logo:has(.toc-brand-logo__text) {
  justify-content: flex-start;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  gap: 0.65rem;
}

/* Mini / collapsed sidebar — always center the mark */
body.sidebar-mini.sidebar-collapse .main-sidebar .brand-link.toc-brand-logo,
body.sidebar-collapse .main-sidebar .brand-link.toc-brand-logo {
  justify-content: center !important;
  padding: 0.75rem 0.35rem !important;
}

body.sidebar-mini.sidebar-collapse .main-sidebar .toc-brand-logo__text,
body.sidebar-collapse .main-sidebar .toc-brand-logo__text {
  display: none !important;
}

body.sidebar-mini.sidebar-collapse .main-sidebar .toc-brand-logo--sidebar .toc-brand-logo__img,
body.sidebar-collapse .main-sidebar .toc-brand-logo--sidebar .toc-brand-logo__img {
  width: 34px;
  height: 34px;
  max-width: 34px;
  max-height: 34px;
}

/* Marketing homepage + login/register header (shared lockup) */
.toc-brand-logo--marketing-nav {
  gap: 0.65rem;
}

.toc-brand-logo--marketing-nav .toc-brand-logo__text {
  font-size: 1.4rem;
  color: var(--toc-dark, #0f172a);
}

.toc-brand-logo--marketing-nav .toc-brand-logo__mark {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
}

.toc-brand-logo--marketing-nav .toc-brand-logo__img {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  max-width: 56px;
  max-height: 56px;
  object-fit: contain;
}

.navbar-brand.toc-brand-logo--marketing-nav {
  padding-top: 0;
  padding-bottom: 0;
  margin-right: 0.75rem;
}

/* Marketing footer (dark background) */
.toc-brand-logo--marketing-footer .toc-brand-logo__text {
  font-size: 1.2rem;
  color: #fff;
}

.toc-brand-logo--marketing-footer .toc-brand-logo__img {
  width: 32px;
  height: 32px;
}

/* Legacy guest-only header (footer etc.) */
.toc-brand-logo--guest .toc-brand-logo__text {
  font-size: 1.2rem;
  color: var(--toc-dark, #0f172a);
}

.toc-brand-logo--guest .toc-brand-logo__img {
  width: 34px;
  height: 34px;
}

.guest-brand.toc-brand-logo--guest:hover .toc-brand-logo__text {
  color: var(--toc-primary, #0d9488);
}

.toc-brand-logo--guest-footer .toc-brand-logo__text {
  font-size: 1rem;
  color: var(--toc-muted, #64748b);
}

.toc-brand-logo--guest-footer .toc-brand-logo__img {
  width: 26px;
  height: 26px;
}

/* Mobile dashboard top bar */
.toc-brand-logo--navbar .toc-brand-logo__img {
  width: 30px;
  height: 30px;
}

/* Checkout / payment standalone pages */
.brand-checkout-logo {
  margin-bottom: 0.75rem;
}

.brand-checkout-logo img {
  display: inline-block;
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

/* Trusted client logos — infinite scroll */
.trusted-logos-marquee {
  padding: 1.25rem 0 1.75rem;
  background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, #fff 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.trusted-logos-marquee__label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.trusted-logos-marquee__viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.trusted-logos-marquee__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: trusted-logos-scroll 38s linear infinite;
  padding: 0.5rem 1rem;
}

.trusted-logos-marquee__track:hover {
  animation-play-state: paused;
}

.trusted-logos-marquee__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 52px;
  padding: 0 0.75rem;
}

.trusted-logos-marquee__item img {
  max-height: 44px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.15);
  opacity: 0.92;
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.trusted-logos-marquee__item a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.trusted-logos-marquee__item:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.03);
}

@keyframes trusted-logos-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .trusted-logos-marquee__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 1.25rem 2rem;
  }
  .trusted-logos-marquee__viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

@media (max-width: 575.98px) {
  .toc-brand-logo--marketing-nav .toc-brand-logo__text {
    font-size: 1.15rem;
  }

  .toc-brand-logo--marketing-nav .toc-brand-logo__img,
  .toc-brand-logo--marketing-nav .toc-brand-logo__mark {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    max-height: 44px;
  }
}
