﻿.app-help-faq {
  margin: 0;
  padding: 14px 14px 0;
  border-top: 1px solid #eef2f6;
  background: linear-gradient(180deg, #fafbfc 0, #fff 100%);
}

.app-help-faq__shell {
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, .95);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .05);
  overflow: hidden;
}

.app-help-faq__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(226, 232, 240, .85);
  background:
    linear-gradient(135deg, rgba(132, 204, 22, .06) 0, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, #f8fafc 0, #fff 100%);
}

.app-help-faq__head-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.app-help-faq__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #65a30d;
  background: linear-gradient(145deg, #f7fee7 0, #ecfccb 100%);
  box-shadow: inset 0 0 0 1px rgba(132, 204, 22, .14), 0 4px 12px rgba(132, 204, 22, .12);
}

.app-help-faq__head-text { min-width: 0; flex: 1; }

.app-help-faq__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

.app-help-faq__sub {
  margin: 4px 0 0;
  font-size: .78rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.5;
}

.app-help-faq__item[open] .app-help-faq__num,
.app-help-faq__request {
  color: #fff;
  background: linear-gradient(135deg, #84cc16 0, #65a30d 100%);
}

.app-help-faq__request {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(132, 204, 22, .28);
  transition: transform .15s, box-shadow .15s, filter .15s;
}

.app-help-faq__request:hover {
  filter: brightness(1.04);
  box-shadow: 0 6px 18px rgba(132, 204, 22, .34);
  transform: translateY(-1px);
}

.app-help-faq__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.app-help-faq__item {
  border: 1px solid #e8eaed;
  border-radius: 12px;
  background: #fafbfc;
  overflow: hidden;
  transition: border-color .15s, background .15s, box-shadow .15s;
}

.app-help-faq__item:hover {
  border-color: rgba(132, 204, 22, .22);
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
}

.app-help-faq__item[open] {
  border-color: rgba(132, 204, 22, .32);
  background: #fff;
  box-shadow: 0 4px 16px rgba(132, 204, 22, .08);
}

.app-help-faq__question {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  font-size: .875rem;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.app-help-faq__question::-webkit-details-marker { display: none; }

.app-help-faq__num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: .72rem;
  font-weight: 800;
  color: #65a30d;
  background: rgba(132, 204, 22, .1);
}

.app-help-faq__question-text {
  flex: 1;
  min-width: 0;
  line-height: 1.5;
}

.app-help-faq__chev {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #64748b;
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: transform .2s, color .15s, background .15s, border-color .15s;
}

.app-help-faq__item[open] .app-help-faq__chev {
  transform: rotate(180deg);
  color: #65a30d;
  background: #f7fee7;
  border-color: rgba(132, 204, 22, .24);
}

/* Distinctive answer panel */
.app-help-faq__answer {
  padding: 0 14px 14px;
  border-top: 1px solid rgba(226, 232, 240, .75);
  animation: .22s appHelpFaqReveal;
}

.app-help-faq__item--tone-1 .app-help-faq__answer {
  background: linear-gradient(180deg, rgba(247, 254, 231, .55) 0, #fff 42%);
}

.app-help-faq__item--tone-2 .app-help-faq__answer {
  background: linear-gradient(180deg, rgba(240, 253, 250, .7) 0, #fff 42%);
}

.app-help-faq__item--tone-3 .app-help-faq__answer {
  background: linear-gradient(180deg, rgba(248, 250, 252, .95) 0, #fff 42%);
}

.app-help-faq__intro {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, .9);
  background: rgba(255, 255, 255, .88);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.7;
  color: #334155;
}

.app-help-faq__item--tone-1 .app-help-faq__intro {
  border-color: rgba(132, 204, 22, .18);
  background: rgba(247, 254, 231, .45);
}

.app-help-faq__item--tone-2 .app-help-faq__intro {
  border-color: rgba(20, 184, 166, .16);
  background: rgba(240, 253, 250, .55);
}

/* Ultra-light steps */
.app-help-faq__steps {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-help-faq__step {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 7px 8px;
  border-radius: 9px;
  background: transparent;
}

.app-help-faq__step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 800;
  color: #65a30d;
  background: rgba(132, 204, 22, .12);
}

.app-help-faq__step-t {
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.55;
  color: #475569;
}

.app-help-faq__tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed rgba(132, 204, 22, .28);
  background: rgba(247, 254, 231, .35);
  font-size: .74rem;
  font-weight: 600;
  line-height: 1.55;
  color: #3f6212;
}

.app-help-faq__tip-ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 900;
  font-style: italic;
  color: #65a30d;
  background: rgba(132, 204, 22, .16);
}

@keyframes appHelpFaqReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 575px) {
  .app-help-faq { padding-inline: 12px; }
  .app-help-faq__head {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }
  .app-help-faq__request { width: 100%; }
}

@media (min-width: 768px) {
  .app-help-faq { padding: 16px 18px 0; }
  .app-help-faq__head { padding: 18px 20px 16px; }
  .app-help-faq__list { padding: 14px 14px 16px; }
  .app-help-faq__answer { padding-inline: 16px 16px; }
}

html.site-dark .app-help-faq,
html[data-apk-theme-dark] .app-help-faq {
  background: 0 0;
  border-top-color: rgba(148, 163, 184, .14);
}

html.site-dark .app-help-faq__shell,
html[data-apk-theme-dark] .app-help-faq__shell {
  background: rgba(15, 23, 42, .55);
  border-color: rgba(148, 163, 184, .16);
}

html.site-dark .app-help-faq__title,
html[data-apk-theme-dark] .app-help-faq__title { color: #f1f5f9; }

html.site-dark .app-help-faq__intro,
html.site-dark .app-help-faq__step-t,
html.site-dark .app-help-faq__sub,
html[data-apk-theme-dark] .app-help-faq__intro,
html[data-apk-theme-dark] .app-help-faq__step-t,
html[data-apk-theme-dark] .app-help-faq__sub { color: #94a3b8; }

html.site-dark .app-help-faq__item,
html[data-apk-theme-dark] .app-help-faq__item {
  background: rgba(15, 23, 42, .45);
  border-color: rgba(148, 163, 184, .14);
}

html.site-dark .app-help-faq__question,
html[data-apk-theme-dark] .app-help-faq__question { color: #e2e8f0; }

html.site-dark .app-help-faq__tip,
html[data-apk-theme-dark] .app-help-faq__tip {
  color: #bbf7d0;
  background: rgba(132, 204, 22, .08);
  border-color: rgba(132, 204, 22, .22);
}

/* Help modal (kept with FAQ assets) */
html.apk-modal-scroll-lock-html,
html.lap-help-modal-open-html,
html.lap-share-modal-open-html,
html.lap-update-modal-open-html {
  overflow: hidden;
  overscroll-behavior: none;
}

body.apk-modal-scroll-lock { overflow: hidden; }

.lap-help-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}

.lap-help-modal[hidden] { display: none !important; }

.lap-help-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .65);
}

.lap-help-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, .25);
  overflow: hidden;
  max-height: min(92vh, 680px);
  overflow-y: auto;
}

.lap-help-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #f1f3f4;
}

.lap-help-modal__head-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.lap-help-modal__head-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lap-help-modal__note {
  margin: 0;
  padding-inline-start: 48px;
  font-size: .75rem;
  color: #80868b;
}

.lap-help-modal__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lap-hero-green, #7bbf3a);
  color: #fff;
}

.lap-help-modal__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #202124;
}

.lap-help-modal__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: 0 0;
  color: #80868b;
  cursor: pointer;
}

.lap-help-modal__form {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lap-help-modal__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lap-help-modal__field label {
  font-size: .8125rem;
  font-weight: 700;
  color: #3c4043;
}

.lap-help-modal__req { color: #ea4335; }

.lap-help-modal__input,
.lap-help-modal__select,
.lap-help-modal__textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  background: #fff;
  font-size: .9375rem;
  font-family: inherit;
  color: #202124;
}

.lap-help-modal__textarea {
  min-height: 88px;
  resize: vertical;
}

.lap-help-modal__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lap-help-modal__status {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: .8125rem;
  font-weight: 700;
}

.lap-help-modal__status.is-ok { background: #f7fee7; color: #166534; }
.lap-help-modal__status.is-err { background: #fef2f2; color: #b91c1c; }

.lap-help-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: .9375rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}

.lap-help-modal__btn--primary {
  width: 100%;
  border: none;
  background: var(--lap-hero-green, #7bbf3a);
  color: #fff;
}

html.site-dark .lap-help-modal__panel,
html[data-apk-theme-dark] .lap-help-modal__panel { background: #1e293b; }

html.site-dark .lap-help-modal__title,
html.site-dark .lap-help-modal__field label,
html[data-apk-theme-dark] .lap-help-modal__title,
html[data-apk-theme-dark] .lap-help-modal__field label { color: #e2e8f0; }

html.site-dark .lap-help-modal__input,
html.site-dark .lap-help-modal__select,
html.site-dark .lap-help-modal__textarea,
html[data-apk-theme-dark] .lap-help-modal__input,
html[data-apk-theme-dark] .lap-help-modal__select,
html[data-apk-theme-dark] .lap-help-modal__textarea {
  background: #0f172a;
  border-color: rgba(148, 163, 184, .22);
  color: #e2e8f0;
}
