/* Dark glass Help Center — shared across Office 168/52, FrontOffice247, Ask Bob */

.help-page.help-page--dark {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #f8f9ff;
  background: #030713;
  min-height: 100vh;
  /* Nav is position:fixed and does not reserve layout space — offset main explicitly. */
  --help-page-nav-offset: clamp(82px, 6vw, 96px);
}

.help-page.help-page--dark *,
.help-page.help-page--dark *::before,
.help-page.help-page--dark *::after {
  box-sizing: border-box;
}

.help-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.help-main {
  min-height: 100vh;
  color: #f8f9ff;
  padding-top: var(--help-page-nav-offset);
  background:
    radial-gradient(circle at 12% 10%, rgba(40, 135, 255, 0.24), transparent 32%),
    radial-gradient(circle at 86% 14%, rgba(255, 45, 196, 0.21), transparent 30%),
    linear-gradient(180deg, #030713 0%, #061024 48%, #050a17 100%);
}

.help-hero {
  position: relative;
  overflow: hidden;
  padding: 16px 0 48px;
}

.help-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 7, 18, 0.12) 0%, rgba(3, 7, 18, 0.42) 70%, rgba(3, 7, 18, 0.68) 100%);
  pointer-events: none;
  z-index: 1;
}

.help-aurora {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
  background-repeat: no-repeat;
  background-size: contain;
}

.help-aurora--blue {
  top: 0;
  left: -260px;
  width: min(980px, 74vw);
  height: 330px;
  background-image: url("/assets/help/help-aurora-blue-left.png");
}

.help-aurora--magenta {
  top: 0;
  right: -240px;
  width: min(980px, 74vw);
  height: 330px;
  background-image: url("/assets/help/help-aurora-magenta-right.png");
}

.help-container {
  width: min(100% - 48px, 1320px);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.help-hero-copy {
  text-align: center;
  padding-top: 8px;
  margin-bottom: 28px;
}

.help-title {
  margin: 0;
  font-size: clamp(3.6rem, 6.5vw, 5.7rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 950;
  color: #ffffff;
  text-shadow:
    0 0 26px rgba(120, 145, 255, 0.16),
    0 2px 0 rgba(255, 255, 255, 0.08);
}

.help-subtitle {
  margin: 14px auto 22px;
  max-width: 790px;
  color: rgba(240, 243, 255, 0.86);
  font-size: clamp(1rem, 1.28vw, 1.18rem);
  line-height: 1.45;
}

.help-search-wrap {
  position: relative;
  width: min(100%, 690px);
  margin-inline: auto;
}

.help-search-wrap::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 20px;
  background: url("/assets/help/help-search-focus-glow.png") center / 100% 100% no-repeat;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.help-search {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 62px;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(8, 15, 38, 0.9), rgba(5, 9, 23, 0.92));
  border: 2px solid rgba(216, 55, 255, 0.72);
  box-shadow:
    0 0 0 1px rgba(66, 152, 255, 0.22),
    0 0 34px rgba(193, 43, 255, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.help-search__icon {
  display: grid;
  place-items: center;
  color: #5fb6ff;
}

.help-search__icon svg {
  width: 26px;
  height: 26px;
}

.help-search input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
  font-size: 1.08rem;
  padding-right: 22px;
}

.help-search input::placeholder {
  color: rgba(230, 235, 255, 0.72);
}

.help-search:focus-within {
  border-color: rgba(113, 186, 255, 0.96);
  box-shadow:
    0 0 0 4px rgba(69, 146, 255, 0.18),
    0 0 44px rgba(204, 65, 255, 0.42);
}

.help-search-empty {
  display: none;
  margin: 18px auto 0;
  max-width: 520px;
  padding: 12px 16px;
  border-radius: 10px;
  text-align: center;
  color: rgba(240, 243, 255, 0.88);
  background: rgba(255, 61, 153, 0.1);
  border: 1px solid rgba(255, 88, 172, 0.35);
}

.help-searching .help-search-empty.is-visible {
  display: block;
}

.help-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.help-topic-card {
  min-height: 236px;
  padding: 20px 18px 18px;
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(12, 25, 57, 0.78), rgba(6, 13, 31, 0.82));
  border: 1px solid rgba(88, 132, 255, 0.32);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.help-topic-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 15% 15%, var(--card-glow, rgba(91, 154, 255, 0.18)), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 38%);
  pointer-events: none;
  z-index: 0;
}

.help-topic-card::after {
  content: "";
  position: absolute;
  top: -28px;
  left: -24px;
  width: min(220px, 72%);
  height: 170px;
  background-image: var(--card-glow-image);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left top;
  opacity: 0.62;
  pointer-events: none;
  z-index: 0;
}

.help-topic-card:hover {
  transform: translateY(-2px);
  border-color: var(--card-border-hover, rgba(118, 155, 255, 0.6));
  box-shadow:
    0 24px 65px rgba(0, 0, 0, 0.36),
    0 0 38px var(--card-shadow, rgba(83, 128, 255, 0.24));
}

.help-topic-card.is-hidden {
  display: none;
}

.help-topic-card__head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.help-topic-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, var(--icon-bg-a), var(--icon-bg-b));
  border: 1px solid var(--icon-border);
  box-shadow:
    0 0 28px var(--icon-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: var(--icon-fg, #ffffff);
}

.help-icon svg {
  width: 31px;
  height: 31px;
}

.help-icon svg path,
.help-icon svg circle,
.help-icon svg rect,
.help-icon svg line,
.help-icon svg polyline {
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.help-topic-card__icon svg {
  filter: drop-shadow(0 0 8px var(--icon-glow));
}

.help-topic-card h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 950;
}

.help-topic-card__links {
  position: relative;
  z-index: 1;
  list-style: none;
  padding: 0;
  margin: 0;
}

.help-topic-card__links li {
  border-bottom: 1px solid rgba(141, 158, 214, 0.16);
}

.help-topic-card__links li:last-child {
  border-bottom: 0;
}

.help-topic-card__links a {
  min-height: 25px;
  display: grid;
  grid-template-columns: 1fr 18px;
  align-items: center;
  gap: 12px;
  color: rgba(245, 247, 255, 0.86);
  font-size: 0.96rem;
  line-height: 1.15;
  text-decoration: none;
  padding: 6px 0;
}

.help-topic-card__links a:hover {
  color: #ffffff;
}

.help-topic-card__links a span:last-child {
  justify-self: end;
  color: rgba(216, 224, 255, 0.7);
  font-size: 1.25rem;
}

.help-topic-card__links li.is-hidden {
  display: none;
}

.help-topic-link {
  grid-template-columns: auto 1fr auto auto !important;
}

.help-topic-link__lock {
  display: inline-flex;
  width: 14px;
  height: 14px;
  color: rgba(255, 196, 120, 0.95);
}

.help-topic-link__lock svg {
  width: 14px;
  height: 14px;
}

.help-topic-link__badge {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 196, 120, 0.14);
  color: #ffd9a8;
  border: 1px solid rgba(255, 196, 120, 0.35);
  justify-self: end;
}

.help-topic-link__badge--planned {
  background: rgba(141, 158, 214, 0.12);
  color: rgba(216, 224, 255, 0.82);
  border-color: rgba(141, 158, 214, 0.28);
}

.help-topic-link__chevron {
  justify-self: end;
  color: rgba(216, 224, 255, 0.7);
  font-size: 1.25rem;
}

.help-signin-banner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(118, 155, 255, 0.38);
  background: linear-gradient(90deg, rgba(24, 48, 102, 0.55), rgba(12, 25, 57, 0.72));
}

.help-signin-banner__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.95rem;
  color: rgba(245, 247, 255, 0.88);
}

.help-signin-banner__copy strong {
  color: #fff;
}

.help-signin-banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: #061024;
  background: linear-gradient(180deg, #9ec5ff, #6ea8ff);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.help-search-portal-hints {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 196, 120, 0.28);
  background: rgba(255, 196, 120, 0.06);
}

.help-search-portal-hints[hidden] {
  display: none !important;
}

.help-portal-hint__title {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffd9a8;
}

.help-portal-hint__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.help-portal-hint__list li {
  margin: 0 0 6px;
}

.help-portal-hint__link {
  color: rgba(245, 247, 255, 0.92);
  text-decoration: none;
  font-size: 0.94rem;
}

.help-portal-hint__link:hover {
  color: #fff;
}

.help-portal-hint__footer {
  margin: 10px 0 0;
  font-size: 0.86rem;
  color: rgba(216, 224, 255, 0.78);
}

.help-portal-hint__footer a {
  color: #ffd9a8;
}

.help-topic-card--getting-started {
  --card-glow-image: url("/assets/help/help-card-glow-pink.png");
  --card-glow: rgba(255, 56, 163, 0.22);
  --card-shadow: rgba(255, 56, 163, 0.22);
  --card-border-hover: rgba(255, 87, 186, 0.62);
  --icon-bg-a: rgba(255, 64, 166, 0.42);
  --icon-bg-b: rgba(92, 28, 98, 0.68);
  --icon-border: rgba(255, 87, 186, 0.7);
  --icon-glow: rgba(255, 61, 172, 0.6);
  --icon-fg: #ffd8f0;
}

.help-topic-card--knowledge {
  --card-glow-image: url("/assets/help/help-card-glow-purple.png");
  --card-glow: rgba(157, 73, 255, 0.22);
  --card-shadow: rgba(157, 73, 255, 0.22);
  --card-border-hover: rgba(178, 96, 255, 0.62);
  --icon-bg-a: rgba(156, 67, 255, 0.48);
  --icon-bg-b: rgba(46, 33, 113, 0.72);
  --icon-border: rgba(177, 89, 255, 0.72);
  --icon-glow: rgba(164, 80, 255, 0.62);
  --icon-fg: #ead4ff;
}

.help-topic-card--integrations {
  --card-glow-image: url("/assets/help/help-card-glow-blue.png");
  --card-glow: rgba(52, 180, 255, 0.22);
  --card-shadow: rgba(52, 180, 255, 0.22);
  --card-border-hover: rgba(72, 190, 255, 0.62);
  --icon-bg-a: rgba(42, 159, 255, 0.42);
  --icon-bg-b: rgba(20, 58, 101, 0.74);
  --icon-border: rgba(65, 180, 255, 0.72);
  --icon-glow: rgba(62, 178, 255, 0.62);
  --icon-fg: #d4f0ff;
}

.help-topic-card--analytics {
  --card-glow-image: url("/assets/help/help-card-glow-green.png");
  --card-glow: rgba(43, 229, 172, 0.2);
  --card-shadow: rgba(43, 229, 172, 0.2);
  --card-border-hover: rgba(57, 236, 185, 0.6);
  --icon-bg-a: rgba(33, 207, 156, 0.38);
  --icon-bg-b: rgba(11, 73, 67, 0.74);
  --icon-border: rgba(49, 225, 176, 0.72);
  --icon-glow: rgba(47, 224, 174, 0.58);
  --icon-fg: #d4fff2;
}

.help-topic-card--training {
  --card-glow-image: url("/assets/help/help-card-glow-purple.png");
  --card-glow: rgba(205, 66, 255, 0.22);
  --card-shadow: rgba(205, 66, 255, 0.22);
  --card-border-hover: rgba(215, 91, 255, 0.62);
  --icon-bg-a: rgba(187, 60, 255, 0.44);
  --icon-bg-b: rgba(54, 27, 105, 0.76);
  --icon-border: rgba(208, 83, 255, 0.72);
  --icon-glow: rgba(205, 70, 255, 0.6);
  --icon-fg: #f0d4ff;
}

.help-topic-card--security {
  --card-glow-image: url("/assets/help/help-card-glow-amber.png");
  --card-glow: rgba(255, 166, 43, 0.22);
  --card-shadow: rgba(255, 166, 43, 0.22);
  --card-border-hover: rgba(255, 176, 54, 0.62);
  --icon-bg-a: rgba(255, 160, 38, 0.42);
  --icon-bg-b: rgba(88, 52, 13, 0.78);
  --icon-border: rgba(255, 170, 51, 0.72);
  --icon-glow: rgba(255, 166, 43, 0.62);
  --icon-fg: #ffe8c8;
}

.help-topic-card--billing {
  --card-glow-image: url("/assets/help/help-card-glow-green.png");
  --card-glow: rgba(39, 221, 148, 0.2);
  --card-shadow: rgba(39, 221, 148, 0.2);
  --card-border-hover: rgba(54, 230, 159, 0.6);
  --icon-bg-a: rgba(35, 205, 139, 0.38);
  --icon-bg-b: rgba(10, 74, 58, 0.76);
  --icon-border: rgba(48, 225, 153, 0.72);
  --icon-glow: rgba(45, 224, 153, 0.58);
  --icon-fg: #d4ffec;
}

.help-topic-card--troubleshooting {
  --card-glow-image: url("/assets/help/help-card-glow-pink.png");
  --card-glow: rgba(255, 61, 153, 0.22);
  --card-shadow: rgba(255, 61, 153, 0.22);
  --card-border-hover: rgba(255, 88, 172, 0.62);
  --icon-bg-a: rgba(255, 62, 153, 0.42);
  --icon-bg-b: rgba(90, 24, 78, 0.76);
  --icon-border: rgba(255, 83, 169, 0.72);
  --icon-glow: rgba(255, 62, 153, 0.6);
  --icon-fg: #ffd8ef;
}

.help-support-strip {
  margin-top: 18px;
  margin-bottom: 10px;
  padding: 22px 26px 16px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(12, 24, 58, 0.82), rgba(6, 12, 30, 0.88));
  border: 1px solid rgba(196, 67, 255, 0.66);
  box-shadow:
    0 0 0 1px rgba(71, 158, 255, 0.24),
    0 0 38px rgba(172, 58, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.help-support-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/help/help-support-strip-border-glow.png") center / 100% 100% no-repeat;
  opacity: 0.42;
  pointer-events: none;
  z-index: 0;
}

.help-support-strip > * {
  position: relative;
  z-index: 1;
}

.help-support-intro {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 18px;
}

.help-support-intro__icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  color: #a779ff;
  filter: drop-shadow(0 0 14px rgba(167, 96, 255, 0.72));
}

.help-support-intro__icon svg {
  width: 68px;
  height: 68px;
}

.help-support-intro h2 {
  margin: 0 0 8px;
  font-size: 1.62rem;
  line-height: 1.05;
  font-weight: 950;
  color: #ffffff;
}

.help-support-intro p {
  margin: 0;
  color: rgba(239, 243, 255, 0.84);
  font-size: 1rem;
  line-height: 1.38;
}

.help-support-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.help-support-action {
  min-height: 86px;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 10px;
  text-decoration: none;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(24, 37, 76, 0.8), rgba(13, 22, 49, 0.86));
  border: 1px solid rgba(112, 139, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.help-support-action:hover {
  transform: translateY(-1px);
  border-color: rgba(165, 106, 255, 0.52);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.26),
    0 0 26px rgba(130, 90, 255, 0.2);
}

.help-support-action__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: #c9d8ff;
}

.help-support-action__icon svg {
  width: 22px;
  height: 22px;
}

.help-support-action strong {
  display: block;
  margin-bottom: 3px;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 950;
}

.help-support-action small,
.help-support-action em {
  display: block;
  color: rgba(232, 238, 255, 0.78);
  font-size: 0.78rem;
  line-height: 1.25;
  font-style: normal;
}

.help-support-note {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  text-align: center;
  color: rgba(239, 243, 255, 0.86);
  font-size: 0.95rem;
}

.help-support-note strong {
  color: #d957ff;
}

.help-page a:focus-visible,
.help-page button:focus-visible,
.help-page input:focus-visible {
  outline: 3px solid rgba(92, 174, 255, 0.9);
  outline-offset: 3px;
}

/* Unified nav on dark help page */
.help-page--dark [data-unified-nav] .unified-nav {
  background: rgba(3, 6, 16, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(116, 135, 255, 0.13);
}

@media (max-width: 1180px) {
  .help-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .help-support-strip {
    grid-template-columns: 1fr;
  }

  .help-support-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .help-container {
    width: min(100% - 28px, 100%);
  }
}

@media (max-width: 680px) {
  .help-category-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .help-page.help-page--dark {
    --help-page-nav-offset: 74px;
  }

  .help-title {
    font-size: clamp(3.1rem, 16vw, 4.4rem);
  }

  .help-search {
    height: 58px;
    grid-template-columns: 50px 1fr;
    border-radius: 14px;
  }

  .help-topic-card {
    min-height: auto;
  }

  .help-support-intro {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .help-support-intro__icon {
    margin-inline: auto;
  }

  .help-support-actions {
    grid-template-columns: 1fr;
  }
}
