/* =========================================================
   VIP UI — нижнее липкое меню (только мобайл, < 860px)
   Нужен: tokens.css. Работает на любой странице сайта, отдельно от .vip.
   На body добавьте класс .vip-has-tabbar — контент не уйдёт под меню.
   ========================================================= */

.vip-has-tabbar { padding-bottom: calc(var(--vip-tabbar-h) + env(safe-area-inset-bottom)); }

.vip-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  height: calc(var(--vip-tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  box-sizing: border-box;
  background: var(--vip-bar-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--vip-border);
  font-family: var(--vip-font);
}
.vip-tabbar *, .vip-tabbar *::before, .vip-tabbar *::after { box-sizing: border-box; }
.vip-tabbar svg { display: block; flex: none; }

.vip-tabbar__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--vip-text-3); text-decoration: none;
  font-size: 11px; font-weight: 500; line-height: 1.1;
  -webkit-tap-highlight-color: transparent;
}
button.vip-tabbar__item { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; font-family: inherit; }
.vip-tabbar__item:hover { color: var(--vip-text-2); }
.vip-tabbar__item[aria-current="page"] { color: var(--vip-accent); font-weight: 600; }
.vip-tabbar__item .vip-icon { width: 24px; height: 24px; }

/* Центральная кнопка VIP — приподнята над панелью */
.vip-tabbar__item--vip { justify-content: flex-end; gap: 3px; padding-bottom: 8px; color: var(--vip-gold) !important; font-weight: 700; }
.vip-tabbar__vip {
  width: 52px; height: 52px; margin-top: -24px; border-radius: 50%;
  background: var(--vip-gradient-ring); border: 4px solid var(--vip-bg);
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 8px 22px rgba(255,77,109,.4);
  transition: transform .15s;
}
.vip-tabbar__item--vip:active .vip-tabbar__vip { transform: scale(.94); }
.vip-tabbar__vip .vip-icon { stroke-width: 2.2; }

/* Счётчик (квесты, уведомления). Пустой — спрячьте атрибутом hidden. */
.vip-tabbar__icon { position: relative; display: flex; }
.vip-tabbar__badge {
  position: absolute; top: -4px; right: -8px;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--vip-accent); border: 2px solid #0F1116; color: #fff;
  font-size: 10px; font-weight: 800; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.vip-tabbar__badge[hidden] { display: none; }

@media (min-width: 860px) {
  .vip-tabbar { display: none; }
  .vip-has-tabbar { padding-bottom: 0; }
}
