.support-modal[hidden] {
    display: none !important;
}

.support-modal.action-modal {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.support-modal .action-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(8, 15, 27, 0.62);
    cursor: pointer;
}

.support-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: min(90vh, 90dvh);
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(58, 85, 112, 0.9);
    background: linear-gradient(180deg, rgba(20, 31, 47, 0.98), rgba(14, 24, 38, 0.98));
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.38);
}

.support-modal-shell {
    display: grid;
    gap: 0;
    padding: 0;
}

.support-modal-head {
    padding: 20px 22px 14px;
    border-bottom: 1px solid rgba(58, 85, 112, 0.9);
}

.support-modal-eyebrow {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f0b35d;
}

.support-modal .action-modal-title {
    margin: 0;
    font-size: 24px;
    color: #ecf3fb;
}

.support-modal .action-modal-meta {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.65;
    color: #9fb1c8;
}

.support-modal-content {
    padding: 18px 22px;
    overflow-y: auto;
    color: #d8e4f1;
}

.support-modal-content p {
    margin: 0;
    line-height: 1.7;
}

.support-modal-content ul,
.support-modal-content ol {
    margin: 14px 0 0 20px;
    padding: 0;
}

.support-modal-content li {
    margin: 0 0 8px;
    line-height: 1.65;
}

.support-modal-callout {
    margin-top: 16px;
    padding: 14px 15px;
    border-radius: 16px;
    border: 1px solid rgba(58, 85, 112, 0.9);
    background: rgba(94, 162, 255, 0.12);
    color: #ecf3fb;
    line-height: 1.65;
}

.support-modal-callout.warn {
    background: rgba(240, 179, 93, 0.12);
}

.support-modal-callout.danger {
    background: rgba(255, 127, 141, 0.12);
}

.support-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px 20px;
    border-top: 1px solid rgba(58, 85, 112, 0.9);
}

.support-modal .action-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.support-modal .action-modal-btn-primary {
    background: #5ea2ff;
    border-color: #5ea2ff;
    color: #08101b;
}

.support-modal .action-modal-btn-secondary {
    background: rgba(34, 54, 75, 0.84);
    border-color: rgba(59, 85, 112, 0.9);
    color: #dbe8f5;
}

body.support-modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .support-modal.action-modal {
        padding: 12px;
        align-items: flex-end;
    }

    .support-modal-dialog {
        width: 100%;
        max-height: min(92vh, 92dvh);
        border-radius: 20px 20px 0 0;
    }

    .support-modal-head,
    .support-modal-content,
    .support-modal-actions {
        padding-left: 18px;
        padding-right: 18px;
    }

    .support-modal-actions {
        flex-wrap: wrap;
    }

    .support-modal-actions .action-modal-btn,
    .support-modal-actions a.action-modal-btn {
        flex: 1 1 100%;
        text-align: center;
    }
}
