/* Help Center — Figma 808:14025 */

.help-page {
    overflow-x: clip;
    background: #fff;
    direction: rtl;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ═══════════════════════════════════════════
   Hero — 808:14029
   Directions: native RTL (page dir=rtl).
   Search: icon+input on the right | «بحث» on the left.
   Popular / support: label on the right, actions to the left.
   ═══════════════════════════════════════════ */
.help-hero {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    min-height: 688px;
    padding: 96px 32px 64px;
    border-radius: 0 0 50px 50px;
    background: #fff;
}

.help-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

/*
  Figma Ellipse 15: fill #EAE5FF, 782×764 box, blur asset 1382×1364
  (inset −39.27% / −38.36%). Keep a short white band under the sticky
  nav, glow centered behind the heading.
*/
.help-hero__ellipse {
    position: absolute;
    left: 50%;
    /* box center ≈ 160px → asset center 682 → top = 160 − 682 */
    top: -522px;
    width: 1382px;
    height: 1364px;
    max-width: none;
    transform: translateX(-50%);
    opacity: 1;
    pointer-events: none;
    object-fit: fill;
}

/* Thin white band under nav only — don’t wash out #EAE5FF */
.help-hero__bg::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 64px;
    background: linear-gradient(
        180deg,
        #fff 0%,
        rgba(255, 255, 255, 0.7) 55%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.help-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 1210px;
    margin-inline: auto;
    width: 100%;
    min-height: calc(688px - 192px);
}

.help-hero__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    max-width: 759px;
    text-align: center;
}

.help-hero__title {
    margin: 0;
    font-size: 60px;
    line-height: 72px;
    font-weight: 500;
    letter-spacing: -1.2px;
    color: #181d27;
}

.help-hero__desc {
    margin: 0;
    max-width: 759px;
    font-size: 20px;
    line-height: 30px;
    font-weight: 400;
    color: #535862;
}

.help-search {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    box-sizing: border-box;
    width: 100%;
    max-width: 1210px;
    padding: 48px 32px;
}

.help-search__form {
    width: 100%;
    max-width: 724px;
}

.help-search__field {
    direction: rtl;
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    min-height: 64px;
    padding: 14px;
    background: #fff;
    border: 1px solid #d5d7da;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
}

.help-search__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    order: 0;
    width: 20px;
    height: 20px;
}

.help-search__icon img {
    display: block;
    width: 20px;
    height: 20px;
}

.help-search__input {
    direction: rtl;
    flex: 1 1 auto;
    order: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #181d27;
    text-align: right;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.help-search__input::-webkit-search-decoration,
.help-search__input::-webkit-search-cancel-button,
.help-search__input::-webkit-search-results-button,
.help-search__input::-webkit-search-results-decoration {
    display: none;
}

.help-search__input::placeholder {
    color: #6b7280;
    text-align: right;
}

.help-search__btn {
    flex-shrink: 0;
    order: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 53px;
    height: 36px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #6a19ff;
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    box-shadow:
        0 1px 2px rgba(10, 13, 18, 0.05),
        inset 0 0 0 1px rgba(10, 13, 18, 0.18),
        inset 0 -2px 0 rgba(10, 13, 18, 0.05);
}

.help-search__btn:hover {
    background: #5a10e6;
}

.help-search__popular {
    direction: rtl;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding-bottom: 16px;
}

.help-search__popular-label {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #181d27;
    white-space: nowrap;
}

.help-search__chip {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #535862;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.help-search__chip:hover {
    color: #6a19ff;
}

.help-search__dot {
    font-size: 14px;
    line-height: 20px;
    color: #535862;
}

.help-support-pill {
    direction: rtl;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    box-sizing: border-box;
    padding: 7px;
    background: #fafafa;
    border: 1px solid #e9eaeb;
    border-radius: 9999px;
}

.help-support-pill__label {
    padding-inline-start: 16px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #535862;
    white-space: nowrap;
}

.help-support-pill__btn {
    direction: rtl;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #f5f5f5;
    border-radius: 9999px;
    color: #414651;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.help-support-pill__btn:hover {
    border-color: #d5d7da;
    color: #6a19ff;
}

.help-support-pill__btn img {
    display: block;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* ═══════════════════════════════════════════
   Categories — 808:14095
   ═══════════════════════════════════════════ */
.help-categories {
    box-sizing: border-box;
    padding: 96px 32px;
    background: #fafafa;
}

.help-categories__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
    max-width: 1280px;
    margin-inline: auto;
    width: 100%;
}

.help-section-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 768px;
    width: 100%;
    text-align: center;
}

.help-section-head__title {
    margin: 0;
    font-size: 36px;
    line-height: 44px;
    font-weight: 500;
    letter-spacing: -0.72px;
    color: #181d27;
}

.help-section-head__desc {
    margin: 0;
    font-size: 20px;
    line-height: 30px;
    font-weight: 400;
    color: #535862;
}

.help-categories__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 398px));
    justify-content: center;
    gap: 48px 24px;
    width: 100%;
}

.help-category-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* RTL start = right */
    gap: 16px;
    width: 100%;
    padding: 24px;
    background: #fff;
    border: 1px solid #e9eaeb;
    border-radius: 8px;
    text-align: right;
}

.help-category-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #f3f1ff;
}

.help-category-card__icon img {
    display: block;
    width: 24px;
    height: 24px;
}

.help-category-card__copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.help-category-card__title {
    margin: 0;
    font-size: 18px;
    line-height: 28px;
    font-weight: 500;
    color: #181d27;
}

.help-category-card__desc {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #535862;
}

.help-category-card__link {
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: #6819fa;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    text-decoration: none;
}

.help-category-card__link img {
    display: block;
    width: 13.33px;
    height: 13.33px;
}

.help-category-card__link:hover {
    opacity: 0.85;
}

/* ═══════════════════════════════════════════
   FAQ — 808:14112
   Frame 1440×762 · py 64 · list 768 · gap 16
   RTL: سؤال يمين · أيقونة plus/minus يسار
   Open wrap: bg #fafafa · radius 16 · p 24
   ═══════════════════════════════════════════ */
.help-faq {
    box-sizing: border-box;
    padding: 64px 32px;
    background: #fff;
}

.help-faq__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
    max-width: 1280px;
    margin-inline: auto;
    width: 100%;
}

.help-faq__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 768px;
    width: 100%;
    text-align: center;
}

.help-faq__title {
    margin: 0;
    width: 100%;
    font-size: 36px;
    line-height: 44px;
    font-weight: 500;
    letter-spacing: -0.72px;
    color: #181d27;
}

.help-faq__desc {
    margin: 0;
    width: 100%;
    font-size: 20px;
    line-height: 30px;
    font-weight: 400;
    color: #535862;
}

.help-faq__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 768px;
}

/* FAQ accordion item wrap */
.help-faq__item {
    box-sizing: border-box;
    width: 100%;
}

.help-faq__wrap {
    box-sizing: border-box;
    width: 100%;
    padding: 24px;
    border-radius: 16px;
    background: transparent;
    transition: background-color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.help-faq__item.is-open .help-faq__wrap {
    background: #fafafa;
}

/*
  Native RTL flex: question first → right, icon second → left.
  Matches Figma visual + pricing FAQ pattern.
*/
.help-faq__trigger {
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    text-align: right;
}

.help-faq__q {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: #181d27;
    text-align: right;
}

/* Smooth height: grid 0fr ↔ 1fr */
.help-faq__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.help-faq__item.is-open .help-faq__panel {
    grid-template-rows: 1fr;
}

.help-faq__panel-inner {
    overflow: hidden;
    min-height: 0;
}

.help-faq__a {
    margin: 0;
    padding-top: 4px;
    /* 24 icon + 16 gap — keep answer under the question column */
    padding-inline-end: 40px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #535862;
    text-align: right;
    opacity: 0;
    transform: translateY(-4px);
    transition:
        opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.help-faq__item.is-open .help-faq__a {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.06s;
}

/* Outer 24×24 · leaf 22×22 (Figma inset 8.33%) */
.help-faq__icon {
    position: relative;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
}

.help-faq__icon img {
    position: absolute;
    inset: 1px;
    display: block;
    width: 22px;
    height: 22px;
    max-width: none;
    transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.help-faq__icon-plus {
    opacity: 1;
    transform: rotate(0deg);
}

.help-faq__icon-minus {
    opacity: 0;
    transform: rotate(-90deg);
}

.help-faq__item.is-open .help-faq__icon-plus {
    opacity: 0;
    transform: rotate(90deg);
}

.help-faq__item.is-open .help-faq__icon-minus {
    opacity: 1;
    transform: rotate(0deg);
}

/* ═══════════════════════════════════════════
   Contact support — 808:14130
   ═══════════════════════════════════════════ */
.help-contact {
    box-sizing: border-box;
    padding: 48px 32px;
    background: #fff;
}

.help-contact__box {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    max-width: 1214px;
    margin-inline: auto;
    padding: 75px 48px;
    background: #fafafa;
    border-radius: 24px;
    box-shadow:
        0 12px 16px -4px rgba(10, 13, 18, 0.08),
        0 4px 6px -2px rgba(10, 13, 18, 0.03),
        0 2px 2px -1px rgba(10, 13, 18, 0.04);
}

.help-contact__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 768px;
    text-align: center;
}

.help-contact__title {
    margin: 0;
    font-size: 36px;
    line-height: 44px;
    font-weight: 500;
    letter-spacing: -0.72px;
    color: #181d27;
}

.help-contact__desc {
    margin: 0;
    max-width: 684px;
    font-size: 20px;
    line-height: 30px;
    font-weight: 400;
    color: #414651;
}

.help-contact__grid {
    direction: ltr;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 32px;
    width: 100%;
}

.help-contact__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 200px;
    text-decoration: none;
    color: inherit;
}

.help-contact__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 99px;
    background: #f3f1ff;
}

.help-contact__icon img {
    display: block;
    width: 24px;
    height: 24px;
}

.help-contact__item-title {
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: #181d27;
    text-align: center;
}

.help-contact__item-meta {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #717680;
    text-align: center;
}

/* ═══════════════════════════════════════════
   CTA — 808:14158
   ═══════════════════════════════════════════ */
.help-cta {
    box-sizing: border-box;
    max-width: 1440px;
    margin-inline: auto;
    padding: 0 80px 80px;
}

.help-cta__box {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    min-height: 404px;
    padding: 64px 48px;
    border-radius: 24px;
    background: linear-gradient(135deg, #6a19ff 0%, #4c0fd4 100%);
}

.help-cta__deco {
    position: absolute;
    inset: -20% -10% auto;
    width: 140%;
    max-width: none;
    opacity: 0.35;
    pointer-events: none;
}

.help-cta__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 1056px;
    margin-inline: auto;
    text-align: center;
    color: #fff;
}

.help-cta__eyebrow {
    margin: 0;
    font-size: 18px;
    line-height: 32px;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.help-cta__title-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.help-cta__title {
    margin: 0;
    font-size: 48px;
    line-height: 60px;
    font-weight: 500;
    color: #fff;
}

.help-cta__minutes {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.help-cta__zap {
    position: absolute;
    top: 0;
    left: -40px;
    width: 36px;
    height: 36px;
}

.help-cta__desc {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

.help-cta__avatars {
    direction: ltr;
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.help-cta__avatars img {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    border: 2px solid #fff;
    object-fit: cover;
}

.help-cta__avatars img + img {
    margin-inline-start: -8px;
}

.help-cta__actions {
    direction: ltr;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.help-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 158px;
    height: 40px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.help-cta__btn--solid {
    background: #fff;
    color: #181d27;
}

.help-cta__btn--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.help-cta__btn:hover {
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */
@media (max-width: 1100px) {
    .help-categories__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .help-hero {
        min-height: 0;
        padding: 64px 20px 48px;
        border-radius: 0 0 24px 24px;
    }

    .help-hero__title {
        font-size: 36px;
        line-height: 44px;
    }

    .help-hero__desc {
        font-size: 16px;
        line-height: 26px;
    }

    .help-search {
        padding: 24px 0 0;
    }

    .help-search__field {
        flex-wrap: wrap;
    }

    .help-search__btn {
        order: 3;
        width: 100%;
        min-width: 0;
        height: 44px;
    }

    .help-support-pill {
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 20px;
    }

    .help-categories,
    .help-faq,
    .help-contact {
        padding-inline: 20px;
    }

    .help-categories__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .help-section-head__title,
    .help-faq__title,
    .help-contact__title {
        font-size: 28px;
        line-height: 36px;
    }

    .help-section-head__desc,
    .help-faq__desc,
    .help-contact__desc {
        font-size: 16px;
        line-height: 26px;
    }

    .help-contact__box {
        padding: 40px 24px;
    }

    .help-cta {
        padding: 0 20px 48px;
    }

    .help-cta__box {
        padding: 48px 24px;
        min-height: 0;
    }

    .help-cta__title {
        font-size: 28px;
        line-height: 38px;
    }

    .help-cta__zap {
        width: 24px;
        height: 24px;
        left: -28px;
    }

    .help-cta__actions {
        flex-direction: column;
        width: 100%;
    }

    .help-cta__btn {
        width: 100%;
    }
}
