/* ========== HELP / FAQ ========== */
.help-page {
    margin-top: 70px;
    padding: 42px 30px 70px;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

.help-hero {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 34px;
}

.help-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.help-kicker svg {
    width: 16px;
    height: 16px;
}

.help-hero h1,
.help-article-header h1 {
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1;
    letter-spacing: -0.05em;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #FFFFFF, var(--muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.help-hero p,
.help-article-header p,
.help-contact-section p,
.help-section-head p {
    color: var(--muted);
    line-height: 1.7;
}

.help-search {
    position: relative;
    max-width: 760px;
    margin: 0 auto 36px;
}

.help-search svg {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    color: var(--muted);
}

.help-search input {
    width: 100%;
    height: 58px;
    border: 1px solid rgba(44, 58, 71, 0.8);
    border-radius: 999px;
    color: var(--text);
    background: rgba(20, 24, 28, 0.86);
    padding: 0 22px 0 58px;
    font: inherit;
    font-size: 16px;
    outline: none;
    transition: 0.2s ease;
}

.help-search input:focus {
    border-color: rgba(var(--accent-rgb), 0.5);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.1);
}

.help-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.help-article-card,
.help-support-card,
.help-faq-item,
.help-contact-section,
.help-article-detail {
    border: 1px solid rgba(44, 58, 71, 0.62);
    background: rgba(20, 24, 28, 0.78);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.help-article-card {
    border-radius: 22px;
    padding: 24px;
    transition: 0.2s ease;
}

.help-article-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--accent-rgb), 0.42);
    background: rgba(var(--accent-rgb), 0.06);
}

.help-article-icon,
.help-support-icon,
.help-article-big-icon {
    display: grid;
    place-items: center;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.12);
}

.help-article-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    margin-bottom: 18px;
}

.help-article-card h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.help-article-card p {
    color: var(--muted);
    line-height: 1.6;
}

.help-support-card {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 26px 0 42px;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.12), rgba(20, 24, 28, 0.9));
}

.help-support-icon,
.help-article-big-icon {
    flex: 0 0 auto;
    width: 62px;
    height: 62px;
    border-radius: 20px;
}

.help-support-card h2 {
    margin-bottom: 5px;
}

.help-support-link,
.help-contact-btn {
    margin-left: auto;
    min-height: 44px;
    border-radius: 999px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #06100E;
    background: var(--accent);
    font-weight: 900;
    white-space: nowrap;
}

.help-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.help-section-head h2 {
    font-size: clamp(24px, 4vw, 34px);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.help-section-head a {
    color: var(--accent);
    font-weight: 850;
}

.help-faq-section,
.help-articles-section {
    margin-top: 42px;
}

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

.help-faq-item {
    border-radius: 18px;
    overflow: hidden;
}

.help-faq-question {
    width: 100%;
    min-height: 68px;
    padding: 18px 20px;
    border: 0;
    color: var(--text);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    cursor: pointer;
    text-align: left;
}

.help-faq-question span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    font-size: 17px;
}

.help-faq-question span svg {
    color: var(--accent);
}

.help-faq-answer {
    padding: 0 20px 20px 52px;
    color: var(--muted);
    line-height: 1.65;
}

.help-faq-answer ul,
.help-article-content ul {
    margin: 12px 0 0;
    padding-left: 18px;
}

.help-faq-answer li,
.help-article-content li {
    margin: 7px 0;
}

.help-article-card {
    color: var(--text);
}

.help-article-card span {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--accent);
    font-weight: 900;
}

.help-contact-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 46px;
    padding: 28px;
    border-radius: 24px;
}

.help-contact-section h2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.help-no-result {
    margin-top: 24px;
    padding: 18px;
    border-radius: 18px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
}

.help-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.help-breadcrumb a:hover {
    color: var(--accent);
}

.help-breadcrumb svg {
    width: 16px;
    height: 16px;
}

.article-page {
    max-width: 1080px;
}

.help-article-detail {
    border-radius: 28px;
    overflow: hidden;
}

.help-article-header {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 22px;
    padding: clamp(26px, 5vw, 44px);
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.12), rgba(20, 24, 28, 0.9));
}

.help-article-header h1 {
    font-size: clamp(34px, 5vw, 52px);
}

.help-article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    color: var(--muted);
    margin-top: 18px;
}

.help-article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.help-article-meta svg {
    width: 16px;
    height: 16px;
}

.help-article-content {
    padding: clamp(24px, 5vw, 44px);
    display: grid;
    gap: 30px;
}

.help-article-content h2 {
    font-size: 26px;
    margin-bottom: 10px;
}

.help-article-content p,
.help-article-content li {
    color: var(--muted);
    line-height: 1.75;
}

.help-articles-section.compact {
    margin-top: 34px;
}

.compact-card {
    padding: 20px;
}

[data-help-search-item][hidden] {
    display: none !important;
}

.help-empty-state {
    padding: 42px 24px;
    border: 1px dashed rgba(44, 58, 71, 0.8);
    border-radius: 22px;
    color: var(--muted);
    background: rgba(20, 24, 28, 0.5);
    text-align: center;
}

.help-empty-state > svg {
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
    color: var(--accent);
}

.help-empty-state h3 {
    margin-bottom: 8px;
    color: var(--text);
    font-size: 20px;
}

.help-empty-state p {
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
}

.public-rich-content {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.public-rich-content > :first-child {
    margin-top: 0;
}

.public-rich-content > :last-child {
    margin-bottom: 0;
}

.public-rich-content h2,
.public-rich-content h3,
.public-rich-content h4,
.public-rich-content p,
.public-rich-content blockquote,
.public-rich-content ul,
.public-rich-content ol,
.public-rich-content dl,
.public-rich-content pre,
.public-rich-content table,
.public-rich-content details,
.public-rich-content hr {
    margin: 0 0 20px;
}

.public-rich-content h2,
.public-rich-content h3,
.public-rich-content h4 {
    color: var(--text);
    line-height: 1.25;
}

.public-rich-content h2 {
    margin-top: 34px;
    font-size: clamp(24px, 4vw, 30px);
}

.public-rich-content h3 {
    margin-top: 28px;
    font-size: 22px;
}

.public-rich-content h4 {
    margin-top: 24px;
    font-size: 18px;
}

.public-rich-content p,
.public-rich-content li,
.public-rich-content dd {
    color: var(--muted);
    line-height: 1.8;
}

.public-rich-content ul,
.public-rich-content ol {
    padding-left: 24px;
}

.public-rich-content li + li {
    margin-top: 8px;
}

.public-rich-content dt {
    margin-top: 14px;
    color: var(--text);
    font-weight: 900;
}

.public-rich-content dd {
    margin: 5px 0 0;
}

.public-rich-content a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.public-rich-content blockquote {
    padding: 18px 20px;
    border-left: 3px solid var(--accent);
    border-radius: 0 14px 14px 0;
    background: rgba(var(--accent-rgb), 0.08);
}

.public-rich-content blockquote > :last-child {
    margin-bottom: 0;
}

.public-rich-content code {
    padding: 2px 6px;
    border-radius: 6px;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
}

.public-rich-content pre {
    max-width: 100%;
    padding: 18px;
    border: 1px solid rgba(44, 58, 71, 0.72);
    border-radius: 16px;
    background: #0A0C0F;
    overflow: auto;
}

.public-rich-content pre code {
    padding: 0;
    color: var(--text);
    background: transparent;
}

.public-rich-content table {
    width: 100%;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
}

.public-rich-content th,
.public-rich-content td {
    min-width: 130px;
    padding: 12px 14px;
    border: 1px solid rgba(44, 58, 71, 0.72);
    text-align: left;
    vertical-align: top;
}

.public-rich-content th {
    color: var(--text);
    background: rgba(var(--accent-rgb), 0.1);
}

.public-rich-content td {
    color: var(--muted);
}

.public-rich-content hr {
    border: 0;
    border-top: 1px solid rgba(44, 58, 71, 0.72);
}

.public-rich-content mark {
    padding: 1px 4px;
    border-radius: 4px;
    color: var(--text);
    background: rgba(var(--accent-rgb), 0.25);
}

.public-rich-content details {
    padding: 16px 18px;
    border: 1px solid rgba(44, 58, 71, 0.72);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.public-rich-content summary {
    color: var(--text);
    cursor: pointer;
    font-weight: 900;
}

.public-rich-content details[open] summary {
    margin-bottom: 14px;
}

@media (max-width: 920px) {
    .help-articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .help-support-card,
    .help-contact-section {
        align-items: flex-start;
        flex-direction: column;
    }

    .help-support-link,
    .help-contact-btn {
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .help-page {
        padding: 28px 16px 54px;
    }

    .help-articles-grid,
    .help-article-header {
        grid-template-columns: 1fr;
    }

    .help-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .help-faq-question {
        padding: 16px;
    }

    .help-faq-answer {
        padding: 0 16px 18px;
    }
}
