/* ========================================================================== */
/* Modal e tabela de planos */
/* ========================================================================== */

.premium-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 4px 8px;
    background: #34548f;
    font-size: .58rem;
    font-weight: 600;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
}

.modal.open {
    display: block;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6,14,30,.55);
}

body.modal-open {
    overflow: hidden;
}

.plans-dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    display: flex;
    flex-direction: column;
    width: min(1160px, calc(100vw - 40px));
    height: min(860px, calc(100vh - 32px));
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 70px #0006;
}

.plans-header {
    position: relative;
    flex: 0 0 auto;
    padding: 13px 18px 14px;
    background: var(--navy);
    color: #fff;
}

.plans-header h2 {
    margin: 10px 0 6px;
    font-size: .94rem;
}

.plans-header p {
    max-width: 1200px;
    margin: 0;
    color: #d5def0;
    font-size: .67rem;
    line-height: 1.4;
}

.modal-close {
    position: absolute;
    right: 12px;
    top: 8px;
    border: 0;
    background: transparent;
    color: #0d1931;
    font-size: 1.4rem;
    cursor: pointer;
}

.plans-header .modal-close {
    color: #fff;
}

.current-plan {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 99px;
    background: #f1f5f9;
    font-size: .55rem;
}

.yes {
    color: var(--green);
    font-weight: 700;
}

.plans-scroll {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    padding: 10px 16px 12px;
    overflow: auto;
    scrollbar-gutter: stable;
}

.plans-scroll::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.plans-scroll::-webkit-scrollbar-track {
    background: transparent;
}

@media (max-width: 760px) {
    .plans-dialog {
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        max-width: none;
        max-height: none;
        border-radius: 0;
        transform: none;
    }

    .plans-header {
        padding: 12px 14px;
    }

    .plans-scroll {
        height: calc(100vh - 120px);
        padding: 8px 10px 12px;
    }
}
