
.plan-gate-modal { position: fixed; inset: 0; z-index: 10050; display: grid; place-items: center; padding: 20px; }
.plan-gate-modal[hidden] { display: none !important; }
.plan-gate-backdrop { position: absolute; inset: 0; border: 0; background: rgba(5, 20, 55, .62); backdrop-filter: blur(5px); }
.plan-gate-card { position: relative; width: min(100%, 470px); padding: 30px; border-radius: 26px; background: #fff; box-shadow: 0 28px 80px rgba(3, 18, 52, .28); text-align: center; }
.plan-gate-card > span { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 20px; background: #fff0f6; font-size: 28px; }
.plan-gate-card h2 { margin: 0 0 10px; color: #071b4d; font-size: 28px; }
.plan-gate-card p { margin: 0; color: #53617b; line-height: 1.55; }
.plan-gate-card button { margin-top: 22px; min-height: 48px; padding: 0 24px; border: 0; border-radius: 15px; background: #f50057; color: white; font-weight: 900; cursor: pointer; }
.plan-gate-locked { position: relative; opacity: .72; }


/* Controlli visibili ma riservati al piano Pro. */
.plan-gate-control-locked {
    border-color: #d8b7ff !important;
    background-image: linear-gradient(180deg, #ffffff, #fbf7ff) !important;
    box-shadow: inset 0 0 0 1px rgba(112, 64, 189, .08) !important;
    cursor: pointer !important;
}

.plan-gate-control-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 6px 0 0 7px;
    padding: 3px 7px;
    border-radius: 999px;
    color: #7040bd;
    background: #eee5ff;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .7px;
    vertical-align: middle;
}

#filtro + .plan-gate-control-badge {
    margin-left: 0;
}
/* =========================================================
   FIX DEFINITIVO — BADGE PRO NELLA STESSA CELLA DI "FISSO"
   ========================================================= */

/* DESKTOP E LAPTOP */
html body
#app-online
#paramsPanel
.params-head
> #tempoAutomaticoParole {
    grid-column: 6 !important;
    grid-row: 1 !important;

    position: relative !important;
    z-index: 1 !important;

    width: 100% !important;
    margin: 0 !important;
    padding-right: 76px !important;
}

html body
#app-online
#paramsPanel
.params-head
> .plan-gate-control-badge[data-for="tempoAutomaticoParole"] {
    grid-column: 6 !important;
    grid-row: 1 !important;

    justify-self: end !important;
    align-self: center !important;

    position: relative !important;
    z-index: 2 !important;

    margin: 0 -130px 0 0 !important;

    pointer-events: none !important;
    white-space: nowrap !important;
}


/* TABLET 601–900 PX */
@media (min-width: 601px) and (max-width: 900px) {
    html body
    #app-online
    #paramsPanel
    .params-head
    > #tempoAutomaticoParole {
        grid-column: 5 !important;
        grid-row: 2 !important;

        padding-right: 70px !important;
    }

    html body
    #app-online
    #paramsPanel
    .params-head
    > .plan-gate-control-badge[data-for="tempoAutomaticoParole"] {
        grid-column: 5 !important;
        grid-row: 2 !important;

        margin-right: 32px !important;
    }
}


/* TELEFONO */
@media (max-width: 600px) {
    html body
    #app-online
    #paramsPanel
    .params-head
    > #tempoAutomaticoParole {
        grid-column: 2 !important;
        grid-row: 3 !important;

        padding-right: 70px !important;
    }

    html body
    #app-online
    #paramsPanel
    .params-head
    > .plan-gate-control-badge[data-for="tempoAutomaticoParole"] {
        grid-column: 2 !important;
        grid-row: 3 !important;

        justify-self: end !important;
        align-self: center !important;

        margin: 0 32px 0 0 !important;
    }
}
/* Azioni del blocco Pro: continua con Free oppure apri la pagina piani. */
.plan-gate-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
}
.plan-gate-actions button,
.plan-gate-actions a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 17px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 900;
}
.plan-gate-actions button {
    border: 1px solid #d7e4f8;
    color: #0753d6;
    background: white;
}
.plan-gate-actions a {
    color: white;
    background: #f50057;
    box-shadow: 0 12px 24px rgba(245, 0, 87, .20);
}
@media (max-width: 520px) {
    .plan-gate-actions { grid-template-columns: 1fr; }
}
