#app-container {
  display: none;
  flex-direction: column;
  height: 100vh;
  opacity: 0;
  transition: opacity 0.5s ease;
}
#app-container.visible {
  display: flex;
  opacity: 1;
  height: auto;
}

.logo-text {
  cursor: pointer;
  transition: opacity 0.2s;
}
.logo-text:hover {
  opacity: 0.9;
}

#main-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height, 80px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4rem;
  background-color: var(--bg-main);
  z-index: 99999;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease,
    padding 0.3s ease, background-color 0.3s ease, height 0.3s ease,
    border-bottom 0.3s ease;
  border-bottom: 1px solid transparent;
}

#main-header.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

body:not(.at-top) #main-header,
body.app-active #main-header,
.scrolled #main-header {
  background-color: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--border-color);
  height: 70px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}


.desktop-only {
  display: inline-flex !important;
}
.mobile-only {
  display: none !important;
}

@media (max-width: 1024px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: inline-flex !important;
  }
  #main-header {
    padding: 0 1.5rem;
    height: 70px;
  }
}


.menu-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1001;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--bg-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.mobile-menu.active {
  right: 0;
}
.mobile-menu .btn-bracket {
  font-size: 1.5rem;
}
