/* ==========================================================================
   Fairverse Support Page
   FAQ / Troubleshoot · Ticket System · Discord 1-1 Support Popup
   ========================================================================== */

/* ── Page layout ── */
.support-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.support-intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.support-intro h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.support-intro p {
    font-size: 14.5px;
    color: #5a6a8a;
    line-height: 1.6;
}

/* ── Shared card base (matches partner-panel / mod-card style) ── */
.support-card {
    background: #fff;
    border: 1px solid #e2eaff;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* reuse .section-header / .section-title from style.css for headers inside cards */

/* ==========================================================================
   FAQ / Troubleshoot Section
   ========================================================================== */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 1px solid #e2eaff;
    border-radius: 12px;
    overflow: hidden;
    background: #fafcff;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    user-select: none;
    transition: background 0.15s;
}

.faq-question:hover {
    background: #f0f4ff;
}

.faq-question i.faq-chevron {
    color: #1a6fe8;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    font-size: 13px;
}

.faq-item.open .faq-question i.faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.faq-answer-inner {
    padding: 0 16px 16px 16px;
    font-size: 13.5px;
    color: #4a5568;
    line-height: 1.65;
    border-top: 1px solid #eef3ff;
    padding-top: 12px;
}

.faq-item.open .faq-answer {
    max-height: 600px;
}

.faq-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #1a6fe8;
    background: #eaf1ff;
    padding: 3px 9px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.faq-category-tag.warn {
    color: #b45309;
    background: #fff3e0;
}

.faq-category-tag.danger {
    color: #be123c;
    background: #ffe4e9;
}

.faq-search {
    position: relative;
    margin-bottom: 1.2rem;
}

.faq-search input {
    width: 100%;
    padding: 11px 14px 11px 38px;
    border: 1px solid #c8daff;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    color: #1a1a2e;
    background: #fff;
    transition: border-color 0.15s;
}

.faq-search input:focus {
    outline: none;
    border-color: #1a6fe8;
    box-shadow: 0 0 0 3px rgba(26, 111, 232, 0.1);
}

.faq-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0b4e8;
    font-size: 14px;
}

.faq-empty-state {
    text-align: center;
    padding: 1.5rem 0;
    color: #7a9fd8;
    font-size: 13.5px;
    font-weight: 600;
    display: none;
}

.support-discord-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(135deg, #0a3fa8 0%, #1a6fe8 60%, #3b8fff 100%);
    border-radius: 16px;
    padding: 22px 24px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 30px rgba(26, 111, 232, 0.24);
    position: relative;
    overflow: hidden;
}

.support-discord-banner::before {
    content: '';
    position: absolute;
    top: -34px;
    right: -28px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.support-discord-banner::after {
    content: '';
    position: absolute;
    bottom: -48px;
    left: 24%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.support-discord-banner-left {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.support-discord-banner-badge {
    background: #d8e7ff;
    color: #164492;
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 4px 9px;
    border-radius: 6px;
    align-self: flex-start;
    margin-top: 2px;
}

.support-discord-banner-copy h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 900;
}

.support-discord-banner-copy h3 i {
    color: #a9c8ff;
    margin-right: 6px;
}

.support-discord-banner-copy p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

.ticket-lookup-grid {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.ticket-lookup-form,
.ticket-lookup-card {
    border: 1px solid #e2eaff;
    border-radius: 14px;
    background: #fafcff;
    padding: 14px;
}

.ticket-lookup-empty {
    color: #7a9fd8;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 0;
}

.ticket-lookup-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.ticket-lookup-head h3 {
    margin: 0;
    color: #1a2f5f;
    font-size: 18px;
}

.ticket-lookup-head p {
    margin: 4px 0 0;
    font-size: 12px;
    color: #6c7fa4;
}

.ticket-lookup-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eaf1ff;
    color: #1a6fe8;
    font-size: 11px;
    font-weight: 800;
}

.ticket-lookup-status[data-status="resolved"] {
    background: #e9f8ef;
    color: #15803d;
}

.ticket-lookup-status[data-status="in_progress"] {
    background: #fff6e7;
    color: #b45309;
}

.ticket-lookup-thread {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.ticket-public-msg {
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #dde7ff;
}

.ticket-public-msg.staff {
    background: #f4f8ff;
}

.ticket-public-msg.customer {
    background: #ffffff;
}

.ticket-public-msg-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 12px;
}

.ticket-public-msg-head strong {
    color: #183976;
}

.ticket-public-msg-head span {
    color: #7b8fb5;
}

.ticket-public-msg-body {
    color: #394b6b;
    font-size: 13px;
    line-height: 1.6;
}

.ticket-public-msg-body p {
    margin: 0 0 10px;
}

.ticket-public-msg-body p:last-child {
    margin-bottom: 0;
}

.ticket-reply-public-form textarea {
    min-height: 130px;
}

.ticket-attachment-note {
    margin-top: 6px;
    font-size: 12px;
    color: #6f82a7;
    line-height: 1.5;
}

.ticket-selected-files {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.ticket-selected-files span,
.ticket-public-attachment-list a {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #edf4ff;
    color: #2354a0;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.ticket-public-attachments {
    margin-top: 10px;
}

.ticket-public-attachments strong {
    display: block;
    margin-bottom: 7px;
    color: #183976;
    font-size: 12px;
}

.ticket-public-attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.support-discord-banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #ffffff;
    color: #1a6fe8;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
    transition: background 0.15s, transform 0.15s;
    position: relative;
    z-index: 1;
}

.support-discord-banner-btn:hover {
    background: #eff5ff;
    transform: translateY(-1px);
}

/* ==========================================================================
   Ticket Section
   ========================================================================== */

.ticket-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    align-items: start;
}

.ticket-form .form-group {
    margin-bottom: 15px;
}

.ticket-form textarea.form-input {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.ticket-priority-row {
    display: flex;
    gap: 8px;
}

.ticket-priority-btn {
    flex: 1;
    text-align: center;
    padding: 9px 0;
    border: 1.5px solid #c8daff;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: #1a6fe8;
    background: #fff;
    cursor: pointer;

@media (max-width: 900px) {
    .ticket-lookup-grid {
        grid-template-columns: 1fr;
    }
}
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ticket-priority-btn:hover {
    background: #eff5ff;
}

.ticket-priority-btn.selected {
    background: #1a6fe8;
    border-color: #1a6fe8;
    color: #fff;
}

.ticket-priority-btn.selected[data-priority="high"] {
    background: #e05252;
    border-color: #e05252;
}

.ticket-priority-btn.selected[data-priority="medium"] {
    background: #f5a623;
    border-color: #f5a623;
}

.ticket-soon-card {
    background: #fff8e8;
    border: 1px solid #ffe2a8;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1.2rem;
    font-size: 12.5px;
    color: #8a6116;
    line-height: 1.5;
}

.ticket-soon-card i {
    color: #f5a623;
    margin-top: 1px;
    flex-shrink: 0;
}

.ticket-side-card {
    background: #fafcff;
    border: 1px solid #e2eaff;
    border-radius: 14px;
    padding: 1.1rem;
}

.ticket-side-card h4 {
    font-size: 12.5px;
    font-weight: 800;
    color: #1a6fe8;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}

.ticket-side-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ticket-side-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    color: #4a5568;
    line-height: 1.5;
}

.ticket-side-item i {
    color: #1a6fe8;
    margin-top: 2px;
    font-size: 11px;
    flex-shrink: 0;
}

.ticket-submitted-state {
    display: none;
    text-align: center;
    padding: 2rem 1rem;
}

.ticket-submitted-state i {
    font-size: 2.2rem;
    color: #23a55a;
    margin-bottom: 12px;
}

.ticket-submitted-state h3 {
    font-size: 1rem;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.ticket-submitted-state p {
    font-size: 13px;
    color: #7a9fd8;
}

/* ==========================================================================
   Floating Discord 1-on-1 Support Button + Modal
   ========================================================================== */

.support-discord-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #5865F2;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 22px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 200;
}

.support-discord-fab:hover {
    background: #4752c4;
    transform: translateY(-2px);
}

.support-discord-fab i {
    font-size: 17px;
}

.support-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 40, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 300;
    padding: 1rem;
}

.faq-step-list,
.faq-substep-list {
    margin: 8px 0 12px 0;
    padding-left: 22px;
}

.faq-step-list li,
.faq-substep-list li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.faq-step-list code,
.faq-substep-list code {
    background: #eef3ff;
    color: #1a6fe8;
    padding: 1px 6px;
    border-radius: 5px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
}

.faq-answer-inner strong {
    color: #1a1a2e;
}

.support-modal-overlay.open {
    display: flex;
}

.support-modal {
    background: #fff;
    border-radius: 18px;
    max-width: 380px;
    width: 100%;
    padding: 2rem 1.8rem;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: modalPop 0.18s ease;
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.support-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #f0f4ff;
    color: #5a6a8a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s;
}

.support-modal-close:hover {
    background: #e0e8ff;
}

.support-modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #eef1ff;
    color: #5865F2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 14px;
}

.support-modal h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.support-modal p {
    font-size: 13.5px;
    color: #5a6a8a;
    line-height: 1.6;
    margin-bottom: 1.4rem;
}

.support-modal-join-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    background: #5865F2;
    color: #fff;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s;
}

.support-modal-join-btn:hover {
    background: #4752c4;
}

/* ==========================================================================
   New Support Page Improvements
   ========================================================================== */

/* ── FAQ Filter Pills ── */
.faq-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.faq-pill {
    background: #f0f4ff;
    border: 1px solid #d8e4ff;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq-pill:hover {
    background: #e0e8ff;
    color: #1a6fe8;
}

.faq-pill.active {
    background: #1a6fe8;
    border-color: #1a6fe8;
    color: #fff;
    box-shadow: 0 4px 10px rgba(26, 111, 232, 0.2);
}

/* ── Tabbed Interface ── */
.support-tabs {
    display: flex;
    border-bottom: 2px solid #e2eaff;
    margin-bottom: 1.5rem;
}

.support-tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 14.5px;
    font-weight: 700;
    color: #5a6a8a;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px; /* overlap the border-bottom */
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.support-tab-btn i {
    font-size: 13px;
}

.support-tab-btn:hover {
    color: #1a6fe8;
}

.support-tab-btn.active {
    color: #1a6fe8;
    border-bottom-color: #1a6fe8;
}

/* ── Drag & Drop Zone ── */
.ticket-dropzone {
    border: 2px dashed #c8daff;
    border-radius: 12px;
    background: #fafcff;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.ticket-dropzone i.fa-cloud-upload-alt {
    font-size: 28px;
    color: #7a9fd8;
    margin-bottom: 10px;
}

.ticket-dropzone p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
}

.ticket-dropzone:hover,
.ticket-dropzone.highlight {
    background: #f0f4ff;
    border-color: #1a6fe8;
}

.ticket-dropzone.highlight {
    box-shadow: inset 0 0 0 2px rgba(26, 111, 232, 0.1);
}

.ticket-dropzone input[type="file"] {
    display: none;
}

/* ── Form Validation ── */
.validation-msg {
    display: none;
    font-size: 12px;
    color: #e05252;
    margin-top: 6px;
    font-weight: 600;
}

.form-validatable .form-input.invalid {
    border-color: #e05252;
    background: #fff8f8;
}

.form-validatable .form-input.invalid:focus {
    box-shadow: 0 0 0 3px rgba(224, 82, 82, 0.15);
}

.form-validatable .form-input.invalid + .validation-msg {
    display: block;
}

.form-validatable .form-input.valid {
    border-color: #23a55a;
}

/* ── Sidebar tweaks ── */
.sidebar-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
}
.sidebar-banner .support-discord-banner-btn {
    width: 100%;
    margin-top: 10px;
}
.sidebar-banner::before {
    top: -50px;
    right: -40px;
}
.sidebar-banner::after {
    bottom: -80px;
    left: auto;
    right: -50px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .ticket-grid {
        grid-template-columns: 1fr;
    }

    .support-discord-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .support-discord-banner-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .support-discord-fab span {
        display: none;
    }

    .support-discord-fab {
        padding: 14px;
        border-radius: 50%;
        width: 52px;
        height: 52px;
        justify-content: center;
    }

    .support-discord-fab i {
        margin: 0;
    }
}