/* Support Center — page-support.php */

.tb-page-support {
  padding-top: 64px;
  padding-bottom: 96px;
}

/* Hero */
.tb-support-hero {
  padding-bottom: 0;
}

.tb-support-hero__inner {
  text-align: center;
}

.tb-support-hero__chip-wrap {
  display: inline-flex;
  margin-bottom: 22px;
}

.tb-support-hero__chip-icon {
  color: var(--ai-soft);
}

.tb-support-hero__title {
  font-size: clamp(56px, 7.4vw, 108px);
  margin: 0;
  font-style: italic;
  letter-spacing: -0.005em;
  line-height: 0.92;
}

.tb-support-hero__title-ink {
  color: var(--ink);
}

.tb-support-hero__title-gradient {
  background: linear-gradient(90deg, var(--ai-soft), var(--ai), #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tb-support-hero__subtitle {
  margin-top: 18px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 17px;
  color: var(--ink-muted);
}

/* Search pill */
.tb-support-search {
  margin: 32px auto 0;
  max-width: 720px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-0));
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: 0 16px 50px -20px var(--ai-glow);
}

.tb-support-search__icon {
  color: var(--ai-soft);
  flex-shrink: 0;
  display: flex;
}

.tb-support-search__input {
  flex: 1;
  background: transparent;
  border: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  min-width: 0;
}

.tb-support-search__input::placeholder {
  color: var(--ink-muted);
}

.tb-support-search__clear {
  background: transparent;
  border: 0;
  color: var(--ink-muted);
  padding: 6px;
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
}

.tb-support-search__meta {
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

/* Category cards */
.tb-support-categories {
  margin-top: 56px;
}

.tb-support-categories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tb-support-category-card {
  text-align: left;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  padding: 22px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: none;
  transform: translateY(0);
  width: 100%;
}

.tb-support-category-card:hover,
.tb-support-category-card:focus-visible {
  transform: translateY(-2px);
}

.tb-support-category-card__icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.tb-support-category-card[data-tone="ai"] .tb-support-category-card__icon {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: var(--ai-soft);
}

.tb-support-category-card[data-tone="human"] .tb-support-category-card__icon {
  background: rgba(255, 122, 26, 0.1);
  border: 1px solid rgba(255, 122, 26, 0.35);
  color: var(--human-soft);
}

.tb-support-category-card[data-tone="win"] .tb-support-category-card__icon {
  background: rgba(34, 229, 140, 0.1);
  border: 1px solid rgba(34, 229, 140, 0.35);
  color: #6dffb6;
}

.tb-support-category-card[data-tone="purple"] .tb-support-category-card__icon {
  background: rgba(192, 132, 252, 0.1);
  border: 1px solid rgba(192, 132, 252, 0.35);
  color: #dab8ff;
}

.tb-support-category-card[data-tone="ai"]:hover,
.tb-support-category-card[data-tone="ai"]:focus-visible {
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: 0 16px 40px -16px rgba(0, 212, 255, 0.33);
}

.tb-support-category-card[data-tone="human"]:hover,
.tb-support-category-card[data-tone="human"]:focus-visible {
  border-color: rgba(255, 122, 26, 0.35);
  box-shadow: 0 16px 40px -16px rgba(255, 122, 26, 0.33);
}

.tb-support-category-card[data-tone="win"]:hover,
.tb-support-category-card[data-tone="win"]:focus-visible {
  border-color: rgba(34, 229, 140, 0.35);
  box-shadow: 0 16px 40px -16px rgba(34, 229, 140, 0.33);
}

.tb-support-category-card[data-tone="purple"]:hover,
.tb-support-category-card[data-tone="purple"]:focus-visible {
  border-color: rgba(192, 132, 252, 0.35);
  box-shadow: 0 16px 40px -16px rgba(192, 132, 252, 0.33);
}

.tb-support-category-card__title {
  font-size: 22px;
  font-style: italic;
  color: var(--ink);
  line-height: 1;
}

.tb-support-category-card__blurb {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 7px;
  line-height: 1.5;
}

.tb-support-category-card__footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tb-support-category-card__count {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tb-support-category-card[data-tone="ai"] .tb-support-category-card__count {
  color: var(--ai-soft);
}

.tb-support-category-card[data-tone="human"] .tb-support-category-card__count {
  color: var(--human-soft);
}

.tb-support-category-card[data-tone="win"] .tb-support-category-card__count {
  color: #6dffb6;
}

.tb-support-category-card[data-tone="purple"] .tb-support-category-card__count {
  color: #dab8ff;
}

.tb-support-category-card__arrow {
  transition: transform 0.15s;
}

.tb-support-category-card[data-tone="ai"] .tb-support-category-card__arrow {
  color: var(--ai);
}

.tb-support-category-card[data-tone="human"] .tb-support-category-card__arrow {
  color: var(--human);
}

.tb-support-category-card[data-tone="win"] .tb-support-category-card__arrow {
  color: var(--win);
}

.tb-support-category-card[data-tone="purple"] .tb-support-category-card__arrow {
  color: #c084fc;
}

.tb-support-category-card:hover .tb-support-category-card__arrow,
.tb-support-category-card:focus-visible .tb-support-category-card__arrow {
  transform: translateX(4px);
}

/* FAQ sections */
.tb-support-content {
  margin-top: 80px;
}

.tb-support-section {
  margin-bottom: 56px;
  scroll-margin-top: 100px;
}

.tb-support-section__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.tb-support-section__icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tb-support-section[data-tone="ai"] .tb-support-section__icon {
  background: color-mix(in srgb, var(--ai-soft) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--ai-soft) 55%, transparent);
  color: var(--ai-soft);
}

.tb-support-section[data-tone="human"] .tb-support-section__icon {
  background: color-mix(in srgb, var(--human-soft) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--human-soft) 55%, transparent);
  color: var(--human-soft);
}

.tb-support-section[data-tone="win"] .tb-support-section__icon {
  background: rgba(109, 255, 182, 0.082);
  border: 1px solid rgba(109, 255, 182, 0.333);
  color: #6dffb6;
}

.tb-support-section[data-tone="purple"] .tb-support-section__icon {
  background: rgba(192, 132, 252, 0.082);
  border: 1px solid rgba(192, 132, 252, 0.333);
  color: #c084fc;
}

.tb-support-section__title {
  font-size: 32px;
  font-style: italic;
  color: var(--ink);
  margin: 0;
  line-height: 1;
}

.tb-support-section__count {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-top: 4px;
  text-transform: uppercase;
}

.tb-support-section__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* FAQ accordion items */
.tb-support-faq-item {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s;
}

.tb-support-faq-item.is-open[data-tone="ai"] {
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.06), transparent);
  border-color: rgba(0, 212, 255, 0.31);
}

.tb-support-faq-item.is-open[data-tone="human"] {
  background: linear-gradient(180deg, rgba(255, 122, 26, 0.06), transparent);
  border-color: rgba(255, 122, 26, 0.31);
}

.tb-support-faq-item.is-open[data-tone="win"] {
  background: linear-gradient(180deg, rgba(34, 229, 140, 0.06), transparent);
  border-color: rgba(34, 229, 140, 0.31);
}

.tb-support-faq-item.is-open[data-tone="purple"] {
  background: linear-gradient(180deg, rgba(192, 132, 252, 0.06), transparent);
  border-color: rgba(192, 132, 252, 0.31);
}

.tb-support-faq-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 22px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.tb-support-faq-question {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.tb-support-faq-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  transition: all 0.15s;
}

.tb-support-faq-item[data-tone="ai"] .tb-support-faq-icon {
  color: var(--ai);
}

.tb-support-faq-item[data-tone="human"] .tb-support-faq-icon {
  color: var(--human);
}

.tb-support-faq-item[data-tone="win"] .tb-support-faq-icon {
  color: var(--win);
}

.tb-support-faq-item[data-tone="purple"] .tb-support-faq-icon {
  color: #c084fc;
}

.tb-support-faq-item.is-open[data-tone="ai"] .tb-support-faq-icon {
  background: var(--ai);
  border-color: var(--ai);
  color: #000;
}

.tb-support-faq-item.is-open[data-tone="human"] .tb-support-faq-icon {
  background: var(--human);
  border-color: var(--human);
  color: #000;
}

.tb-support-faq-item.is-open[data-tone="win"] .tb-support-faq-icon {
  background: var(--win);
  border-color: var(--win);
  color: #000;
}

.tb-support-faq-item.is-open[data-tone="purple"] .tb-support-faq-icon {
  background: #c084fc;
  border-color: #c084fc;
  color: #000;
}

.tb-support-faq-answer {
  padding: 0 22px 22px;
}

.tb-support-faq-answer__inner {
  padding-top: 14px;
  font-size: 14.5px;
  color: var(--ink-muted);
  line-height: 1.65;
}

.tb-support-faq-item.is-open[data-tone="ai"] .tb-support-faq-answer__inner {
  border-top: 1px dashed rgba(0, 212, 255, 0.19);
}

.tb-support-faq-item.is-open[data-tone="human"] .tb-support-faq-answer__inner {
  border-top: 1px dashed rgba(255, 122, 26, 0.19);
}

.tb-support-faq-item.is-open[data-tone="win"] .tb-support-faq-answer__inner {
  border-top: 1px dashed rgba(34, 229, 140, 0.19);
}

.tb-support-faq-item.is-open[data-tone="purple"] .tb-support-faq-answer__inner {
  border-top: 1px dashed rgba(192, 132, 252, 0.19);
}

/* Search results */
.tb-support-search-results {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.tb-support-search-results__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tb-support-search-result {
  padding: 0;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.tb-support-search-result.is-hidden {
  display: none;
}

.tb-support-search-result__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 18px 22px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.tb-support-search-result__question {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  display: block;
}

.tb-support-search-result__category {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  margin-top: 4px;
  text-transform: uppercase;
  display: block;
}

.tb-support-search-result__arrow {
  color: var(--ai-soft);
  font-family: var(--f-display);
  font-size: 20px;
  flex-shrink: 0;
}

.tb-support-search-result__answer {
  margin: 0 22px 22px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.tb-support-search-empty {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  text-align: center;
}

.tb-support-search-empty__title {
  font-size: 28px;
  font-style: italic;
  color: var(--ink);
}

.tb-support-search-empty__text {
  margin-top: 8px;
  color: var(--ink-muted);
}

.tb-support-search-empty__query {
  color: var(--ink);
}

/* CTA */
.tb-support-cta-wrap {
  margin-top: 80px;
}

.tb-support-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(192, 132, 252, 0.1));
  border: 1px solid var(--line-strong);
  padding: 44px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.tb-support-cta__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 600px 300px at 50% 50%, rgba(0, 212, 255, 0.15), transparent 70%);
}

.tb-support-cta__content,
.tb-support-cta__actions {
  position: relative;
}

.tb-support-cta__chip {
  margin-bottom: 12px;
}

.tb-support-cta__chip-dot {
  background: var(--win);
  box-shadow: 0 0 6px var(--win);
}

.tb-support-cta__title {
  font-size: 32px;
  font-style: italic;
  margin: 0;
  line-height: 1;
}

.tb-support-cta__text {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-muted);
  max-width: 540px;
}

.tb-support-cta__emphasis {
  color: var(--ink);
  font-weight: 600;
}

.tb-support-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
}

.tb-support-cta__btn {
  width: 100%;
}

/* Search mode visibility */
.tb-page-support.is-searching #tb-support-browse,
.tb-page-support.is-searching #tb-support-sections {
  display: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .tb-support-categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tb-support-categories__grid {
    grid-template-columns: 1fr;
  }

  .tb-support-cta {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 24px;
  }

  .tb-support-cta__actions {
    min-width: 0;
    width: 100%;
  }
}
