.faq-v2 {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 88px;
  color: #171923;
}

.faq-v2 *,
.faq-v2 *::before,
.faq-v2 *::after {
  box-sizing: border-box;
}

.faq-v2__breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 55px;
  font-size: 13px;
  color: #92949f;
}
.faq-v2__breadcrumb a {
  color: #707380;
  text-decoration: none;
}
.faq-v2__breadcrumb a:hover { color: #7c3aed; }

.faq-v2__header {
  max-width: 740px;
  margin: 0 auto 64px;
  text-align: center;
}
.faq-v2__header h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.14;
}
.faq-v2__header > p {
  margin: 15px 0 28px;
  color: #777b89;
  font-size: 16px;
  line-height: 1.55;
}

.faq-v2__search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 630px);
  height: 56px;
  margin: 0 auto;
  padding: 0 18px;
  background: #fff;
  border: 1px solid #dedee6;
  border-radius: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.faq-v2__search:focus-within {
  border-color: #9855ed;
  box-shadow: 0 0 0 3px rgba(124,58,237,.08);
}
.faq-v2__search svg {
  width: 19px;
  height: 19px;
  flex: none;
  color: #858795;
}
.faq-v2__search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  color: #171923;
  font: inherit;
  font-size: 15px;
}
.faq-v2__search input::placeholder { color: #999ba7; }
.faq-v2__search-shortcut {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: none;
  border: 1px solid #e8e7ee;
  border-radius: 6px;
  color: #92949f;
  font-size: 12px;
}

.faq-v2__layout {
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
  align-items: start;
  gap: 56px;
}
.faq-v2__aside { min-width: 0; }
.faq-v2__navigation {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 4px;
}
.faq-v2__nav-caption {
  padding: 0 12px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #8b8d99;
}
.faq-v2__navigation a {
  display: block;
  padding: 12px 14px;
  border-radius: 9px;
  text-decoration: none;
  color: #505361;
  font-weight: 600;
  font-size: 14px;
  transition: background-color .15s, color .15s;
}
.faq-v2__navigation a:hover,
.faq-v2__navigation a:focus-visible {
  background: #eee9f6;
  color: #6d28d9;
}
.faq-v2__main { min-width: 0; }
.faq-v2__results {
  color: #737586;
  font-size: 13px;
}
.faq-v2__results:not(:empty) { margin-bottom: 24px; }

.faq-section {
  scroll-margin-top: 110px;
  margin-bottom: 42px;
}
.faq-section__heading {
  margin: 0 0 14px;
}
.faq-section__heading > span {
  display: block;
  margin-bottom: 5px;
  color: #8653d9;
  font-size: 12px;
  font-weight: 700;
}
.faq-section__heading h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: -.025em;
  font-weight: 750;
}
.faq-section__questions {
  overflow: hidden;
  border: 1px solid #e5e5ed;
  border-radius: 14px;
  background: #fff;
}
.faq-section details + details {
  border-top: 1px solid #ededf2;
}
.faq-section summary {
  position: relative;
  display: block;
  list-style: none;
  cursor: pointer;
  padding: 20px 55px 20px 22px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 650;
  color: #20212a;
  transition: background-color .15s;
}
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 23px;
  font-weight: 400;
  color: #92939e;
}
.faq-section details[open] summary::after {
  content: "−";
  color: #7c3aed;
}
.faq-section summary:hover {
  background: #faf9fc;
}
.faq-section details[open] summary {
  color: #171923;
}
.faq-section details p {
  margin: -2px 22px 22px;
  padding: 0;
  background: transparent;
  color: #656876;
  font-size: 14px;
  line-height: 1.75;
}
.faq-section details p a {
  color: #7631d8;
  font-weight: 600;
  text-decoration: none;
}
.faq-section details p a:hover { text-decoration: underline; }

.faq-v2__empty {
  padding: 48px 22px;
  text-align: center;
}
.faq-v2__empty h2 { margin: 0 0 8px; font-size: 22px; }
.faq-v2__empty p { color: #737586; }
.faq-v2__empty button {
  margin-top: 12px;
  padding: 11px 18px;
  border: 0;
  border-radius: 10px;
  background: #7c3aed;
  color: white;
  font-weight: 650;
  cursor: pointer;
}

.faq-v2__help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 52px;
  padding: 26px 28px;
  border: 1px solid #e5e5ed;
  border-radius: 16px;
  background: #fff;
}
.faq-v2__help h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -.02em;
}
.faq-v2__help p {
  margin: 8px 0 0;
  color: #757783;
  font-size: 14px;
  line-height: 1.5;
}
.faq-v2__help > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: none;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  background: #7c3aed;
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  font-size: 14px;
  transition: background-color .15s;
}
.faq-v2__help > a:hover {
  background: #6826d4;
  color: #fff;
}

.faq-v2__related {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 26px;
}
.faq-v2__related a {
  color: #777987;
  font-size: 13px;
  text-decoration: none;
}
.faq-v2__related a:hover { color: #7c3aed; }

.faq-v2 [hidden] { display: none !important; }

@media (max-width: 800px) {
  .faq-v2 { padding-top: 20px; }
  .faq-v2__breadcrumb { margin-bottom: 34px; }
  .faq-v2__header { margin-bottom: 36px; }
  .faq-v2__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .faq-v2__navigation {
    position: static;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .faq-v2__navigation::-webkit-scrollbar { display: none; }
  .faq-v2__nav-caption { display: none; }
  .faq-v2__navigation a {
    flex: none;
    background: #fff;
    border: 1px solid #e7e6ee;
    white-space: nowrap;
  }
}
@media (max-width: 560px) {
  .faq-v2 { width: calc(100% - 30px); padding-bottom: 56px; }
  .faq-v2__header h1 { font-size: 32px; }
  .faq-v2__header > p { font-size: 14px; }
  .faq-v2__search { height: 52px; }
  .faq-section { margin-bottom: 32px; }
  .faq-section__heading h2 { font-size: 20px; }
  .faq-section summary { padding: 17px 48px 17px 17px; font-size: 14px; }
  .faq-section summary::after { right: 17px; }
  .faq-section details p { margin: 0 17px 19px; }
  .faq-v2__help {
    flex-direction: column;
    align-items: stretch;
    padding: 22px;
  }
  .faq-v2__help > a { width: 100%; }
}

/* ===== FAQ polish: neutral hover, one-piece search, no purple text ===== */

/* 1) search: single clean pill */
.faq-v2__search {
  gap: 10px;
  padding: 0 18px;
  background: #ffffff;
  border: 1px solid #ddddE5;
  border-radius: 14px;
  box-shadow: none;
}

.faq-v2__search:focus-within {
  border-color: #cfcfd8;
  box-shadow: none;
}

.faq-v2__search input,
.faq-v2__search input[type="search"] {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  min-height: 0 !important;
  color: #171923 !important;
}

.faq-v2__search input::placeholder,
.faq-v2__search input[type="search"]::placeholder {
  color: #8a8d99 !important;
}

.faq-v2__search-shortcut {
  display: none !important;
}

/* 2) no purple text anywhere */
.faq-section__heading > span,
.faq-v2__results,
.faq-v2__breadcrumb a,
.faq-v2__related a,
.faq-section details p a,
.faq-v2__navigation a:hover,
.faq-v2__navigation a:focus-visible,
.faq-v2__breadcrumb a:hover {
  color: #616575 !important;
}

/* 3) left sections hover -> gray */
.faq-v2__navigation a {
  color: #303341;
  transition: background-color .16s ease, color .16s ease;
}

.faq-v2__navigation a:hover,
.faq-v2__navigation a:focus-visible {
  background: #ececf1 !important;
  color: #20222d !important;
}

/* 4) question rows hover -> gray */
.faq-section summary {
  transition: background-color .16s ease, color .16s ease;
}

.faq-section summary:hover,
.faq-section details[open] summary:hover {
  background: #f1f1f4 !important;
  color: #171923 !important;
}

.faq-section details[open] summary {
  color: #171923 !important;
}

/* 5) animate plus -> minus */
.faq-section summary::after {
  content: "" !important;
  position: absolute;
  right: 22px;
  top: 50%;
  width: 14px;
  height: 2px;
  margin-top: -1px;
  background: #8a8d99;
  border-radius: 999px;
  transition: background-color .16s ease;
}

.faq-section summary::before {
  content: "";
  position: absolute;
  right: 28px;
  top: 50%;
  width: 2px;
  height: 14px;
  margin-top: -7px;
  background: #8a8d99;
  border-radius: 999px;
  transform: scaleY(1);
  opacity: 1;
  transition: transform .18s ease, opacity .18s ease, background-color .16s ease;
}

.faq-section details[open] summary::before {
  transform: scaleY(.15);
  opacity: 0;
}

.faq-section details[open] summary::after,
.faq-section details[open] summary::before,
.faq-section summary:hover::after,
.faq-section summary:hover::before {
  background: #5f6372;
}

/* 6) links inside answers: neutral, not purple */
.faq-section details p a,
.faq-v2__related a,
.faq-v2__breadcrumb a {
  text-decoration: none;
  font-weight: 600;
}

.faq-section details p a:hover,
.faq-v2__related a:hover,
.faq-v2__breadcrumb a:hover {
  color: #2d2f3a !important;
  text-decoration: underline;
}

/* 7) mobile nav chips hover neutral too */
@media (max-width: 800px) {
  .faq-v2__navigation a:hover,
  .faq-v2__navigation a:focus-visible {
    background: #ececf1 !important;
    border-color: #e0e0e7 !important;
    color: #20222d !important;
  }
}


/* ===== FAQ fix: search input alignment and support icon ===== */

/* search shell */
.faq-v2__search {
  position: relative;
  align-items: center !important;
}

/* input must not be overlapped by native clear button */
.faq-v2__search input,
.faq-v2__search input[type="search"] {
  display: block;
  height: 100%;
  line-height: 56px;
  padding-right: 34px !important;
  -webkit-appearance: none;
  appearance: none;
}

/* placeholder/text vertical alignment */
.faq-v2__search input::placeholder,
.faq-v2__search input[type="search"]::placeholder {
  line-height: normal;
}

/* custom styling for native clear (x) button */
.faq-v2__search input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

.faq-v2__search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border-radius: 999px;
  background:
    linear-gradient(45deg, transparent 43%, #9a9daa 43%, #9a9daa 57%, transparent 57%),
    linear-gradient(-45deg, transparent 43%, #9a9daa 43%, #9a9daa 57%, transparent 57%);
  cursor: pointer;
  opacity: 1;
}

/* Firefox fallback safety */
.faq-v2__search input[type="search"]::-moz-search-clear {
  appearance: none;
  width: 16px;
  height: 16px;
}

/* support button icon instead of ugly arrow */
.faq-v2__help > a {
  gap: 10px;
}

.faq-v2__help-icon {
  width: 16px;
  height: 16px;
  flex: none;
  display: block;
}

/* keep support CTA icon/text centered */
.faq-v2__help > a span,
.faq-v2__help > a svg {
  vertical-align: middle;
}

@media (max-width: 560px) {
  .faq-v2__search input,
  .faq-v2__search input[type="search"] {
    line-height: 52px;
  }
}

/* FAQ search — precise vertical alignment */
.faq-v2__search {
  display: flex !important;
  align-items: center !important;
  height: 56px;
  padding: 0 18px;
}

.faq-v2__search > svg {
  display: block;
  flex-shrink: 0;
  align-self: center;
}

.faq-v2__search input[type="search"] {
  display: block !important;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;

  font-size: 14px;
  line-height: normal !important;
  vertical-align: middle;
  box-sizing: border-box;
}

.faq-v2__search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 0 0 0 10px;
  padding: 0;
  vertical-align: middle;
  cursor: pointer;
}

@media (max-width: 560px) {
  .faq-v2__search {
    height: 52px;
  }
}
