/* Cutup Help Center V3 — final polish */

.cutup-help-root {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 100%;
  overflow-x: hidden;
}

/* ——— Button system ——— */
.cutup-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
}

.cutup-help-btn:active {
  transform: scale(0.98);
}

.cutup-help-btn--primary {
  height: 44px;
  padding: 0 20px;
  border: none;
  color: #fff;
  background: linear-gradient(135deg, #635bff 0%, #818cf8 100%);
  box-shadow: 0 2px 8px rgba(99, 91, 255, 0.28);
}

.cutup-help-btn--primary:hover {
  box-shadow: 0 4px 14px rgba(99, 91, 255, 0.38);
}

.cutup-help-btn--secondary {
  height: 44px;
  padding: 0 18px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #334155;
}

.cutup-help-btn--secondary:hover {
  border-color: #c7d2fe;
  background: #fafaff;
  color: #4338ca;
}

.cutup-help-btn__icon {
  flex-shrink: 0;
}

.cutup-help-mobile-cta.cutup-help-btn--primary {
  display: none;
}

/* ——— Header ——— */
.cutup-help-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}

.cutup-help-head__copy {
  flex: 1;
  min-width: 0;
}

.cutup-help-head .section-title {
  margin: 0 0 4px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.cutup-help-head .dashboard-section-lead {
  margin: 0;
  max-width: 520px;
}

#cutupHelpHeadCta {
  flex-shrink: 0;
}

/* ——— Search ——— */
.cutup-help-search-wrap {
  position: relative;
  z-index: 30;
}

.cutup-help-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.cutup-help-search:focus-within {
  border-color: #c7d2fe;
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.12);
}

.cutup-help-search svg {
  color: #94a3b8;
  flex-shrink: 0;
}

.cutup-help-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  background: transparent;
}

.cutup-help-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: min(440px, 62vh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

.cutup-help-search-dropdown[hidden] {
  display: none;
}

.cutup-help-search-dropdown__section-label,
.cutup-help-search-dropdown__hint {
  padding: 10px 14px 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.cutup-help-search-dropdown__recent {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: none;
  border-bottom: 1px solid #f8fafc;
  background: #fff;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
  font-family: inherit;
}

.cutup-help-search-dropdown__recent:hover,
.cutup-help-search-dropdown__recent.is-focused {
  background: #fafaff;
}

.cutup-help-search-dropdown__empty {
  padding: 20px 16px 12px;
  text-align: center;
}

.cutup-help-search-dropdown__empty-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.cutup-help-search-dropdown__empty-desc {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}

.cutup-help-search-dropdown__item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid #f8fafc;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
}

.cutup-help-search-dropdown__item:hover,
.cutup-help-search-dropdown__item.is-focused {
  background: #fafaff;
}

.cutup-help-search-dropdown__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f1f5f9;
  font-size: 18px;
}

.cutup-help-search-dropdown__body strong {
  display: block;
  font-size: 14px;
  color: #0f172a;
  margin-bottom: 2px;
}

.cutup-help-search-dropdown__cat {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 2px;
}

.cutup-help-search-dropdown__desc {
  display: block;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.cutup-help-search-dropdown__support {
  width: calc(100% - 16px);
  margin: 8px;
  justify-content: center;
}

.cutup-help-mark {
  background: #fef08a;
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}

/* ——— Categories ——— */
.cutup-help-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.cutup-help-cat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  height: 100%;
  min-height: 140px;
  padding: 16px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
  box-sizing: border-box;
}

.cutup-help-cat:hover {
  border-color: #c7d2fe;
  box-shadow: 0 4px 14px rgba(99, 91, 255, 0.1);
}

.cutup-help-cat__icon {
  font-size: 24px;
  line-height: 1;
}

.cutup-help-cat__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.cutup-help-cat__body strong {
  font-size: 14px;
  color: #0f172a;
}

.cutup-help-cat__body span {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
  flex: 1;
}

.cutup-help-cat__body em {
  font-size: 11px;
  color: #94a3b8;
  font-style: normal;
  margin-top: auto;
}

/* ——— Category page ——— */
.cutup-help-category-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 20px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: linear-gradient(135deg, #fafaff 0%, #fff 55%);
}

.cutup-help-category-hero__icon {
  grid-row: span 2;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border-radius: 14px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
}

.cutup-help-category-title {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.cutup-help-category-desc {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
  max-width: 56ch;
}

.cutup-help-category-count {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #6366f1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cutup-help-featured {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.cutup-help-featured__label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.cutup-help-category-list {
  margin-top: 4px;
}

.cutup-help-section-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.cutup-help-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cutup-help-badge--popular {
  background: #fef3c7;
  color: #b45309;
}

.cutup-help-article__row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

/* ——— Panels & cards ——— */
.cutup-help-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cutup-help-panel {
  padding: 16px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 14px;
  background: #fff;
}

.cutup-help-panel h2 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cutup-help-articles {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cutup-help-article {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  background: #fafafa;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
  box-sizing: border-box;
}

.cutup-help-article:hover {
  background: #fafaff;
  border-color: #e0e7ff;
}

.cutup-help-article__cat {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: #6366f1;
}

.cutup-help-article__title {
  display: block;
  font-size: 14px;
  color: #0f172a;
  margin-bottom: 6px;
}

.cutup-help-article__summary {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}

.cutup-help-article__meta {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: #94a3b8;
}

.cutup-help-back.cutup-help-btn--secondary {
  align-self: flex-start;
  height: auto;
  min-height: 36px;
  padding: 8px 14px;
}

/* ——— Article page ——— */
.cutup-help-root--article {
  gap: 20px;
}

.cutup-help-article-view {
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.cutup-help-article-hero {
  padding: 28px 28px 20px;
  border-bottom: 1px solid #f1f5f9;
}

.cutup-help-article-view h1 {
  margin: 8px 0 12px;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 22ch;
}

.cutup-help-article-view__cat {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #6366f1;
}

.cutup-help-article-view__summary {
  font-size: 17px;
  color: #64748b;
  margin: 0 0 14px;
  line-height: 1.55;
  max-width: 62ch;
}

.cutup-help-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #94a3b8;
}

.cutup-help-figure {
  margin: 0;
  padding: 28px 32px;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}

.cutup-help-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.cutup-help-figure--inline {
  padding-top: 8px;
  padding-bottom: 8px;
  background: #fff;
  border-bottom: none;
}

.cutup-help-figure__caption {
  margin-top: 12px;
  font-size: 13px;
  color: #64748b;
  text-align: center;
  line-height: 1.45;
}

.cutup-help-search-dropdown__hint--bottom {
  padding: 12px 14px 14px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.45;
  border-top: 1px solid #f1f5f9;
}

.cutup-help-section {
  padding: 32px 32px 0;
}

.cutup-help-section--overview {
  padding-top: 28px;
}

.cutup-help-section:last-of-type {
  padding-bottom: 8px;
}

.cutup-help-section--related {
  padding-top: 36px;
  padding-bottom: 12px;
}

.cutup-help-section h2 {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.cutup-help-prose {
  max-width: 70ch;
  font-size: 16px;
  line-height: 1.75;
  color: #334155;
}

.cutup-help-prose p {
  margin: 0 0 12px;
}

.cutup-help-steps,
.cutup-help-tips {
  margin: 0;
  padding-left: 1.35rem;
}

.cutup-help-steps li,
.cutup-help-tips li {
  margin-bottom: 14px;
}

.cutup-help-section--qa {
  padding-top: 36px;
}

.cutup-help-qa {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 70ch;
}

.cutup-help-qa__item {
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 14px 16px;
  background: #fafafa;
}

.cutup-help-qa__item summary {
  font-weight: 600;
  font-size: 15px;
  color: #0f172a;
  cursor: pointer;
  line-height: 1.45;
}

.cutup-help-qa__item p {
  margin: 12px 0 0;
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
}

.cutup-help-related {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 72ch;
}

.cutup-help-cta-card {
  margin: 40px 32px 32px;
  padding: 32px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fafaff 0%, #f5f3ff 100%);
  border: 1px solid #e0e7ff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cutup-help-cta-card__copy {
  flex: 1;
  min-width: 220px;
  max-width: 52ch;
}

.cutup-help-cta-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  color: #0f172a;
  text-transform: none;
  letter-spacing: -0.02em;
}

.cutup-help-cta-card p {
  margin: 0;
  font-size: 15px;
  color: #64748b;
  line-height: 1.55;
}

.cutup-help-cta-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cutup-help-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 16px;
}

.cutup-help-empty h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.cutup-help-empty p {
  margin: 0 0 16px;
  font-size: 14px;
  color: #64748b;
  max-width: 320px;
}

/* ——— Responsive ——— */
@media (max-width: 1024px) {
  .cutup-help-cats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cutup-help-panels {
    grid-template-columns: 1fr;
  }

  .cutup-help-category-hero {
    grid-template-columns: 1fr;
  }

  .cutup-help-category-hero__icon {
    grid-row: auto;
  }

  .cutup-help-article-hero,
  .cutup-help-section,
  .cutup-help-figure {
    padding-left: 18px;
    padding-right: 18px;
  }

  .cutup-help-cta-card {
    margin: 24px 16px 16px;
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
  }

  .cutup-help-cta-card__actions {
    flex-direction: column;
  }

  .cutup-help-cta-card__actions .cutup-help-btn {
    width: 100%;
  }

  .cutup-help-search-dropdown {
    max-height: min(360px, 55vh);
  }
}

@media (max-width: 520px) {
  .cutup-help-cats {
    grid-template-columns: 1fr;
  }

  .cutup-help-cat {
    min-height: 0;
  }
}
