/* Guide hub search + category strip — shared by card machines & broadband/VoIP (matches energy hub look). */
.hub-filter-sentinel {
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.hub-controls-sticky {
  position: sticky;
  top: var(--hub-sticky-top, 56px);
  z-index: 150;
  margin: 0 0 1.25rem;
  padding: 0.75rem 0 0.875rem;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border-bottom: 1px solid transparent;
}

.hub-controls-sticky.hub-controls-sticky--stuck {
  background: rgba(10, 14, 26, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.hub-controls-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

#hub-filter-wrap .hub-filter-widget.sm-widget {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

#hub-filter-wrap .hub-filter-widget .widget {
  padding: 0 !important;
}

#hub-filter-wrap .hub-search-wrap {
  margin-bottom: 1rem;
}

#hub-filter-wrap .hub-search-hint {
  font-family: "Manrope", sans-serif;
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hub-search-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 14px 16px;
  font-family: "Manrope", sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hub-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.hub-search-input:focus {
  outline: none;
  background: rgba(46, 125, 210, 0.1);
  border-color: rgba(46, 125, 210, 0.55);
  box-shadow: 0 0 0 3px rgba(46, 125, 210, 0.15);
}

.hub-tabs-row {
  position: relative;
  margin-top: 12px;
}

.hub-tabs-row.hub-tabs-row--overflow::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48px;
  pointer-events: none;
  background: linear-gradient(to left, rgba(10, 14, 26, 0.25), transparent);
  z-index: 1;
}

.hub-tabs-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-right: -16px;
  padding-right: 16px;
  touch-action: pan-x pinch-zoom;
}

.hub-tabs-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.hub-filter-widget .hub-filter-bar.hub-cat-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  padding: 4px;
  margin: 0;
  width: max-content;
  min-width: 100%;
  box-sizing: border-box;
  background: transparent;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hub-filter-widget .hub-filter-tab {
  flex: 0 0 auto;
  cursor: pointer;
  font-family: "Manrope", sans-serif;
  font-size: clamp(0.62rem, 1.65vw, 0.76rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.45);
  background: transparent !important;
  border: none;
  border-radius: 12px;
  padding: 10px 12px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  box-shadow: none !important;
}

@media (min-width: 640px) {
  .hub-filter-widget .hub-filter-tab {
    font-size: 0.76rem;
    padding: 12px 14px;
  }
}

.hub-filter-widget .hub-filter-tab:hover {
  color: rgba(255, 255, 255, 0.78) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.hub-filter-widget .hub-filter-tab.is-active {
  color: #fff !important;
  background: linear-gradient(
    180deg,
    rgba(74, 222, 128, 0.22) 0%,
    rgba(74, 222, 128, 0.1) 100%
  ) !important;
  border: 1px solid rgba(74, 222, 128, 0.3) !important;
  box-shadow: 0 4px 20px -4px rgba(74, 222, 128, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.hub-no-results {
  display: none;
  text-align: center;
  padding: 2.5rem 16px 1rem;
  margin: 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.42);
}

.hub-no-results.is-visible {
  display: block;
}

@media (max-width: 767px) {
  #hub-filter-wrap .hub-controls-inner {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  #hub-search {
    font-size: 16px;
  }

  .hub-filter-tab {
    min-height: 44px;
    padding: 12px 14px;
  }

  .hub-tabs-scroll {
    margin-right: calc(-16px - env(safe-area-inset-right, 0px));
    padding-right: calc(16px + env(safe-area-inset-right, 0px));
  }
}
