/* Desktop + mobile — drawer-only nav (Teravex Market platform) */

#root nav.fixed {
  background: rgba(0, 0, 0, 0.95) !important;
  border-bottom-color: var(--hairline) !important;
  backdrop-filter: blur(8px);
}

/* Hide horizontal link row — all links live in the slide drawer (logo opens menu on desktop) */
#root nav.fixed .hidden.md\:flex,
#root nav.fixed [class*="hidden"][class*="md:flex"],
.ir-header .ir-nav,
.ir-nav-desktop-spa,
.ir-nav-desktop {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Legacy React nav burger — never show (drawer trigger is .ir-header-actions only) */
#root nav.fixed button.ir-react-menu-btn,
#root nav.fixed button.md\:hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#root nav.fixed a.vortex-nav-brand,
#root nav.fixed a[href="/"].vortex-nav-brand,
.ir-header a.vortex-nav-brand {
  cursor: pointer;
  padding-right: 0;
}

#root nav.fixed a.vortex-nav-brand::after,
.ir-header a.vortex-nav-brand::after {
  content: none !important;
  display: none !important;
}

#root nav.fixed .flex.items-center.gap-1,
#root nav.fixed .flex.items-center.gap-4,
.ir-header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  margin-left: auto;
}

.ir-header-actions {
  margin-left: auto;
}

#root nav.fixed button.ir-react-menu-btn,
#root nav.fixed button.md\:hidden,
.ir-static-menu-btn,
.ir-translate-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0 !important;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent !important;
  color: var(--text-bright) !important;
  flex-shrink: 0;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

#root nav.fixed button.ir-react-menu-btn:hover,
#root nav.fixed button.ir-react-menu-btn[aria-expanded="true"],
.ir-static-menu-btn:hover,
.ir-static-menu-btn[aria-expanded="true"],
.ir-translate-btn:hover,
.ir-logout-btn:hover,
.ir-dashboard-btn:hover,
.ir-dashboard-btn.active {
  border-color: var(--hairline-bright);
  background: var(--ghost-bg) !important;
}

.ir-logout-btn:not(.ir-logout-header-btn):not(.ir-drawer-logout) {
  display: none;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: var(--ir-header-icon-size, 24px);
  height: var(--ir-header-icon-size, 24px);
  padding: 0 !important;
  border: none;
  border-radius: 0;
  background: transparent !important;
  color: var(--ir-header-icon-logout, #FF453A) !important;
  flex-shrink: 0;
  cursor: pointer;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transition: color 0.18s ease;
}

html.access-granted .ir-logout-header-btn {
  display: inline-flex !important;
}

html.access-granted #ir-nav-drawer .ir-drawer-logout {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.ir-dashboard-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem !important;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent !important;
  color: var(--text-bright) !important;
  font-family: var(--ir-font, 'D-DIN', 'Barlow', system-ui, sans-serif);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
  cursor: pointer;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  text-decoration: none;
}

html.access-granted .ir-dashboard-btn {
  display: none !important;
}

@media (max-width: 899px) {
  .ir-dashboard-btn {
    font-size: 0.52rem !important;
    letter-spacing: 0.06em !important;
    padding: 0 0.45rem !important;
    min-width: 0 !important;
    max-width: 6.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.ir-dashboard-btn.active {
  color: #fff !important;
}

.ir-translate-host,
#google_translate_element.ir-translate-host {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.ir-header {
  gap: 0.75rem;
}

.ir-header .vortex-nav-brand {
  flex: 1;
  min-width: 0;
}
