/* Help Center — public website */
.help-center-page {
  padding: 108px 0 88px;
  background:
    radial-gradient(ellipse 85% 55% at 100% 0%, rgba(59, 78, 224, 0.09), transparent),
    radial-gradient(ellipse 70% 45% at 0% 15%, rgba(14, 166, 114, 0.07), transparent),
    var(--paper, #f6f7fb);
}

.help-center-page .help-hero {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.help-center-page .help-hero .eyebrow {
  margin-inline: auto;
}

.help-center-page .help-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.35;
  margin-bottom: 12px;
}

.help-center-page .help-hero p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
  margin: 0;
}

.help-search-wrap {
  max-width: 640px;
  margin: 0 auto 36px;
  position: relative;
}

.help-search-wrap .help-search-icon {
  position: absolute;
  inset-inline-start: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--ink-faint);
  pointer-events: none;
}

.help-search-input {
  width: 100%;
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: 16px;
  padding-block: 16px;
  /* Icon inline-start, clear button inline-end — works in LTR and RTL */
  padding-inline-start: 48px;
  padding-inline-end: 48px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.help-search-input:focus {
  outline: none;
  border-color: rgba(14, 166, 114, 0.55);
  box-shadow: 0 0 0 4px rgba(14, 166, 114, 0.12), var(--shadow-sm);
}

.help-search-clear {
  position: absolute;
  inset-inline-end: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-faint);
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.help-search-clear.visible {
  display: inline-flex;
}

.help-search-clear:hover {
  background: rgba(19, 32, 67, 0.06);
  color: var(--ink);
}

.help-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}

@media (max-width: 992px) {
  .help-quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .help-quick-grid {
    grid-template-columns: 1fr;
  }
}

.help-quick-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.help-quick-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(14, 166, 114, 0.35);
}

.help-quick-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.help-quick-icon.teal {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.help-quick-icon.indigo {
  background: var(--indigo-soft);
  color: var(--indigo);
}

.help-quick-icon.amber {
  background: var(--amber-soft);
  color: #b45309;
}

.help-quick-icon.ink {
  background: rgba(19, 32, 67, 0.08);
  color: var(--ink);
}

.help-quick-card h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}

.help-quick-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.help-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 992px) {
  .help-layout {
    grid-template-columns: 1fr;
  }
}

.help-faq-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.help-faq-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fff, #fafbff);
}

.help-faq-count {
  font-size: 13.5px;
  color: var(--ink-soft);
  font-weight: 600;
}

.help-faq-count strong {
  color: var(--ink);
}

.help-faq-actions {
  display: flex;
  gap: 8px;
}

.help-faq-actions button {
  font-family: "Cairo", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--ink-soft);
  transition: 0.2s ease;
}

.help-faq-actions button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.hc-acc-list {
  padding: 8px 12px 16px;
}

.hc-acc-item {
  border-radius: 14px;
  margin-bottom: 8px;
  border: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.hc-acc-item.is-open {
  background: #fafbff;
  border-color: rgba(59, 78, 224, 0.14);
  box-shadow: 0 8px 24px rgba(19, 32, 67, 0.06);
}

.hc-acc-item.is-hidden {
  display: none;
}

.hc-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
  border: none;
  background: transparent;
  text-align: inherit;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
}

.hc-acc-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: "Cairo", sans-serif;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease;
}

.hc-acc-item.is-open .hc-acc-num {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.hc-acc-q {
  flex: 1;
  font-family: "Cairo", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.hc-acc-chevron {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, border-color 0.25s ease, background 0.25s ease;
}

.hc-acc-item.is-open .hc-acc-chevron {
  transform: rotate(180deg);
  border-color: rgba(14, 166, 114, 0.4);
  background: var(--teal-soft);
}

.hc-acc-chevron svg {
  width: 16px;
  height: 16px;
  color: var(--ink-soft);
}

.hc-acc-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}

.hc-acc-item.is-open .hc-acc-panel {
  opacity: 1;
}

.hc-acc-panel-inner {
  padding: 0 14px 18px 60px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.95;
}

html[dir="rtl"] .hc-acc-panel-inner {
  padding: 0 60px 18px 14px;
}

.hc-acc-panel-inner mark {
  background: rgba(242, 166, 36, 0.35);
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
}

.help-faq-empty {
  text-align: center;
  padding: 48px 24px 56px;
  color: var(--ink-soft);
}

.help-faq-empty svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  opacity: 0.45;
}

.help-side {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 992px) {
  .help-side {
    position: static;
  }
}

.help-side-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}

.help-side-card.highlight {
  background: linear-gradient(145deg, var(--ink) 0%, #1e3a6e 100%);
  border: none;
  color: #fff;
}

.help-side-card.highlight h3,
.help-side-card.highlight p {
  color: #fff;
}

.help-side-card.highlight p {
  opacity: 0.88;
}

.help-side-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.help-side-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin: 0 0 16px;
}

.help-side-card.highlight .btn-primary {
  width: 100%;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.help-side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  transition: 0.2s ease;
}

.help-side-link:last-child {
  margin-bottom: 0;
}

.help-side-link:hover {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.help-side-link span.icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.help-cta-band {
  margin-top: 48px;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(14, 166, 114, 0.12), rgba(59, 78, 224, 0.1));
  border: 1px solid rgba(14, 166, 114, 0.22);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.help-cta-band h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.help-cta-band p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.help-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.help-center-page .empty-state {
  padding: 64px 24px;
  text-align: center;
  color: var(--ink-soft);
}

.help-verify-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.help-verify-label {
  display: block;
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}

.help-verify-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.help-verify-input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
}

.help-verify-input:focus {
  outline: none;
  border-color: rgba(14, 166, 114, 0.55);
}
