/* BINGO brand — logo-full in navbars, icon for favicon/PWA */

.logo-full {
  height: 32px;
  width: auto;
  max-width: min(148px, 42vw);
  object-fit: contain;
  object-position: left center;
  display: block;
  flex-shrink: 0;
  border-radius: 6px;
}

.logo-full--sm {
  height: 28px;
  max-width: min(128px, 46vw);
}

.logo-full--md {
  height: 34px;
  max-width: 160px;
}

.logo-full--lg {
  height: 40px;
  max-width: 180px;
}

/* Square icon (favicon / auth visual / hero) */
.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.logo-img--sm { width: 28px; height: 28px; border-radius: 8px; }
.logo-img--md { width: 36px; height: 36px; border-radius: 11px; }
.logo-img--lg { width: 48px; height: 48px; border-radius: 14px; }

.logo-img--hero {
  width: min(112px, 28vw);
  height: auto;
  aspect-ratio: 1;
  border-radius: 28px;
  margin: 0 auto 1rem;
  box-shadow: 0 12px 40px rgba(11, 18, 32, 0.12);
}

a.logo,
.bingo-mark,
.mobile-top-bar__logo,
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: inherit;
}

/* Hide duplicate wordmark next to full logo */
.logo:has(.logo-full) .logo-text,
.bingo-mark:has(.logo-full) .bingo-mark__word,
.bingo-mark:has(.logo-full) .logo-text,
.mobile-top-bar__logo:has(.logo-full) .logo-text,
.nav-logo:has(.logo-full) .nav-logo-text {
  display: none !important;
}

.auth-visual-logo--img {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.auth-visual-logo--img img {
  width: auto;
  height: 48px;
  max-width: min(220px, 80%);
  object-fit: contain;
  border-radius: 10px;
}

/* Mobile centered header */
.mobile-top-bar__logo .logo-full {
  height: 28px;
  max-width: min(132px, 48vw);
}

/* Desktop / tablet sidebar */
.app-sidebar .logo .logo-full {
  height: 32px;
  max-width: 148px;
}

.app-layout.sidebar-collapsed .logo .logo-full {
  display: none !important;
}

.logo-collapsed-icon {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.app-layout.sidebar-collapsed .logo .logo-collapsed-icon {
  display: block;
}

/* Landing / ecosystem site nav */
.site-nav .bingo-mark .logo-full,
.bingo-mark > .logo-full {
  height: 34px;
  max-width: 158px;
}

.home-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.home-brand .home-brand__word {
  margin: 0;
}

.nav-logo {
  font-weight: 800;
}

/* Auth card header */
.auth-header .logo .logo-full,
.auth-logo .logo-full {
  height: 36px;
  max-width: 168px;
}

@media (max-width: 768px) {
  .auth-header .logo .logo-full,
  .auth-logo .logo-full,
  .auth-logo .logo-full--lg {
    height: 32px !important;
    max-width: min(148px, 58vw) !important;
  }
}

.welcome-header .nav-logo .logo-full {
  height: 30px;
  max-width: 140px;
}

/* Global language switcher — animated dropdown */
.bingo-lang,
.bingo-lang--dd {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 20;
  isolation: isolate;
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
  max-width: none;
}

.bingo-lang__toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 52px;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.04);
  color: #0f172a;
  font: 700 11px/1 Outfit, "Source Sans 3", system-ui, sans-serif;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.bingo-lang__toggle svg {
  opacity: 0.5;
  transition: transform 0.22s ease;
  flex-shrink: 0;
}

.bingo-lang.is-open .bingo-lang__toggle {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
}

.bingo-lang.is-open .bingo-lang__toggle svg {
  transform: rotate(180deg);
  opacity: 0.85;
}

.bingo-lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top right;
  transition: opacity 0.2s ease, transform 0.22s ease, visibility 0.2s;
}

.bingo-lang__menu[hidden] {
  display: flex !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.bingo-lang.is-open .bingo-lang__menu,
.bingo-lang.is-open .bingo-lang__menu[hidden] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.bingo-lang__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #334155;
  font: 500 13px/1.2 "Source Sans 3", system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
  flex: 0 0 auto;
  position: relative;
  transition: background 0.15s, color 0.15s;
}

.bingo-lang__opt em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.bingo-lang__opt:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.bingo-lang__opt[aria-selected="true"],
.bingo-lang__opt.is-active {
  background: rgba(13, 148, 136, 0.1);
  color: #0f172a;
}

.bingo-lang__opt[aria-selected="true"] em,
.bingo-lang__opt.is-active em {
  color: #0d9488;
}

.bingo-lang__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #6b7280;
  font: 650 11px/1.1 Outfit, "Source Sans 3", system-ui, sans-serif;
  letter-spacing: 0.04em;
  min-width: 30px;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  cursor: pointer;
}

.bingo-lang-wrap--auth {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0;
}

.bingo-lang--sidebar {
  margin: 8px 14px 12px;
  width: fit-content;
}

.bingo-lang--mobile {
  margin-left: auto;
  margin-right: 0;
}

.mobile-top-bar .bingo-lang--mobile {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  z-index: 5;
}

.mobile-top-bar .bingo-lang--mobile .bingo-lang__menu {
  right: 0;
}

@media (max-width: 768px) {
  .bingo-lang__toggle {
    min-width: 48px;
    min-height: 30px;
    font-size: 10px;
  }
}

