/* ============================
   MOBILE: скрываем верхний этаж
   ============================ */
@media (max-width: 991.98px) {
  #topBar {
    display: none !important;
  }
}

.site-header{
  position: relative;
  z-index: 1030;
}

/* Верхняя строка */
.top-bar{
  background:#fff;
  transition: transform .2s ease, opacity .2s ease;
  will-change: transform, opacity;
}

/* Второй этаж */
.main-nav-wrap{
  background:#fff;
}

/* Bottom border on navbar - always visible */
.main-nav-wrap .navbar {
  border-bottom: 1px solid #dee2e6;
}

/* Плейсхолдер под фиксированную навигацию */
.nav-spacer{
  height: 0;
}

/* Фиксируем второй этаж */
.site-header.is-fixed .main-nav-wrap{
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1030;
}

/* User chip styles */
@media (max-width: 991.98px){
  .user-chip span{ max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
}

/* User balance styles */
.user-balance-chip {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.875rem;
}

.user-balance-chip:hover {
  background: #e9ecef;
}

.user-balance {
  font-weight: 600;
}

/* Mobile balance display */
@media (max-width: 991.98px) {
  .user-balance-chip {
    font-size: 0.75rem;
    padding: 2px 8px;
  }
}

.user-chip{
  padding: .25rem .5rem;
  border: 0 !important;
  border-radius: 999px;
  background: transparent;
  color: inherit;
}

.user-chip:hover{ background: rgba(0,0,0,.03); }
.user-chip:active{ background: rgba(0,0,0,.06); }

/* Circular user avatar */
.user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #dee2e6;
}

/* Mobile icon buttons */
.mobile-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  outline: none !important;
  box-shadow: none !important;
}
.mobile-btn-icon:hover {
  opacity: 0.8;
}
.mobile-btn-icon:focus {
  outline: none !important;
  box-shadow: none !important;
}
.mobile-btn-icon img {
  display: block;
}

/* Mobile user avatar */
.mobile-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

/* Animated burger button */
.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background: transparent !important;
  border: none !important;
  padding: 0;
  cursor: pointer;
  gap: 5px;
}
.burger-btn:focus {
  outline: none !important;
  box-shadow: none !important;
}
.burger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Burger animation when menu is open */
.burger-btn[aria-expanded="true"] .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger-btn[aria-expanded="true"] .burger-line:nth-child(2) {
  opacity: 0;
}
.burger-btn[aria-expanded="true"] .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
