/* ============================================================
   Плавающая панель внизу экрана: Glassmorphic Floating Dock
   ============================================================ */

.pbg-float-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 16px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.pbg-float-bar.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pbg-float-bar > * { 
  pointer-events: auto; 
}

/* Кнопка поддержки "Нужна помощь?" */
.pbg-float-support {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(18, 20, 29, 0.72) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #aeb6d2;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.pbg-float-support i { 
  font-size: 17px; 
  color: #707893; 
  transition: color 0.2s ease;
}

.pbg-float-support:hover {
  color: #ffffff;
  border-color: rgba(79, 234, 159, 0.35);
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.55), 0 0 15px rgba(79, 234, 159, 0.12);
}

.pbg-float-support:hover i { 
  color: #4fea9f; 
}

/* Стеклянная пилюля переключателей */
.pbg-float-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 44px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(18, 20, 29, 0.72) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pbg-float-pill__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #707893;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.pbg-float-pill__btn i { 
  font-size: 18px; 
  line-height: 0; 
}

.pbg-float-pill__btn:not(.pbg-float-pill__btn--top):hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.pbg-float-pill__btn:not(.pbg-float-pill__btn--top) {
  width: 36px;
  padding: 0;
}

/* Кнопка "Наверх" */
.pbg-float-pill__btn--top {
  background: linear-gradient(135deg, #4fea9f 0%, #22b877 100%) !important;
  color: #08150f !important;
  text-shadow: none;
  box-shadow: 0 4px 15px rgba(79, 234, 159, 0.4);
}

.pbg-float-pill__btn--top:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 234, 159, 0.55);
}

/* Мобильная адаптация */
@media (max-width: 575.98px) {
  .pbg-float-bar { 
    bottom: 12px; 
    gap: 10px; 
  }

  .pbg-float-support { 
    width: 48px; 
    height: 48px; 
    padding: 0; 
    justify-content: center; 
    border-radius: 50%; 
  }
  
  .pbg-float-support span { 
    display: none; 
  }

  .pbg-float-pill { 
    height: 48px; 
    padding: 5px; 
    gap: 4px; 
  }
  
  .pbg-float-pill__btn:not(.pbg-float-pill__btn--top) { 
    width: 38px; 
    height: 38px; 
  }

  .pbg-float-pill__btn--top span { 
    display: none; 
  }
  
  .pbg-float-pill__btn--top { 
    width: 38px; 
    height: 38px; 
    padding: 0; 
  }
}

@media (prefers-reduced-motion: reduce) {
  .pbg-float-bar { 
    transition: opacity 0.2s ease; 
    transform: none; 
  }
}