.help-center-launcher {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 2500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 16px 10px 12px;
    border: 1px solid rgba(255, 215, 0, 0.45);
    border-radius: 999px;
    background: linear-gradient(135deg, #800000 0%, #5f0b13 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 18px 36px rgba(88, 12, 20, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.help-center-actions { position: fixed; right: 28px; bottom: 28px; z-index: 2500; display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
body:has(.help-center-actions) .dashboard-bottom-actions { display: none; }
.help-center-actions .help-center-launcher { position: static; }
.help-center-ask-ai {
    order: -1; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 16px 10px 12px;
    border: 1px solid rgba(255,215,0,.45); border-radius: 999px;
    background: linear-gradient(135deg, #800000 0%, #5f0b13 100%); color: #fff;
    font: inherit; font-size: 14px; font-weight: 900; cursor: pointer; box-shadow: 0 18px 36px rgba(88,12,20,.28);
    opacity: 0; visibility: hidden; transform: translateY(12px); pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease, transform .2s ease, box-shadow .2s ease;
}
.help-center-ask-ai span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,215,0,.16); color: #ffd700; }
.help-center-actions:hover .help-center-ask-ai, .help-center-actions:focus-within .help-center-ask-ai { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.help-center-ask-ai:hover { transform: translateY(-2px) !important; box-shadow: 0 22px 44px rgba(88,12,20,.34); }
.help-center-ask-ai:focus-visible { outline: 3px solid rgba(255,215,0,.48); outline-offset: 3px; }
.help-ai-modal { position: fixed; inset: 0; z-index: 10000; display: none; place-items: center; padding: 20px; }
.help-ai-modal.is-open { display: grid; }
.help-ai-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.65); backdrop-filter: blur(5px); }
.help-ai-panel { position: relative; width: min(650px,100%); padding: 28px; border-radius: 20px; background: #fff; box-shadow: 0 28px 80px rgba(15,23,42,.32); }
.help-ai-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border: 0; border-radius: 12px; background: #fff7ed; color: #800000; cursor: pointer; }
.help-ai-kicker { color: #800000; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.help-ai-panel h2 { margin: 8px 45px 4px 0; color: #1f2937; }
.help-ai-panel > p, .help-ai-panel > small { color: #64748b; line-height: 1.55; }
.help-ai-chat { display: flex; flex-direction: column; gap: 9px; height: 230px; overflow-y: auto; margin: 18px 0 12px; padding: 14px; border: 1px solid #e2e8f0; border-radius: 14px; background: #f8fafc; }
.help-ai-message { max-width: 84%; padding: 10px 13px; border-radius: 13px; background: #fff; color: #334155; white-space: pre-wrap; line-height: 1.5; }
.help-ai-message.is-user { align-self: flex-end; background: #800000; color: #fff; }
.help-ai-message p, .help-ai-message ul, .help-ai-message ol, .help-ai-message h4 { margin: 0 0 8px; }
.help-ai-message > :last-child { margin-bottom: 0; }
.help-ai-message ul, .help-ai-message ol { padding-left: 21px; }
.help-ai-message li + li { margin-top: 5px; }
.help-ai-message h4 { color: inherit; font-size: 15px; }
.help-ai-message code { padding: 2px 5px; border-radius: 5px; background: rgba(15,23,42,.08); font-size: .9em; }
.help-ai-suggestions { display: flex; flex-wrap: wrap; gap: 7px; max-height: 116px; overflow-y: auto; margin: 0 0 11px; padding: 2px; }
.help-ai-suggestions button { border: 1px solid rgba(128,0,0,.2); border-radius: 999px; padding: 7px 11px; background: #fff8f3; color: #800000; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.help-ai-suggestions button:hover, .help-ai-suggestions button:focus { background: #800000; color: #fff; outline: none; }
.help-ai-form { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin-bottom: 9px; }
.help-ai-form textarea { resize: vertical; padding: 11px 13px; border: 1px solid #cbd5e1; border-radius: 12px; font: inherit; }
.help-ai-form button { border: 0; border-radius: 12px; padding: 0 16px; background: #800000; color: #fff; font-weight: 900; cursor: pointer; }

.help-center-launcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(88, 12, 20, 0.34);
}

.help-center-launcher-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.16);
    color: #ffd700;
}

.org-help-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 14px;
    border: 1px solid rgba(128, 0, 0, 0.18);
    border-radius: 10px;
    background: #fff7ed;
    color: #7f1d1d;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(127, 29, 29, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.org-help-button:hover {
    background: #fffbeb;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(127, 29, 29, 0.12);
}

.dashboard-bottom-actions {
    display: flex;
    justify-content: flex-end;
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 2400;
    margin: 0;
    pointer-events: none;
}

.dashboard-help-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 215, 0, 0.5);
    border-radius: 12px;
    background: linear-gradient(135deg, #9f111b 0%, #800000 52%, #5f0b13 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 14px 30px rgba(128, 0, 0, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    pointer-events: auto;
}

.dashboard-help-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(128, 0, 0, 0.3);
}

.dashboard-help-button i {
    color: #ffd700;
}

.page-actions:has(.org-help-button) {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.help-center-page {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.help-center-page .help-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px;
    border: 1px solid rgba(128, 0, 0, 0.14);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(128, 0, 0, 0.08) 0%, rgba(255, 215, 0, 0.16) 100%),
        var(--bg-card, #ffffff);
}

.help-center-page.org-help-center-page .help-hero {
    background:
        linear-gradient(135deg, rgba(67, 56, 202, 0.08) 0%, rgba(128, 0, 0, 0.08) 52%, rgba(255, 215, 0, 0.14) 100%),
        var(--bg-card, #ffffff);
}

.help-center-page .help-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(128, 0, 0, 0.1);
    color: #800000;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.help-center-page .help-hero h1 {
    margin: 0;
    color: var(--text-primary, #1e293b);
    font-size: 36px;
    line-height: 1.1;
    font-weight: 900;
}

.help-center-page .help-hero p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--text-secondary, #64748b);
    font-size: 15px;
    line-height: 1.7;
}

.help-center-page .help-hero-mark {
    width: 92px;
    height: 92px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: #800000;
    box-shadow: inset 0 0 0 3px rgba(255, 215, 0, 0.28);
}

.help-center-page .help-hero-mark img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.help-center-page .help-section {
    border-top: 1px solid var(--border-primary, #e2e8f0);
    padding-top: 28px;
}

.help-center-page .help-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.help-center-page .help-section-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 14px;
    background: rgba(128, 0, 0, 0.1);
    color: #800000;
}

.help-center-page .help-section-icon-green {
    background: rgba(16, 185, 129, 0.13);
    color: #059669;
}

.help-center-page .help-section h2 {
    margin: 0;
    color: var(--text-primary, #1e293b);
    font-size: 24px;
    font-weight: 900;
}

.help-center-page .help-section-heading p {
    margin: 5px 0 0;
    color: var(--text-secondary, #64748b);
    line-height: 1.5;
}

.help-center-page .faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.help-center-page .faq-item {
    border: 1px solid var(--border-primary, #e2e8f0);
    border-radius: 12px;
    background: var(--bg-card, #ffffff);
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.help-center-page .faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    cursor: pointer;
    color: var(--text-primary, #1e293b);
    font-weight: 800;
    list-style: none;
}

.help-center-page .faq-item summary::-webkit-details-marker {
    display: none;
}

.help-center-page .faq-item summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #800000;
    transition: transform 0.2s ease;
}

.help-center-page .faq-item[open] summary::after {
    transform: rotate(180deg);
}

.help-center-page .faq-item p {
    margin: 0;
    padding: 0 18px 18px;
    color: var(--text-secondary, #64748b);
    font-size: 14px;
    line-height: 1.7;
}

.help-center-page .contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.help-center-page .contact-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    min-height: 160px;
    padding: 24px;
    border: 1px solid var(--border-primary, #e2e8f0);
    border-radius: 14px;
    background: var(--bg-tertiary, #f8fafc);
}

.help-center-page .contact-card-email {
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.08), rgba(255, 215, 0, 0.14));
}

.help-center-page .contact-card-page {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(128, 0, 0, 0.06));
}

.help-center-page .contact-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #800000;
    color: #ffffff;
    font-size: 22px;
}

.help-center-page .contact-card-page .contact-icon {
    background: #2563eb;
}

.help-center-page .contact-card h3 {
    margin: 4px 0 8px;
    color: var(--text-primary, #1e293b);
    font-size: 18px;
    font-weight: 900;
}

.help-center-page .contact-card p {
    margin: 0 0 16px;
    color: var(--text-secondary, #64748b);
    font-size: 14px;
    line-height: 1.6;
}

.help-center-page .contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    color: #800000;
    font-weight: 800;
    text-decoration: none;
    word-break: break-word;
}

.help-center-page .contact-link:hover {
    text-decoration: underline;
}

.help-center-page .support-hours {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--border-primary, #e2e8f0);
    border-radius: 12px;
    background: var(--bg-card, #ffffff);
}

.help-center-page .support-hours span {
    color: #64748b;
}

.help-center-page .support-hours p {
    margin: 0;
    color: var(--text-secondary, #64748b);
    font-size: 14px;
    line-height: 1.7;
}

[data-theme="dark"] .help-center-launcher {
    border-color: rgba(255, 215, 0, 0.42);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
}

[data-theme="dark"] .org-help-button {
    background: #334155;
    border-color: #475569;
    color: #f8fafc;
    box-shadow: none;
}

[data-theme="dark"] .org-help-button:hover {
    background: #475569;
}

[data-theme="dark"] .dashboard-help-button {
    border-color: rgba(255, 215, 0, 0.44);
    background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 100%);
    color: #ffffff;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.34);
}

[data-theme="dark"] .help-center-page .help-hero,
[data-theme="dark"] .help-center-page .faq-item,
[data-theme="dark"] .help-center-page .support-hours {
    background-color: var(--bg-card);
    border-color: var(--border-primary);
}

[data-theme="dark"] .help-center-page .help-kicker {
    background: rgba(255, 215, 0, 0.14);
    color: #fde68a;
}

[data-theme="dark"] .help-center-page .help-section-icon {
    background: rgba(255, 215, 0, 0.14);
    color: #fde68a;
}

[data-theme="dark"] .help-center-page .contact-card {
    background: var(--modal-inset-bg);
    border-color: var(--border-primary);
}

[data-theme="dark"] .help-center-page .contact-link,
[data-theme="dark"] .help-center-page .faq-item summary::after {
    color: #fbbf24;
}

@media (max-width: 900px) {
    .help-center-page .faq-grid,
    .help-center-page .contact-grid {
        grid-template-columns: 1fr;
    }

    .help-center-page .help-hero {
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .dashboard-bottom-actions {
        right: 18px;
        bottom: 18px;
    }

    .dashboard-help-button {
        min-height: 42px;
        padding: 11px 14px;
        border-radius: 11px;
        font-size: 12px;
    }

    .help-center-launcher {
        right: 18px;
        bottom: 18px;
        width: 52px;
        height: 52px;
        min-height: 52px;
        padding: 0;
        justify-content: center;
    }

    .help-center-launcher-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .help-center-launcher-icon {
        width: 34px;
        height: 34px;
    }

    .help-center-page .help-hero {
        padding: 22px;
    }

    .help-center-page .help-hero h1 {
        font-size: 28px;
    }

    .help-center-page .help-hero-mark {
        display: none;
    }

    .help-center-page .contact-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }
}
