/* ══════════════════════════════════════
   BOTTOM NAVIGATION BAR — CoolGame Store
   Подключить: <link rel="stylesheet" href="bottom-nav.css">
   ══════════════════════════════════════ */

/* Отступ контента снизу — обязателен! */
.page-content,
#wrapper {
  padding-bottom: 64px;
}

/* Панель */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 390px;
  height: 60px;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: stretch;
  z-index: 100;
  padding-bottom: 4px;
  font-family: 'Nunito', sans-serif;
}

/* Вкладка */
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  position: relative;
  padding: 8px 0 4px;
  color: rgba(0, 0, 0, 0.35);
  text-decoration: none;
  transition: color 0.2s ease;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

/* Активная */
.nav-item.active {
  color: #b38600;
}

/* Индикатор */
.nav-item .nav-indicator {
  display: none;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  border-radius: 1px;
  background: #FFD600;
}
.nav-item.active .nav-indicator {
  display: block;
}

/* Иконка */
.nav-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Бейдж */
.nav-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ffffff;
}

/* Подпись */
.nav-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1;
}

/* Скрыть на десктопе, показывать только на мобильных */
@media (min-width: 769px) {
  .bottom-nav {
    display: none !important;
  }
  .page-content,
  #wrapper {
    padding-bottom: 0;
  }
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 390px) {
  .bottom-nav {
    max-width: 100%;
  }
}

/* Смещение JivoChat выше панели навигации */
@media (max-width: 768px) {
  #jivo-iframe-container,
  .jivo-iframe-container,
  [id^="jivo"],
  [class^="jivo"] {
    bottom: 70px !important; /* 60px панель + 10px отступ */
  }
}