:root {
  --faq-blue: #315df4;
  --faq-purple: #7466ff;
  --faq-purple-2: #8b7bff;
  --faq-orange: #ff9f3f;
  --faq-pink: #ef6aa6;
  --faq-green: #39c783;
  --faq-red: #ff6262;
  --faq-ink: #11152f;
  --faq-muted: #68708c;
  --faq-line: #e7e9f5;
  --faq-soft: #f6f4ff;
  --faq-white: #ffffff;
  --faq-shadow: 0 18px 46px rgba(64, 63, 120, 0.11);
  --gx-primary: #315df4;
  --gx-lagoon: #11152f;
  --gx-gold: #8b7bff;
  --gx-alabaster: #ffffff;
  --gx-moss: #68708c;
  --gx-border: 1px solid rgba(231, 233, 245, 0.95);
  --gx-shadow: 0 14px 26px rgba(64, 63, 120, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--faq-ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 72% 5%, rgba(116, 102, 255, 0.1), transparent 28%),
    linear-gradient(180deg, #fbfbff 0%, #fff 44%, #fbfbff 100%);
}

.faq-page {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 36px;
}

.faq-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr) minmax(210px, 0.42fr);
  gap: 20px;
  align-items: center;
  min-height: 290px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--faq-line);
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 66% 26%, rgba(116, 102, 255, 0.12), transparent 28%),
    linear-gradient(112deg, rgba(255, 255, 255, 0.98), #fff 58%, #f7f5ff);
  box-shadow: var(--faq-shadow);
}

.faq-kicker {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin: 0 0 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--faq-purple);
  background: var(--faq-soft);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.faq-hero-main h1 {
  margin: 0;
  color: var(--faq-ink);
  font-size: clamp(2.35rem, 4.6vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.faq-hero-main h1 span {
  background: linear-gradient(90deg, var(--faq-purple), var(--faq-pink), var(--faq-orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.faq-hero-main > p {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--faq-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.faq-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 650px;
  min-height: 46px;
  margin-top: 26px;
  padding: 0 8px 0 18px;
  border: 1px solid var(--faq-line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(64, 63, 120, 0.05);
}

.faq-search > i {
  color: #9aa0b5;
}

.faq-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--faq-ink);
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
}

.faq-search button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--faq-purple), var(--faq-purple-2));
  cursor: pointer;
}

.faq-chip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.faq-chip-row span {
  color: var(--faq-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.faq-chip-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 12px;
  border: 1px solid var(--faq-line);
  border-radius: 999px;
  color: #444b66;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.faq-hero-art {
  position: relative;
  min-height: 220px;
}

.faq-bubble {
  position: absolute;
  left: 50%;
  top: 47%;
  display: grid;
  place-items: center;
  width: min(230px, 90%);
  height: 150px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(145deg, #7567ff, #5746ed);
  box-shadow: 0 22px 40px rgba(85, 69, 218, 0.28);
  transform: translate(-50%, -50%) rotate(9deg);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 800;
}

.faq-bubble::after {
  content: "";
  position: absolute;
  right: 38px;
  bottom: -16px;
  border-top: 24px solid #5746ed;
  border-left: 26px solid transparent;
}

.faq-question,
.faq-doc,
.faq-chat {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 16px 28px rgba(85, 69, 218, 0.18);
}

.faq-question {
  right: 8%;
  top: 8%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(145deg, #8b7bff, #7466ff);
  font-size: 1.8rem;
  font-weight: 800;
}

.faq-doc {
  left: 6%;
  bottom: 28%;
  width: 46px;
  height: 52px;
  background: linear-gradient(145deg, #7466ff, #9a8cff);
  transform: rotate(-10deg);
}

.faq-chat {
  right: 9%;
  bottom: 22%;
  width: 66px;
  height: 48px;
  background: linear-gradient(145deg, #ff9f3f, #ffb453);
  transform: rotate(8deg);
}

.faq-star {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(116, 102, 255, 0.55);
}

.star-one {
  top: 18px;
  left: 20%;
}

.star-two {
  right: 15%;
  bottom: 18px;
}

.need-help-card {
  display: grid;
  gap: 12px;
  align-self: stretch;
  padding: 20px;
  border: 1px solid var(--faq-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(64, 63, 120, 0.06);
}

.need-help-card h2 {
  margin: 0;
  color: var(--faq-ink);
  font-size: 1rem;
}

.need-help-card p {
  margin: 0;
  color: var(--faq-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.support-btn,
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.support-btn,
.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--faq-purple), var(--faq-purple-2));
  box-shadow: 0 14px 24px rgba(116, 102, 255, 0.22);
}

.support-btn {
  padding: 9px 14px;
}

.quick-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px;
  border: 1px solid var(--faq-line);
  border-radius: 8px;
  color: #39405b;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.quick-link i:first-child {
  color: var(--faq-purple);
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(210px, 0.33fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 22px;
}

.topic-card {
  position: sticky;
  top: 86px;
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--faq-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(64, 63, 120, 0.06);
}

.topic-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 12px;
  font-size: 1.25rem;
}

.topic-icon.purple { color: var(--faq-purple); background: #f0edff; }
.topic-icon.blue { color: var(--faq-blue); background: #eef3ff; }
.topic-icon.red { color: var(--faq-red); background: #fff0f0; }
.topic-icon.indigo { color: #6266ea; background: #f0f1ff; }
.topic-icon.violet { color: #805dff; background: #f2edff; }

.topic-card h2 {
  margin: 0;
  color: var(--faq-ink);
  font-size: 1.08rem;
  line-height: 1.25;
}

.topic-card p {
  margin: 10px 0 0;
  color: var(--faq-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-card {
  border: 1px solid var(--faq-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 22px rgba(64, 63, 120, 0.035);
}

.faq-card[open] {
  border-color: rgba(116, 102, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(116, 102, 255, 0.08), 0 12px 24px rgba(64, 63, 120, 0.05);
}

.faq-card summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 17px 56px 17px 20px;
  color: var(--faq-ink);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.45;
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-card summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--faq-ink);
  transform: translateY(-50%);
  font-weight: 800;
}

.faq-card[open] summary::after {
  content: "-";
  color: var(--faq-purple);
}

.faq-card p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--faq-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.faq-card a {
  color: var(--faq-purple);
  font-weight: 800;
}

.faq-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(170px, 0.35fr);
  gap: 18px;
  align-items: center;
  margin-top: 28px;
  padding: 28px 32px;
  overflow: hidden;
  border: 1px solid var(--faq-line);
  border-radius: 8px;
  background: linear-gradient(112deg, #fff, #f5f2ff);
  box-shadow: var(--faq-shadow);
}

.faq-cta h2 {
  margin: 0;
  color: var(--faq-ink);
  font-size: 1.5rem;
}

.faq-cta p {
  margin: 8px 0 0;
  color: var(--faq-muted);
  line-height: 1.6;
}

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

.btn-primary,
.btn-secondary {
  padding: 10px 16px;
}

.btn-secondary {
  color: var(--faq-purple);
  border: 1px solid var(--faq-line);
  background: #fff;
}

.cta-art {
  position: relative;
  min-height: 120px;
}

.cta-headset {
  position: absolute;
  right: 16px;
  top: 50%;
  color: var(--faq-purple);
  font-size: 6rem;
  transform: translateY(-50%);
  filter: drop-shadow(0 18px 22px rgba(85, 69, 218, 0.2));
}

.cta-bubble {
  position: absolute;
  right: 56px;
  top: 38%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 38px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, var(--faq-orange), #ffb453);
}

/* Shared shell */
.sq-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: var(--gx-border);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 20px rgba(64, 63, 120, 0.08);
}

.sq-header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.sq-logo,
.sq-nav,
.sq-auth,
.sq-profile-trigger {
  display: flex;
  align-items: center;
}

.sq-logo {
  gap: 10px;
}

.sq-logo img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: contain;
}

.sq-logo span {
  color: var(--gx-lagoon);
  font-size: 1.25rem;
  font-weight: 800;
}

.sq-nav {
  gap: 10px;
}

.sq-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--gx-lagoon);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.sq-link i {
  color: var(--gx-moss);
}

.sq-link:hover,
.sq-link.active {
  background: rgba(49, 93, 244, 0.1);
  border-color: rgba(49, 93, 244, 0.2);
}

.sq-link:hover i,
.sq-link.active i {
  color: var(--gx-primary);
}

.sq-nav-item {
  position: relative;
}

.sq-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  border: var(--gx-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--gx-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.22s ease;
}

.sq-dropdown.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sq-dropdown a {
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--gx-lagoon);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.sq-dropdown a i {
  margin-right: 8px;
}

.sq-dropdown a:hover {
  background: rgba(49, 93, 244, 0.08);
}

.sq-auth button {
  border: none;
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
}

.sq-login-btn {
  color: var(--gx-lagoon);
  background: #fff;
  border: 1px solid var(--faq-line) !important;
}

.sq-register-btn,
.sq-profile-btn {
  color: #fff;
  background: linear-gradient(90deg, var(--faq-purple), var(--faq-purple-2));
  box-shadow: 0 10px 20px rgba(116, 102, 255, 0.22);
}

.sq-profile-trigger {
  gap: 8px;
}

.sq-user-avatar {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  object-fit: cover;
}

.sq-user-name {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sq-user-id {
  margin: 2px 4px 8px;
  padding: 8px 10px;
  border: 1px dashed var(--faq-line);
  border-radius: 8px;
  color: var(--gx-moss);
  font-size: 0.8rem;
  font-weight: 700;
}

.sq-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--faq-line);
  border-radius: 10px;
  background: #fff;
  color: var(--gx-lagoon);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  place-items: center;
}







































@media (max-width: 1040px) {
  .faq-hero {
    grid-template-columns: 1fr;
  }

  .faq-hero-art {
    min-height: 190px;
    order: -1;
  }

  .need-help-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .sq-toggle {
    display: inline-grid;
  }

  .sq-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 14px;
    right: 14px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: var(--gx-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--gx-shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
  }

  .sq-nav.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .sq-link {
    width: 100%;
  }

  .faq-section,
  .faq-cta {
    grid-template-columns: 1fr;
  }

  .topic-card {
    position: static;
    min-height: 0;
  }


}

@media (max-width: 680px) {
  .faq-page {
    width: calc(100% - 18px);
    padding-top: 14px;
  }

  .sq-header-container {
    padding-inline: 14px;
  }

  .sq-auth button {
    padding: 8px 11px;
    font-size: 0.84rem;
  }

  .faq-hero {
    min-height: 0;
    padding: 20px 14px;
    gap: 14px;
  }

  .faq-hero-art {
    min-height: 150px;
  }

  .faq-bubble {
    width: 158px;
    height: 104px;
    border-radius: 20px;
    font-size: 3rem;
  }

  .faq-question {
    width: 38px;
    height: 38px;
    font-size: 1.25rem;
  }

  .faq-doc {
    width: 34px;
    height: 40px;
  }

  .faq-chat {
    width: 48px;
    height: 36px;
  }

  .faq-hero-main h1 {
    font-size: 2rem;
  }

  .faq-search {
    min-height: 42px;
    margin-top: 18px;
  }

  .faq-chip-row {
    align-items: flex-start;
  }

  .faq-section {
    gap: 12px;
    margin-top: 14px;
  }

  .topic-card,
  .faq-cta {
    padding: 16px;
  }

  .faq-card summary {
    padding: 15px 46px 15px 15px;
    font-size: 0.88rem;
  }

  .faq-card p {
    padding: 0 15px 15px;
    font-size: 0.85rem;
  }

  .faq-cta-actions {
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .cta-art {
    display: none;
  }




}
