/* =========================================================
   PHOENIX SUPPORT CENTER
   Stage 1 — Public Support Center + FAQ modals
   ========================================================= */

.phoenix-support-dialog {
    width: min(920px, calc(100vw - 32px));
    max-width: 920px;
    max-height: 88vh;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: transparent;
    overflow: visible;
}

.phoenix-support-dialog::backdrop {
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(5px);
}

.phoenix-support-dialog-box {
    max-height: 88vh;
    overflow-y: auto;
    padding: 30px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
    color: #0f172a;
}

.phoenix-support-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.phoenix-support-heading h2 {
    margin: 0 0 7px;
    font-size: 28px;
    line-height: 1.25;
}

.phoenix-support-heading p {
    margin: 0;
    max-width: 700px;
    color: #64748b;
    line-height: 1.7;
}

.phoenix-support-close {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #f8fafc;
    color: #334155;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.phoenix-support-close:hover {
    background: #f1f5f9;
}

.phoenix-support-search {
    margin-bottom: 26px;
}

.phoenix-support-search input {
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    outline: none;
    background: #f8fafc;
    color: #0f172a;
    font: inherit;
}

.phoenix-support-search input:focus {
    border-color: #64748b;
    background: #ffffff;
}

.phoenix-support-section-title {
    margin: 0 0 13px;
    font-size: 16px;
    color: #334155;
}

.phoenix-support-topics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.phoenix-support-topic {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: #ffffff;
    color: #1e293b;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.phoenix-support-topic:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    transform: translateY(-1px);
}

.phoenix-support-topic-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    font-weight: 700;
}

.phoenix-support-results-title {
    margin-top: 4px;
}

.phoenix-support-results {
    display: grid;
    gap: 10px;
    margin-bottom: 26px;
}

.phoenix-support-result {
    padding: 17px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
}

.phoenix-support-result-category {
    display: inline-block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.phoenix-support-result h4 {
    margin: 0 0 7px;
    font-size: 16px;
    line-height: 1.45;
}

.phoenix-support-result p {
    margin: 0;
    color: #64748b;
    line-height: 1.75;
}

.phoenix-support-no-results {
    padding: 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    color: #64748b;
    text-align: center;
}

.phoenix-support-help-box {
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
}

.phoenix-support-help-box h3 {
    margin: 0 0 7px;
    font-size: 17px;
}

.phoenix-support-help-box p {
    margin: 0 0 15px;
    color: #64748b;
    line-height: 1.7;
}

.phoenix-support-ticket-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    background: #0f172a;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.phoenix-support-ticket-button:hover {
    background: #1e293b;
}

.phoenix-faq-dialog-box {
    max-width: 820px;
}

.phoenix-faq-list {
    display: grid;
    gap: 10px;
}

.phoenix-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.phoenix-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    min-height: 58px;
    padding: 14px 17px;
    border: 0;
    background: #ffffff;
    color: #1e293b;
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.phoenix-faq-question:hover {
    background: #f8fafc;
}

.phoenix-faq-chevron {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 21px;
    font-weight: 400;
}

.phoenix-faq-answer {
    padding: 0 17px 17px;
    color: #64748b;
    line-height: 1.8;
}

[dir="rtl"] .phoenix-support-dialog-box {
    direction: rtl;
}

[dir="rtl"] .phoenix-support-topic,
[dir="rtl"] .phoenix-faq-question {
    text-align: right;
}

[dir="rtl"] .phoenix-support-result,
[dir="rtl"] .phoenix-support-help-box,
[dir="rtl"] .phoenix-support-heading {
    text-align: right;
}

@media (max-width: 760px) {
    .phoenix-support-dialog {
        width: calc(100vw - 18px);
        max-height: 94vh;
    }

    .phoenix-support-dialog-box {
        max-height: 94vh;
        padding: 21px 17px;
        border-radius: 18px;
    }

    .phoenix-support-heading h2 {
        font-size: 23px;
    }

    .phoenix-support-topics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .phoenix-support-topic {
        min-height: 50px;
        padding: 10px;
        font-size: 13px;
    }
}

@media (max-width: 430px) {
    .phoenix-support-topics {
        grid-template-columns: 1fr;
    }
}