.help-page {
    min-height: 100vh;
    background: #f7f6fa;
}

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

.help-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 72px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(18px);
}

.help-header-inner {
    width: min(1440px, 100%);
    height: 100%;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.help-header-divider {
    width: 1px;
    height: 25px;
    background: var(--line);
}

.help-header-title {
    font-size: 15px;
}

.help-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.help-header-actions > a:first-child {
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 600;
}

.help-header-actions > a:first-child:hover {
    color: var(--purple);
}

.help-layout {
    width: min(1440px, 100%);
    min-height: calc(100vh - 72px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
}

.help-sidebar {
    height: calc(100vh - 72px);
    padding: 30px 24px 60px;
    position: sticky;
    top: 72px;
    overflow-y: auto;
    border-right: 1px solid var(--line);
    background: white;
    scrollbar-width: thin;
    scrollbar-color: #d9d4e3 transparent;
}

.help-search {
    position: relative;
    display: flex;
    align-items: center;
}

.help-search svg {
    position: absolute;
    left: 13px;
    width: 18px;
    height: 18px;
    color: #888094;
    pointer-events: none;
}

.help-search input {
    width: 100%;
    height: 46px;
    padding: 0 43px 0 41px;
    border: 1px solid transparent;
    border-radius: 13px;
    outline: 0;
    color: var(--ink);
    background: #f3f1f6;
    font-size: 13px;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.help-search input:focus {
    border-color: #c8bcff;
    background: white;
    box-shadow: 0 0 0 4px rgba(109, 74, 255, .1);
}

.help-search kbd {
    position: absolute;
    right: 11px;
    min-width: 22px;
    padding: 3px 6px;
    border: 1px solid #ded9e7;
    border-bottom-width: 2px;
    border-radius: 6px;
    color: #817a8d;
    background: white;
    text-align: center;
    font-family: inherit;
    font-size: 10px;
}

.help-search-status {
    min-height: 18px;
    margin: 8px 3px 0;
    color: var(--ink-soft);
    font-size: 11px;
}

.help-nav {
    margin-top: 18px;
    display: grid;
    gap: 28px;
}

.help-nav-group {
    display: grid;
    gap: 5px;
}

.help-nav-title {
    margin-bottom: 4px;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #8a8297;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
}

.help-nav-title span {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--purple);
    background: var(--purple-soft);
    font-size: 9px;
    letter-spacing: 0;
}

.help-nav a {
    min-height: 39px;
    padding: 9px 10px 9px 46px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 9px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    transition: color .2s, background .2s;
}

.help-nav a span {
    min-width: 0;
    flex: 1;
}

.help-nav a b {
    opacity: 0;
    color: var(--purple);
    font-size: 19px;
    transform: translateX(-5px);
    transition: opacity .2s, transform .2s;
}

.help-nav a:hover,
.help-nav a.is-active {
    color: var(--purple-dark);
    background: #f3f0ff;
}

.help-nav a:hover b,
.help-nav a.is-active b {
    opacity: 1;
    transform: none;
}

.help-main {
    min-width: 0;
    padding: 0 clamp(36px, 6vw, 90px) 35px;
    background: #fbfafc;
}

.help-hero {
    margin: 0 calc(clamp(36px, 6vw, 90px) * -1);
    padding: 78px clamp(36px, 6vw, 90px) 70px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 88% 10%, rgba(109, 74, 255, .12), transparent 28%),
        radial-gradient(circle at 10% 90%, rgba(244, 123, 77, .07), transparent 26%),
        white;
}

.help-hero > span {
    color: var(--purple);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .1em;
}

.help-hero h1 {
    margin: 15px 0 0;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.2;
    letter-spacing: -.045em;
}

.help-hero p {
    max-width: 720px;
    margin: 20px 0 0;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.85;
}

.help-quick-links {
    margin-top: 29px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.help-quick-links a {
    padding: 9px 14px;
    border: 1px solid #ded8f5;
    border-radius: 10px;
    color: var(--purple-dark);
    background: rgba(255, 255, 255, .8);
    font-size: 12px;
    font-weight: 700;
}

.help-quick-links a:hover {
    border-color: var(--purple);
    background: var(--purple-soft);
}

.help-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 0 5px;
    scroll-margin-top: 75px;
}

.help-section-heading {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.help-section-heading > span {
    width: 49px;
    height: 49px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: white;
    background: var(--purple);
    box-shadow: 0 12px 25px rgba(109, 74, 255, .2);
    font-size: 13px;
    font-weight: 900;
}

.help-section-heading small {
    display: block;
    color: #9b94a7;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
}

.help-section-heading h2 {
    margin: 5px 0 0;
    font-size: 27px;
    letter-spacing: -.025em;
}

.help-articles {
    display: grid;
    gap: 12px;
}

.help-article {
    scroll-margin-top: 90px;
}

.help-article details {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
    transition: border-color .2s, box-shadow .2s;
}

.help-article details[open] {
    border-color: #d8d0f5;
    box-shadow: 0 16px 40px rgba(48, 37, 77, .07);
}

.help-article summary {
    min-height: 66px;
    padding: 18px 21px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    cursor: pointer;
    list-style: none;
    font-size: 15px;
    font-weight: 800;
}

.help-article summary::-webkit-details-marker {
    display: none;
}

.help-article summary i {
    position: relative;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #f4f2f7;
}

.help-article summary i::before,
.help-article summary i::after {
    content: "";
    position: absolute;
    width: 11px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink-soft);
    transition: transform .2s;
}

.help-article summary i::after {
    transform: rotate(90deg);
}

.help-article details[open] summary i {
    color: var(--purple);
    background: var(--purple-soft);
}

.help-article details[open] summary i::after {
    transform: rotate(0deg);
}

.help-answer {
    padding: 0 22px 24px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.85;
}

.help-summary {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-left: 3px solid var(--purple);
    border-radius: 0 10px 10px 0;
    color: #4c445d;
    background: #f7f5ff;
    font-weight: 600;
}

.help-answer p {
    margin: 14px 0 0;
}

.help-answer ul,
.help-answer ol {
    margin: 14px 0 0;
    padding-left: 22px;
}

.help-answer li {
    margin: 7px 0;
    padding-left: 4px;
}

.help-answer b {
    color: var(--ink);
}

.help-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.help-actions a {
    padding: 9px 14px;
    border: 1px solid var(--purple);
    border-radius: 9px;
    color: white;
    background: var(--purple);
    font-size: 12px;
    font-weight: 700;
}

.help-actions a.secondary {
    color: var(--purple);
    background: white;
}

.help-empty {
    max-width: 760px;
    margin: 70px auto 0;
    padding: 55px 30px;
    border: 1px dashed #cfc8da;
    border-radius: 18px;
    text-align: center;
    background: white;
}

.help-empty strong {
    font-size: 20px;
}

.help-empty p {
    color: var(--ink-soft);
    font-size: 13px;
}

.help-empty button {
    margin-top: 9px;
    padding: 9px 14px;
    border: 0;
    border-radius: 9px;
    color: white;
    background: var(--purple);
    font-weight: 700;
    cursor: pointer;
}

.help-contact {
    max-width: 900px;
    margin: 90px auto 40px;
    padding: 38px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    border-radius: 22px;
    color: white;
    background: linear-gradient(135deg, #28213e, #3a3154);
    box-shadow: 0 25px 55px rgba(37, 29, 57, .16);
}

.help-contact span {
    color: #c5b9ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
}

.help-contact h2 {
    margin: 8px 0 0;
    font-size: 25px;
}

.help-contact p {
    max-width: 590px;
    margin: 10px 0 0;
    color: #c6bfce;
    font-size: 13px;
    line-height: 1.7;
}

.help-contact .button {
    flex: 0 0 auto;
}

.help-footer {
    max-width: 900px;
    margin: 0 auto;
    padding: 26px 0 10px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    color: #8b8496;
    font-size: 11px;
}

.help-footer a:hover {
    color: var(--purple);
}

@media (max-width: 960px) {
    .help-layout {
        grid-template-columns: 255px minmax(0, 1fr);
    }

    .help-sidebar {
        padding: 24px 16px 45px;
    }

    .help-nav a {
        padding-left: 15px;
    }

    .help-main {
        padding-left: 32px;
        padding-right: 32px;
    }

    .help-hero {
        margin-left: -32px;
        margin-right: -32px;
        padding-left: 32px;
        padding-right: 32px;
    }
}

@media (max-width: 720px) {
    .help-header {
        height: 64px;
    }

    .help-header-inner {
        padding: 0 14px;
        gap: 10px;
    }

    .help-header .brand-copy {
        display: none;
    }

    .help-header-divider {
        display: none;
    }

    .help-header-title {
        font-size: 14px;
    }

    .help-header-actions {
        gap: 10px;
    }

    .help-header-actions > a:first-child {
        display: none;
    }

    .help-layout {
        display: block;
    }

    .help-sidebar {
        width: auto;
        height: auto;
        padding: 16px 14px 14px;
        position: sticky;
        top: 64px;
        z-index: 80;
        overflow: visible;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        background: rgba(255, 255, 255, .96);
        backdrop-filter: blur(14px);
    }

    .help-search-status,
    .help-nav {
        display: none;
    }

    .help-main {
        padding: 0 16px 28px;
    }

    .help-hero {
        margin: 0 -16px;
        padding: 58px 20px 48px;
    }

    .help-hero h1 {
        font-size: 37px;
    }

    .help-hero p {
        font-size: 14px;
    }

    .help-section {
        padding-top: 62px;
        scroll-margin-top: 125px;
    }

    .help-section-heading > span {
        width: 43px;
        height: 43px;
    }

    .help-section-heading h2 {
        font-size: 23px;
    }

    .help-article {
        scroll-margin-top: 135px;
    }

    .help-article summary {
        min-height: 61px;
        padding: 16px;
        font-size: 14px;
    }

    .help-answer {
        padding: 0 16px 20px;
        font-size: 13px;
    }

    .help-contact {
        margin-top: 70px;
        padding: 30px 23px;
        align-items: stretch;
        flex-direction: column;
        text-align: center;
    }

    .help-contact .button {
        width: 100%;
    }

    .help-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .help-article details,
    .help-article summary i::after,
    .help-nav a,
    .help-nav a b {
        transition: none;
    }
}
