/**
 * v2 — Support page: search + category filter.
 *
 * @since 2026-05-16
 */

.xh-support-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 24px;
  padding: 14px 16px;
  background: rgba(12, 19, 34, .55);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
}
.xh-support-toolbar__input-wrap { position: relative; flex: 1 1 280px; min-width: 0; }
.xh-support-toolbar__icon {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--xh-text-secondary, #a4b3c8);
  pointer-events: none;
}
.xh-support-toolbar__input {
  width: 100%;
  padding: 11px 36px 11px 40px;
  background: rgba(6, 10, 20, .6);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  color: var(--xh-text, #e8ecf2);
  font: inherit; font-size: 14px;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.xh-support-toolbar__input::placeholder { color: var(--xh-text-muted, #8a99b0); }
.xh-support-toolbar__input::-webkit-search-cancel-button,
.xh-support-toolbar__input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.xh-support-toolbar__input:focus {
  border-color: #FFCC00;
  background: rgba(6, 10, 20, .85);
}
.xh-support-toolbar__clear {
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: none;
  align-items: center; justify-content: center;
  color: var(--xh-text-muted, #8a99b0);
  font-size: 18px; line-height: 1;
  padding: 0;
}
.xh-support-toolbar__clear:hover { color: #FFCC00; background: rgba(255,255,255,.06); }
.xh-support-toolbar.has-query .xh-support-toolbar__clear { display: inline-flex; }

.xh-support-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.xh-support-chip {
  padding: 8px 14px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  color: var(--xh-text-secondary, #a4b3c8);
  font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.xh-support-chip:hover { color: var(--xh-text, #e8ecf2); border-color: rgba(255,255,255,.25); }
.xh-support-chip.is-active {
  background: rgba(255, 204, 0, .12);
  color: #FFCC00;
  border-color: rgba(255, 204, 0, .4);
}
.xh-support-chip:focus-visible { outline: 2px solid #FFCC00; outline-offset: 2px; }
.xh-support-chip__count { font-size: 11px; opacity: 1; margin-left: 4px; font-weight: 700; color: var(--xh-text-secondary, #a4b3c8); }
.xh-support-chip.is-active .xh-support-chip__count { color: #fff; }

.xh-support-meta {
  font-size: 13px;
  color: var(--xh-text-secondary, #a4b3c8);
  margin: -8px 0 16px;
  min-height: 18px;
}
.xh-support-meta--hidden { display: none; }

.xh-support-empty {
  display: none;
  padding: 36px 24px;
  text-align: center;
  background: rgba(12, 19, 34, .4);
  border: 1px dashed rgba(255, 255, 255, .12);
  border-radius: 14px;
  color: var(--xh-text-secondary, #a4b3c8);
  margin: 0 0 24px;
}
.xh-support-empty.is-visible { display: block; }
.xh-support-empty__title {
  font-size: 16px; font-weight: 700;
  color: var(--xh-text, #e8ecf2);
  margin: 0 0 6px;
}
.xh-support-empty__sub { margin: 0; font-size: 13px; }

/* hidden items */
.xh-support-faq details.is-hidden { display: none; }

@media (max-width: 640px) {
  .xh-support-toolbar { padding: 12px; gap: 10px; }
  .xh-support-chips { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .xh-support-chip { white-space: nowrap; padding: 7px 12px; font-size: 12px; }
}
