/* Neytom brand mark — homepage top-left emblem (SVG) as site default */
a.neytom-brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  line-height: 1;
}
a.neytom-brand-link:hover { opacity: 0.92; }
.neytom-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  line-height: 1;
}
.neytom-brand__mark {
  display: block;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: contain;
}
.neytom-brand--sm .neytom-brand__mark { width: 22px; height: 22px; border-radius: 6px; }
.neytom-brand--md .neytom-brand__mark { width: 28px; height: 28px; border-radius: 8px; }
.neytom-brand--lg .neytom-brand__mark { width: 32px; height: 32px; border-radius: 9px; }
.neytom-brand--xl .neytom-brand__mark { width: 36px; height: 36px; border-radius: 11px; }
.neytom-brand--auth .neytom-brand__mark { width: 26px; height: 26px; border-radius: 7px; }
.neytom-brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.neytom-brand__name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: inherit;
  white-space: nowrap;
}
.neytom-brand--sm .neytom-brand__name { font-size: 14px; }
.neytom-brand--lg .neytom-brand__name { font-size: 18px; }
.neytom-brand--xl .neytom-brand__name { font-size: 21px; }
.neytom-brand--auth .neytom-brand__name { font-size: 16px; }
.neytom-brand__tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.62;
  white-space: nowrap;
  line-height: 1.1;
}
/* Mark-only legacy class hooks */
img.logo-img.neytom-brand__mark,
img.v2-topbar-logo.neytom-brand__mark {
  width: auto;
  height: 28px;
  max-height: 36px;
}

/* Homepage glass banner — canonical top-left lockup */
a.neytom-brand-banner.neytom-brand-link,
a.neytom-brand-banner {
  gap: 10px;
  max-width: min(220px, 56vw);
  padding: 5px 12px 5px 5px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 245, 255, 0.92));
  border: 1px solid rgba(0, 113, 227, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 4px 18px rgba(0, 113, 227, 0.08);
  transition: border-color 0.22s cubic-bezier(.16,1,.3,1), box-shadow 0.22s cubic-bezier(.16,1,.3,1), transform 0.22s cubic-bezier(.16,1,.3,1);
}
a.neytom-brand-banner:hover {
  opacity: 1;
  border-color: rgba(0, 113, 227, 0.3);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 6px 22px rgba(0, 113, 227, 0.14);
  transform: translateY(-1px);
}
.neytom-brand-banner .neytom-brand {
  gap: 10px;
  max-width: 100%;
}
.neytom-brand-banner .neytom-brand__mark {
  border-radius: 10px !important;
  box-shadow: 0 2px 10px rgba(0, 113, 227, 0.28);
}
.neytom-brand-banner .neytom-brand__name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.neytom-brand-banner.neytom-brand--xl .neytom-brand__name,
.neytom-brand-banner .neytom-brand--xl .neytom-brand__name {
  font-size: 17px;
}
.neytom-brand-banner .neytom-brand__tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0071e3;
  opacity: 0.88;
  white-space: nowrap;
  line-height: 1.1;
}

/* Mobile panel: keep glass brand like homepage (top), never in bottom nav */
@media (max-width: 900px) {
  a.neytom-brand-banner.neytom-brand-link,
  a.neytom-brand-banner {
    max-width: min(200px, 62vw);
    padding: 4px 10px 4px 4px;
    border-radius: 12px;
  }
  .neytom-app-sidebar .sidebar-logo.neytom-brand-banner,
  body.neytom-app-body .neytom-brand-banner,
  body.admin-site-shell .sb-brand-lockup,
  body.admin-site-shell .neytom-brand-banner,
  body.admin-site-shell a.neytom-brand-link {
    /* sidebar hidden on mobile — never float beside bottom nav buttons */
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: fixed !important;
    left: -9999px !important;
    top: auto !important;
    bottom: auto !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    z-index: -1 !important;
  }
  .mobile-bottom-nav .neytom-brand-banner,
  .mobile-bottom-nav a.neytom-brand-link {
    display: none !important;
  }
}
