/* =========================================================
   PREMIUM OVERLAY
   ========================================================= */

.premium-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    padding: 16px 20px;

    overflow-y: auto;
    overscroll-behavior: contain;

    background: rgba(7, 15, 30, 0.72);
    backdrop-filter: blur(4px);
}

.premium-overlay[hidden] {
    display: none;
}


/* =========================================================
   PREMIUM PANEL
   ========================================================= */

.premium-panel {
    position: relative;

    width: 100%;
    max-width: 760px;   /* invece di 460px */

    padding: 34px 30px 30px;

    background: #ffffff;
    color: #152238;

    border-radius: 22px;

    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.32);
    
    margin: auto 0;
}


/* =========================================================
   CLOSE
   ========================================================= */

.premium-close {
    position: absolute;
    top: 14px;
    right: 16px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #eef1f5;
    color: #152238;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;
}

.premium-close:hover {
    background: #dfe4eb;
}


/* =========================================================
   HEADER
   ========================================================= */

.premium-icon {
    margin-bottom: 10px;

    font-size: 34px;
    line-height: 1;
}

.premium-panel h2 {
    margin: 0 44px 10px 0;

    font-size: 27px;
    line-height: 1.2;
}

.premium-intro {
    margin: 0 0 14px;

    color: #152238;

    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
}

.premium-text {
    margin: 0 0 22px;

    color: #5b6677;

    font-size: 15px;
    line-height: 1.5;
}


/* =========================================================
   FEATURES
   ========================================================= */

.premium-features {
    display: flex;
    flex-direction: column;
    gap: 12px;

    margin-bottom: 22px;
}

.premium-feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    color: #344054;

    font-size: 15px;
    line-height: 1.45;
}

.premium-feature-icon {
    flex: 0 0 auto;

    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(25, 201, 101, 0.14);
    color: #10984a;

    font-size: 13px;
    font-weight: 900;
}


/* =========================================================
   NOTE
   ========================================================= */

.premium-note {
    margin: 0;

    padding: 14px 16px;

    border-radius: 12px;

    background: #f4f6f8;
    color: #5b6677;

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   MESSAGE
   ========================================================= */

.premium-message {
    min-height: 20px;

    margin-top: 10px;

    color: #5b6677;

    font-size: 14px;
}


/* =========================================================
   INTEREST BUTTON
   ========================================================= */

.premium-interest {
    width: 100%;

    margin-top: 8px;
    padding: 13px 18px;

    border: 0;
    border-radius: 12px;

    background: #19c965;
    color: #07151f;

    font-size: 16px;
    font-weight: 800;

    cursor: pointer;
}

.premium-interest:hover {
    filter: brightness(0.96);
}

.premium-interest:active {
    transform: translateY(1px);
}

.premium-interest:disabled {
    cursor: default;
    opacity: 0.72;
}


/* =========================================================
   INTEREST BUTTON
   ========================================================= */

.premium-buy {
    width: 100%;

    margin-top: 8px;
    padding: 13px 18px;

    border: 0;
    border-radius: 12px;

    background: #19c965;
    color: #07151f;

    font-size: 16px;
    font-weight: 800;

    cursor: pointer;
}

.premium-buy:hover {
    filter: brightness(0.96);
}

.premium-interest:active {
    transform: translateY(1px);
}

.premium-buy:disabled {
    cursor: default;
    opacity: 0.72;
}




/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 520px) {

    .premium-overlay {
        align-items: flex-end;
        padding: 12px;
    }

    .premium-panel {
        max-width: none;

        padding: 30px 22px 24px;

        border-radius: 20px 20px 14px 14px;
    }

}
/* =========================================================
   PREMIUM - CONFRONTO PIANI
   Nuova stanza: non modifica le classi già esistenti.
   ========================================================= */

.premium-compare {
    margin: 4px 0 24px;
}

.premium-compare-header {
    margin-bottom: 14px;
}

.premium-compare-header h3 {
    margin: 0 0 5px;

    color: #152238;

    font-size: 19px;
    line-height: 1.25;
}

.premium-compare-header p {
    margin: 0;

    color: #687386;

    font-size: 14px;
    line-height: 1.45;
}

.premium-plan-table {
    overflow: hidden;

    border: 1px solid #e4e8ee;
    border-radius: 14px;

    background: #ffffff;
}

.premium-plan-row {
    display: grid;
    grid-template-columns: minmax(145px, 1.7fr) repeat(3, minmax(64px, 0.75fr));

    min-height: 48px;

    border-bottom: 1px solid #edf0f4;
}

.premium-plan-row:last-child {
    border-bottom: 0;
}

.premium-plan-head {
    min-height: 46px;

    background: #f6f8fa;
}

.premium-plan-feature,
.premium-plan-name,
.premium-plan-cell {
    display: flex;
    align-items: center;

    padding: 9px 10px;
}

.premium-plan-feature {
    color: #344054;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.premium-plan-name,
.premium-plan-cell {
    justify-content: center;

    border-left: 1px solid #edf0f4;

    text-align: center;
}

.premium-plan-name {
    color: #344054;

    font-size: 13px;
    font-weight: 900;
}

.premium-plan-name.is-guest {
    color: #546170;
}

.premium-plan-name.is-free {
    color: #2563a8;
}

.premium-plan-name.is-premium,
.premium-plan-cell.is-premium {
    background: rgba(255, 194, 38, 0.09);
}

.premium-plan-name.is-premium {
    color: #9b6800;
}

.premium-plan-value {
    width: 23px;
    height: 23px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

.premium-plan-value.is-yes {
    background: rgba(25, 201, 101, 0.14);
    color: #10984a;
}

.premium-plan-value.is-no {
    background: #eef1f5;
    color: #8b95a5;
}

.premium-plan-text {
    color: #344054;

    font-size: 13px;
    font-weight: 800;
}


/* =========================================================
   PREMIUM - TABLET / MOBILE
   ========================================================= */

@media (max-width: 620px) {

    .premium-panel {
        max-height: calc(100vh - 24px);
        overflow-y: auto;
         max-width:none;
    }

    .premium-plan-table {
        overflow-x: auto;
    }

    .premium-plan-row {
        min-width: 520px;
    }

}


/* ==========================================
   PREMIUM TABLE
========================================== */

.premium-table-scroll{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    margin:18px 0;
}

.premium-plan-table{
    min-width:520px;   /* oppure 560px */
}



