/* FAQ — Soft Liquid Glass
   Scoped to .ll-faq-soft-glass to avoid affecting other pages. */
.ll-faq-soft-glass {
  --faq-purple-950: #26113f;
  --faq-purple-800: #4a1b78;
  --faq-purple-700: #6729a5;
  --faq-purple-600: #7e3bc1;
  --faq-purple-500: #9b61dd;
  --faq-ink: #332840;
  --faq-muted: #786d84;
  --faq-line: rgba(96, 51, 139, 0.14);
  --faq-glass: rgba(255, 255, 255, 0.84);
  --faq-glass-strong: rgba(255, 255, 255, 0.96);
  --faq-shadow: 0 18px 48px rgba(58, 27, 92, 0.11);
  --faq-shadow-hover: 0 24px 58px rgba(58, 27, 92, 0.16);
  --faq-hero-background:
    radial-gradient(ellipse 52% 180% at 8% 4%, rgba(255, 122, 184, 0.14), transparent 62%),
    radial-gradient(ellipse 46% 170% at 94% 6%, rgba(140, 116, 255, 0.17), transparent 60%),
    radial-gradient(ellipse 38% 120% at 64% 112%, rgba(72, 176, 255, 0.06), transparent 65%),
    linear-gradient(96deg, #5b2b86 0%, #4b2196 42%, #5528ad 70%, #6636c2 100%);
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.ll-faq-soft-glass .ll-faq-hero {
  position: relative;
  display: grid;
  gap: 1.35rem;
  min-height: 0;
  margin-bottom: 1.25rem;
  padding: 1.65rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 1.55rem;
  background: var(--faq-hero-background);
  box-shadow: 0 24px 65px rgba(69, 31, 139, 0.23);
  isolation: isolate;
}

.ll-faq-soft-glass .ll-faq-hero::before,
.ll-faq-soft-glass .ll-faq-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}

.ll-faq-soft-glass .ll-faq-hero::before {
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.045), transparent 38%),
    radial-gradient(circle at 50% -12%, rgba(255, 255, 255, 0.09), transparent 30%);
  filter: none;
}

.ll-faq-soft-glass .ll-faq-hero::after {
  display: none;
}

.ll-faq-soft-glass .ll-page-hero__copy {
  position: relative;
  z-index: 1;
}

.ll-faq-soft-glass .ll-faq-hero h1 {
  display: flex;
  align-items: center;
  gap: 0.82rem;
  margin: 0;
  color: #fff;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ll-faq-soft-glass .ll-faq-hero h1 > i {
  display: inline-flex;
  flex: 0 0 3rem;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 10px 24px rgba(35, 10, 61, 0.16);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  font-size: 1.2rem;
}

.ll-faq-soft-glass .ll-faq-tools {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.9rem;
}

.ll-faq-soft-glass .ll-faq-search {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 54px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(35, 12, 63, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ll-faq-soft-glass .ll-faq-search:focus-within {
  border-color: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 40px rgba(35, 12, 63, 0.2), 0 0 0 3px rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.ll-faq-soft-glass .ll-faq-search > i {
  flex: 0 0 auto;
  margin-left: 1.05rem;
  color: var(--faq-purple-700);
  font-size: 1.05rem;
}

.ll-faq-soft-glass .ll-faq-search input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 3.2rem 0 0.8rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--faq-ink);
  font: inherit;
  font-size: 0.98rem;
}

.ll-faq-soft-glass .ll-faq-search input::placeholder {
  color: #93899d;
  opacity: 1;
}

.ll-faq-soft-glass .ll-faq-search input::-webkit-search-cancel-button {
  display: none;
}

.ll-faq-soft-glass .ll-faq-search__clear {
  position: absolute;
  top: 50%;
  right: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(96, 51, 139, 0.11);
  border-radius: 0.72rem;
  background: rgba(108, 48, 168, 0.08);
  color: var(--faq-purple-700);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 160ms ease, transform 160ms ease;
}

.ll-faq-soft-glass .ll-faq-search__clear:hover {
  background: rgba(108, 48, 168, 0.14);
  transform: translateY(-50%) scale(1.04);
}

.ll-faq-soft-glass .ll-faq-categories {
  display: flex;
  gap: 0.58rem;
  width: 100%;
  padding: 0.1rem 0 0.15rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.32) transparent;
  -webkit-overflow-scrolling: touch;
}

.ll-faq-soft-glass .ll-faq-categories::-webkit-scrollbar {
  height: 5px;
}

.ll-faq-soft-glass .ll-faq-categories::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.ll-faq-soft-glass .ll-faq-category {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.55rem 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.91);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 170ms ease, border-color 170ms ease, color 170ms ease, transform 170ms ease, box-shadow 170ms ease;
}

.ll-faq-soft-glass .ll-faq-category:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.ll-faq-soft-glass .ll-faq-category.is-active {
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.94);
  color: var(--faq-purple-800);
  box-shadow: 0 10px 26px rgba(33, 8, 58, 0.18), inset 0 1px 0 #fff;
}

.ll-faq-soft-glass .ll-faq-category__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.38rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.72rem;
  font-weight: 700;
}

.ll-faq-soft-glass .ll-faq-category.is-active .ll-faq-category__count {
  background: rgba(104, 39, 165, 0.1);
}

.ll-faq-soft-glass .ll-faq-list {
  display: grid;
  gap: 0.82rem;
}

.ll-faq-soft-glass .ll-faq-card {
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid var(--faq-line) !important;
  border-radius: 1.2rem !important;
  background: var(--faq-glass) !important;
  box-shadow: var(--faq-shadow) !important;
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ll-faq-soft-glass .ll-faq-card:hover {
  border-color: rgba(116, 57, 169, 0.22) !important;
  box-shadow: var(--faq-shadow-hover) !important;
  transform: translateY(-2px);
}

.ll-faq-soft-glass .ll-faq-card:not(.card-collapsed) {
  border-color: rgba(126, 59, 193, 0.25) !important;
  background: var(--faq-glass-strong) !important;
  box-shadow: var(--faq-shadow-hover) !important;
}

.ll-faq-soft-glass .ll-faq-card__header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 74px !important;
  padding: 0.9rem 1rem !important;
  border: 0 !important;
  background: rgba(255, 255, 255, 0.94) !important;
  cursor: pointer;
}

.ll-faq-soft-glass .ll-faq-card__header .card-title {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.78rem;
  min-width: 0;
  margin: 0;
  color: var(--faq-ink);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.55;
}

.ll-faq-soft-glass .ll-faq-card__header .bg-question {
  display: inline-flex;
  flex: 0 0 2.55rem;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  margin: 0;
  border: 1px solid rgba(116, 57, 169, 0.13);
  border-radius: 0.84rem;
  background: #efe7fa;
  color: var(--faq-purple-700);
  box-shadow: inset 0 1px 0 #fff, 0 8px 18px rgba(83, 37, 129, 0.08);
}

.ll-faq-soft-glass .ll-faq-card__question {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ll-faq-soft-glass .ll-faq-card__meta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.65rem;
}

.ll-faq-soft-glass .ll-faq-card__category {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  max-width: 230px;
  min-height: 32px;
  padding: 0.38rem 0.65rem;
  overflow: hidden;
  border: 1px solid rgba(116, 57, 169, 0.12);
  border-radius: 999px;
  background: rgba(116, 57, 169, 0.065);
  color: #6b3a97;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ll-faq-soft-glass .ll-faq-card .card-options {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  align-self: center;
  margin: 0;
  margin-inline-end: clamp(0.12rem, 0.45vw, 0.35rem);
}

.ll-faq-soft-glass .ll-faq-card .card-options-collapse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  border: 1px solid rgba(116, 57, 169, 0.12);
  border-radius: 0.82rem;
  background: rgba(116, 57, 169, 0.06);
  color: var(--faq-purple-700);
  transition: background 160ms ease, transform 200ms ease;
}

.ll-faq-soft-glass .ll-faq-card .card-options-collapse:hover {
  background: rgba(116, 57, 169, 0.12);
}

.ll-faq-soft-glass .ll-faq-card .card-body {
  padding: 1.1rem 1.25rem 1.3rem;
  overflow-x: auto;
  border-top: 1px solid rgba(96, 51, 139, 0.09);
  background: rgba(255, 255, 255, 0.88) !important;
  color: #554b60;
  font-size: 0.95rem;
  line-height: 1.82;
}

.ll-faq-soft-glass .ll-faq-card .card-body > :first-child {
  margin-top: 0;
}

.ll-faq-soft-glass .ll-faq-card .card-body > :last-child {
  margin-bottom: 0;
}

.ll-faq-soft-glass .ll-faq-card .card-body img,
.ll-faq-soft-glass .ll-faq-card .card-body video,
.ll-faq-soft-glass .ll-faq-card .card-body iframe {
  max-width: 100%;
}

.ll-faq-soft-glass .ll-faq-card .card-body table {
  min-width: 560px;
}

.ll-faq-soft-glass .ll-faq-empty {
  display: grid;
  justify-items: center;
  gap: 0.42rem;
  margin-top: 0.9rem;
  padding: 2.1rem 1.25rem;
  border: 1px solid var(--faq-line);
  border-radius: 1.25rem;
  background: var(--faq-glass);
  color: var(--faq-muted);
  text-align: center;
  box-shadow: var(--faq-shadow);
  backdrop-filter: blur(16px) saturate(118%);
  -webkit-backdrop-filter: blur(16px) saturate(118%);
}

.ll-faq-soft-glass .ll-faq-empty[hidden] {
  display: none !important;
}

.ll-faq-soft-glass .ll-faq-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 0.25rem;
  border: 1px solid rgba(116, 57, 169, 0.13);
  border-radius: 1rem;
  background: rgba(116, 57, 169, 0.08);
  color: var(--faq-purple-700);
  font-size: 1.2rem;
}

.ll-faq-soft-glass .ll-faq-empty strong {
  color: var(--faq-ink);
  font-size: 1rem;
}

/* Logged-in dark mode */
.ll-user-panel.theme-dark .ll-faq-soft-glass {
  --faq-ink: #f1ebf8;
  --faq-muted: #b7acbf;
  --faq-line: rgba(216, 193, 240, 0.14);
  --faq-glass: rgba(39, 29, 54, 0.9);
  --faq-glass-strong: rgba(44, 32, 61, 0.97);
  --faq-shadow: 0 20px 52px rgba(8, 4, 18, 0.3);
  --faq-shadow-hover: 0 24px 62px rgba(8, 4, 18, 0.4);
}

.ll-user-panel.theme-dark .ll-faq-soft-glass .ll-faq-card__header {
  background: rgba(43, 32, 59, 0.97) !important;
}

.ll-user-panel.theme-dark .ll-faq-soft-glass .ll-faq-card__header .card-title,
.ll-user-panel.theme-dark .ll-faq-soft-glass .ll-faq-empty strong {
  color: #f2ebf8 !important;
}

.ll-user-panel.theme-dark .ll-faq-soft-glass .ll-faq-card__header .bg-question {
  border-color: rgba(205, 174, 239, 0.16);
  background: #493465;
  color: #d1aeff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ll-user-panel.theme-dark .ll-faq-soft-glass .ll-faq-card__category {
  border-color: rgba(205, 174, 239, 0.14);
  background: rgba(178, 126, 235, 0.11);
  color: #d8bcf4;
}

.ll-user-panel.theme-dark .ll-faq-soft-glass .ll-faq-card .card-options-collapse {
  border-color: rgba(205, 174, 239, 0.14);
  background: rgba(178, 126, 235, 0.1);
  color: #d1aeff;
}

.ll-user-panel.theme-dark .ll-faq-soft-glass .ll-faq-card .card-body {
  border-top-color: rgba(216, 193, 240, 0.11);
  background: rgba(34, 25, 47, 0.96) !important;
  color: #d9d0e0 !important;
}

.ll-user-panel.theme-dark .ll-faq-soft-glass .ll-faq-empty {
  color: #b7acbf;
}

@media (max-width: 991.98px) {
  .ll-faq-soft-glass .ll-faq-hero {
    padding: 1.35rem;
    border-radius: 1.35rem;
  }

  .ll-faq-soft-glass .ll-faq-card__category {
    max-width: 190px;
  }
}

@media (max-width: 767.98px) {
  .ll-faq-soft-glass .ll-faq-hero {
    gap: 1.05rem;
    margin-bottom: 1rem;
    padding: 1.1rem;
    border-radius: 1.18rem;
  }

  .ll-faq-soft-glass .ll-faq-hero h1 {
    font-size: 1.5rem;
  }

  .ll-faq-soft-glass .ll-faq-hero h1 > i {
    flex-basis: 2.65rem;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 0.86rem;
    font-size: 1.05rem;
  }

  .ll-faq-soft-glass .ll-faq-search {
    min-height: 50px;
    border-radius: 0.92rem;
  }

  .ll-faq-soft-glass .ll-faq-search input {
    height: 48px;
    font-size: 0.94rem;
  }

  .ll-faq-soft-glass .ll-faq-category {
    min-height: 40px;
    padding: 0.5rem 0.72rem;
    font-size: 0.81rem;
  }

  .ll-faq-soft-glass .ll-faq-card__header {
    align-items: flex-start;
    min-height: 68px !important;
    padding: 0.82rem !important;
  }

  .ll-faq-soft-glass .ll-faq-card__header .card-title {
    align-items: flex-start;
    gap: 0.66rem;
    padding-top: 0.1rem;
    font-size: 0.93rem;
  }

  .ll-faq-soft-glass .ll-faq-card__header .bg-question {
    flex-basis: 2.3rem;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 0.74rem;
  }

  .ll-faq-soft-glass .ll-faq-card__meta {
    gap: 0.35rem;
  }

  .ll-faq-soft-glass .ll-faq-card__category {
    display: none;
  }

  .ll-faq-soft-glass .ll-faq-card .card-options-collapse {
    width: 38px;
    height: 38px;
    border-radius: 0.72rem;
  }

  .ll-faq-soft-glass .ll-faq-card .card-body {
    padding: 1rem;
    font-size: 0.92rem;
    line-height: 1.75;
  }
}

@media (max-width: 399.98px) {
  .ll-faq-soft-glass .ll-faq-hero {
    padding: 0.92rem;
  }

  .ll-faq-soft-glass .ll-faq-search > i {
    margin-left: 0.86rem;
  }

  .ll-faq-soft-glass .ll-faq-search input {
    padding-left: 0.65rem;
    font-size: 0.89rem;
  }

  .ll-faq-soft-glass .ll-faq-card__header {
    gap: 0.48rem;
  }

  .ll-faq-soft-glass .ll-faq-card__header .card-title {
    gap: 0.55rem;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ll-faq-soft-glass *,
  .ll-faq-soft-glass *::before,
  .ll-faq-soft-glass *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* Approved solid-UI refinement: utility controls and FAQ cards use single-color surfaces.
   Hero gradients remain intentionally unchanged. */

.ll-faq-soft-glass .ll-faq-search__clear,
.ll-faq-soft-glass .ll-faq-card .card-options-collapse {
  background-image: none !important;
}

.ll-faq-soft-glass .ll-faq-card__header,
.ll-faq-soft-glass .ll-faq-card__header .bg-question,
.ll-faq-soft-glass .ll-faq-card .card-body,
.ll-faq-soft-glass .ll-faq-empty {
  background-image: none !important;
}

.ll-faq-soft-glass .ll-faq-search__clear:focus-visible {
  outline: 3px solid rgba(126, 59, 193, 0.22);
  outline-offset: 2px;
}

/* FAQ category and accordion controls intentionally use no focus ring per approved UI behavior. */
.ll-faq-soft-glass .ll-faq-category:focus,
.ll-faq-soft-glass .ll-faq-category:focus-visible,
.ll-faq-soft-glass .ll-faq-card__toggle:focus,
.ll-faq-soft-glass .ll-faq-card__toggle:focus-visible,
.ll-faq-soft-glass .ll-faq-card .card-options-collapse:focus,
.ll-faq-soft-glass .ll-faq-card .card-options-collapse:focus-visible {
  outline: none !important;
}


@media (max-width: 399.98px) {
  .ll-faq-soft-glass .ll-faq-search {
    min-width: 0;
  }

  .ll-faq-soft-glass .ll-faq-category {
    min-height: 42px;
  }
}

/* Logged-in FAQ standalone shell: keep the user topbar while removing the
   navigation rail/menu only for /faq. */
body.ll-user-panel.ll-faq-standalone-user .ll-user-shell--standalone,
body.ll-user-panel.ll-faq-standalone-user .ll-user-main--standalone {
  width: 100%;
  min-width: 0;
}

body.ll-user-panel.ll-faq-standalone-user.menu-expanded header.ll-user-header.navbar,
body.ll-user-panel.ll-faq-standalone-user.menu-folded header.ll-user-header.navbar {
  padding-left: 0;
}

body.ll-user-panel.ll-faq-standalone-user .ll-standalone-brand {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  min-width: 0;
  margin-left: 0;
}

body.ll-user-panel.ll-faq-standalone-user .ll-standalone-brand .navbar-brand-logo {
  display: block;
  width: auto;
  max-width: 130px;
  max-height: 38px;
  object-fit: contain;
}

body.ll-user-horizontal.ll-faq-standalone-user .ll-faq-standalone-content > .container-fluid {
  width: 100%;
  padding-right: clamp(0.85rem, 2.5vw, 2rem);
  padding-left: clamp(0.85rem, 2.5vw, 2rem);
}

/* Accessible FAQ accordion: one native button controls each answer panel. */
.ll-faq-soft-glass .ll-faq-card__header {
  padding: 0 !important;
  cursor: default;
}

.ll-faq-soft-glass .ll-faq-card__heading {
  width: 100%;
  margin: 0;
  font: inherit;
}

.ll-faq-soft-glass .ll-faq-card__toggle {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 74px;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}

.ll-faq-soft-glass .ll-faq-card__toggle:hover .card-options-collapse {
  background: rgba(116, 57, 169, 0.12);
}

.ll-faq-soft-glass .ll-faq-card__toggle:focus,
.ll-faq-soft-glass .ll-faq-card__toggle:focus-visible {
  outline: none !important;
}

@media (max-width: 767.98px) {
  body.ll-user-panel.ll-faq-standalone-user .ll-standalone-brand .navbar-brand-logo {
    max-width: 4.75rem;
    max-height: 2rem;
  }

  .ll-faq-soft-glass .ll-faq-card__toggle {
    min-height: 68px;
    align-items: flex-start;
    padding: 0.82rem;
  }
}

@media (max-width: 359.98px) {
  body.ll-user-panel.ll-faq-standalone-user .ll-standalone-brand .navbar-brand-logo {
    max-width: 3rem;
  }
}
