/* Help Center Modal - Realtime */

:root {
  --hc-bg: #f7f9fc;
  --hc-surface: #ffffff;
  --hc-surface-soft: #f2f6fb;
  --hc-text: #10213a;
  --hc-muted: #5e6b82;
  --hc-primary: #007f5f;
  --hc-primary-soft: #e8f9f1;
  --hc-border: #d8e0ec;
  --hc-shadow: 0 24px 64px rgba(8, 21, 43, 0.24);
  --hc-danger: #c1121f;
}

.help-center-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 10% 10%, rgba(0, 127, 95, 0.16), transparent 45%), rgba(8, 14, 26, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.help-center-modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.help-center-modal {
  position: relative;
  width: min(1080px, calc(100% - 48px));
  max-height: min(92vh, 880px);
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: var(--hc-surface);
  color: var(--hc-text);
  box-shadow: var(--hc-shadow);
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  transition: transform 0.26s ease, opacity 0.26s ease;
}

.help-center-modal-overlay.show .help-center-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.help-center-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hc-border);
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
}

.help-center-top-logo {
  height: 34px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.help-center-head-actions {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.help-center-menu-btn {
  min-width: 92px;
}

.help-center-menu-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(300px, 76vw);
  max-height: 56vh;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--hc-border);
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(8, 21, 43, 0.22);
  padding: 8px;
  display: none;
  z-index: 6;
}

.help-center-menu-popover.show {
  display: block;
}

.help-center-menu-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--hc-text);
  border-radius: 9px;
  padding: 8px 9px;
  font-size: 13px;
}

.help-center-menu-link:hover {
  background: var(--hc-surface-soft);
}

.help-center-menu-link-icon {
  display: inline-flex;
}

.help-center-modal-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.help-center-modal-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--hc-border);
  background: var(--hc-surface);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.84rem;
  color: var(--hc-text);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.help-center-modal-close-btn:hover {
  background: var(--hc-surface-soft);
  border-color: #b6c4d8;
}

.help-center-modal-close-btn:focus-visible {
  outline: 2px solid var(--hc-primary);
  outline-offset: 2px;
}

.help-center-modal-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: var(--hc-bg);
  padding: 20px;
  display: grid;
  gap: 16px;
}

.help-center-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid #dbe8ea;
  border-radius: 14px;
  background: linear-gradient(115deg, #edfff8 0%, #f8fbff 72%);
}

.help-center-hero h2 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.2;
}

.help-center-hero-sub {
  margin: 8px 0 0;
  color: var(--hc-muted);
  font-size: 0.93rem;
}

.help-center-brand {
  margin: 10px 0 0;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #d1e4df;
  font-weight: 700;
  color: #165c48;
  font-size: 0.84rem;
}

.help-center-realtime {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fef4e8;
  border: 1px solid #f3d5b1;
  color: #8f4d00;
  font-size: 0.8rem;
  font-weight: 700;
}

.help-center-realtime.is-online {
  background: var(--hc-primary-soft);
  border-color: #8bdec0;
  color: #0b6b50;
}

.help-center-realtime.is-offline {
  background: #fff0f2;
  border-color: #ffced5;
  color: #8f1432;
}

.help-center-realtime-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.help-center-section {
  background: var(--hc-surface);
  border: 1px solid var(--hc-border);
  border-radius: 14px;
  padding: 16px;
}

.help-center-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.help-center-section-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.help-center-section-head p {
  margin: 0;
  color: var(--hc-muted);
  font-size: 0.88rem;
}

.help-center-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.help-center-action-btn {
  border: 1px solid var(--hc-border);
  border-radius: 12px;
  background: #ffffff;
  text-align: left;
  display: flex;
  gap: 10px;
  width: 100%;
  padding: 12px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.help-center-action-btn:hover {
  transform: translateY(-1px);
  border-color: #b8cadf;
  box-shadow: 0 10px 26px rgba(17, 42, 78, 0.1);
}

.help-center-action-btn:focus-visible {
  outline: 2px solid var(--hc-primary);
  outline-offset: 2px;
}

.help-center-action-btn.is-disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.help-center-action-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--hc-surface-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.help-center-action-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.help-center-action-title {
  font-size: 0.9rem;
  font-weight: 700;
}

.help-center-action-sub {
  color: var(--hc-muted);
  font-size: 0.76rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.help-center-social {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.help-center-social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--hc-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--hc-text);
  text-decoration: none;
  padding: 7px 11px;
  font-size: 0.82rem;
  font-weight: 700;
}

.help-center-social-link:hover {
  border-color: #a8c0df;
  background: #f7fbff;
}

.help-center-social-link:focus-visible {
  outline: 2px solid var(--hc-primary);
  outline-offset: 2px;
}

.help-center-social-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #edf3fb;
}

.help-center-search-wrap {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}

.help-center-search-label {
  font-size: 0.79rem;
  font-weight: 700;
  color: #3d4f68;
}

.help-center-search {
  border: 1px solid var(--hc-border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
  color: var(--hc-text);
  background: #fff;
}

.help-center-search:focus-visible {
  outline: 2px solid var(--hc-primary);
  outline-offset: 2px;
}

.help-center-faq {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.help-center-faq-item {
  border: 1px solid var(--hc-border);
  border-radius: 10px;
  background: #fff;
}

.help-center-faq-item h4 {
  margin: 0;
}

.help-center-faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  text-align: left;
  color: var(--hc-text);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
}

.help-center-faq-question[aria-expanded="true"] .help-center-faq-chevron {
  transform: rotate(180deg);
}

.help-center-faq-chevron {
  transition: transform 0.16s ease;
}

.help-center-faq-question:focus-visible {
  outline: 2px solid var(--hc-primary);
  outline-offset: -2px;
}

.help-center-faq-answer {
  padding: 0 12px 12px;
}

.help-center-faq-answer p {
  margin: 0;
  color: #243754;
  font-size: 0.87rem;
  line-height: 1.45;
}

.help-center-info-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.help-center-info-card {
  border: 1px solid var(--hc-border);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.help-center-info-card h4 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 800;
}

.help-center-info-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #edf3fb;
  display: grid;
  place-items: center;
}

.help-center-info-body {
  margin-top: 8px;
  color: #263957;
  font-size: 0.83rem;
  line-height: 1.45;
}

.help-center-info-body p,
.help-center-info-body ul {
  margin: 0;
}

.help-center-info-body ul {
  padding-left: 18px;
}

.help-center-footer-wrap {
  display: grid;
  gap: 12px;
  margin-bottom: 4px;
}

.help-center-footer {
  display: grid;
  gap: 14px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fafdff 0%, #f3f8ff 100%);
  border: 1px solid #d8e4f0;
}

.help-center-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.help-center-footer-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #d8e4f0;
  padding: 6px;
}

.help-center-footer-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--hc-primary);
  color: #fff;
  font-weight: 800;
}

.help-center-footer-name {
  margin: 0;
  font-weight: 800;
  font-size: 0.96rem;
}

.help-center-footer-note {
  margin: 3px 0 0;
  color: var(--hc-muted);
  font-size: 0.82rem;
}

.help-center-footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.help-center-footer-link {
  border: 1px solid var(--hc-border);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  display: grid;
  gap: 2px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.help-center-footer-link:hover {
  border-color: #a8c0df;
  transform: translateY(-1px);
}

.help-center-footer-link:focus-visible {
  outline: 2px solid var(--hc-primary);
  outline-offset: 2px;
}

.help-center-footer-link-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--hc-text);
}

.help-center-footer-link-sub {
  font-size: 0.74rem;
  color: var(--hc-muted);
}

.help-center-footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.help-center-footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--hc-muted);
  font-size: 0.78rem;
}

.help-center-empty {
  margin: 0;
  border: 1px dashed #c9d6e6;
  border-radius: 10px;
  padding: 12px;
  color: var(--hc-muted);
  font-size: 0.86rem;
  background: #fbfdff;
}

.help-center-live-region {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.help-center-action-toast {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  pointer-events: none;
  border: 1px solid #b3d8c9;
  background: #effcf6;
  color: #14523f;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 7px 12px;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.help-center-action-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 980px) {
  .help-center-modal {
    width: min(900px, calc(100% - 24px));
  }

  .help-center-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
    .help-center-top-logo {
      display: none;
    }
  .help-center-modal-overlay {
    align-items: flex-end;
  }

  .help-center-modal {
    width: 100%;
    max-height: 100%;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
  }

  .help-center-modal-overlay.show .help-center-modal {
    transform: translateY(0);
  }

  .help-center-modal-scroll {
    padding: 14px;
    gap: 12px;
  }

  .help-center-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .help-center-actions,
  .help-center-info-grid {
    grid-template-columns: 1fr;
  }

  .help-center-footer-links {
    grid-template-columns: 1fr;
  }

  .help-center-footer-brand {
    align-items: flex-start;
  }

  .help-center-modal-title {
    font-size: 0.97rem;
  }

  .help-center-modal-close-btn span {
    display: none;
  }
}

.help-center-modal-no-scroll {
  overflow: hidden;
}
