.notif-page{
    padding:22px;
    color:#eaf3ff;
}

.notif-hero{
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:flex-start;
    padding:22px;
    border:1px solid rgba(120,170,220,.25);
    border-radius:22px;
    background:linear-gradient(145deg, rgba(15,35,60,.96), rgba(8,18,34,.96));
    box-shadow:0 18px 45px rgba(0,0,0,.25);
    margin-bottom:18px;
}

.notif-hero h2{
    margin:8px 0 6px;
    font-size:28px;
    letter-spacing:.3px;
}

.notif-hero p{
    margin:0;
    color:#9fb4d0;
    line-height:1.5;
}

.notif-back{
    border:0;
    background:rgba(255,255,255,.07);
    color:#cfe6ff;
    border-radius:999px;
    padding:8px 13px;
    cursor:pointer;
}

.notif-hero-status{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:8px;
}

.notif-hero-status small{
    color:#9fb4d0;
}

.notif-grid{
    display:grid;
    grid-template-columns:1.2fr .8fr;
    gap:18px;
    margin-bottom:18px;
}

.notif-card{
    border:1px solid rgba(120,170,220,.22);
    border-radius:20px;
    background:rgba(8,18,34,.82);
    padding:18px;
    box-shadow:0 12px 34px rgba(0,0,0,.18);
}

.notif-card h3{
    margin:0 0 10px;
    font-size:18px;
}

.notif-card p{
    color:#9fb4d0;
    line-height:1.55;
}

.notif-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    padding:7px 12px;
    font-size:12px;
    font-weight:800;
    letter-spacing:.4px;
    background:rgba(255,255,255,.08);
    color:#d8eaff;
    white-space:nowrap;
}

.notif-badge.ok{
    background:rgba(54,211,153,.14);
    color:#8ff0cb;
    border:1px solid rgba(54,211,153,.28);
}

.notif-badge.warn{
    background:rgba(255,190,90,.13);
    color:#ffd596;
    border:1px solid rgba(255,190,90,.28);
}

.notif-badge.off{
    background:rgba(255,255,255,.06);
    color:#9fb4d0;
    border:1px solid rgba(255,255,255,.12);
}

.notif-steps{
    display:grid;
    gap:8px;
    margin:16px 0;
}

.notif-steps div{
    padding:11px 13px;
    border-radius:14px;
    background:rgba(255,255,255,.05);
    color:#9fb4d0;
    border:1px solid rgba(255,255,255,.08);
}

.notif-steps div.current{
    color:#ffe3a3;
    border-color:rgba(255,190,90,.3);
    background:rgba(255,190,90,.09);
}

.notif-steps div.done{
    color:#8ff0cb;
    border-color:rgba(54,211,153,.25);
    background:rgba(54,211,153,.08);
}

.notif-actions-main,
.notif-device-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:14px;
}

.notif-btn{
    border:0;
    border-radius:14px;
    padding:11px 14px;
    font-weight:800;
    cursor:pointer;
    color:#eaf3ff;
    background:rgba(255,255,255,.09);
    border:1px solid rgba(255,255,255,.12);
}

.notif-btn.primary{
    background:linear-gradient(135deg, rgba(54,211,153,.95), rgba(35,140,230,.85));
    color:#06111f;
}

.notif-btn.secondary{
    background:rgba(70,120,190,.18);
    color:#d8eaff;
}

.notif-btn.danger{
    background:rgba(255,90,90,.12);
    border-color:rgba(255,90,90,.28);
    color:#ffb4b4;
}

.notif-kpi-row{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
    margin-top:12px;
}

.notif-kpi-row div{
    border-radius:16px;
    padding:14px;
    background:rgba(255,255,255,.05);
}

.notif-kpi-row strong{
    display:block;
    font-size:26px;
}

.notif-kpi-row span{
    display:block;
    color:#9fb4d0;
    font-size:12px;
}

.notif-advice{
    margin-top:14px;
    font-size:13px;
}

.notif-devices{
    display:grid;
    gap:12px;
}

.notif-device-card{
    border:1px solid rgba(255,255,255,.1);
    border-radius:18px;
    padding:15px;
    background:rgba(255,255,255,.045);
}

.notif-device-card.tested{
    border-color:rgba(54,211,153,.28);
}

.notif-device-card.off{
    opacity:.65;
}

.notif-device-top{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:flex-start;
}

.notif-device-top h4{
    margin:0 0 5px;
    font-size:16px;
}

.notif-device-top p{
    margin:0;
    color:#9fb4d0;
    font-size:13px;
}

.notif-device-meta{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    margin-top:14px;
    color:#9fb4d0;
    font-size:13px;
}

.notif-device-meta strong{
    color:#eaf3ff;
}

.notif-empty,
.notif-loading,
.notif-error{
    padding:18px;
    border-radius:16px;
    background:rgba(255,255,255,.06);
    color:#9fb4d0;
}

@media(max-width:800px){
    .notif-page{
        padding:14px;
    }

    .notif-hero,
    .notif-grid{
        display:block;
    }

    .notif-hero-status{
        align-items:flex-start;
        margin-top:14px;
    }

    .notif-card{
        margin-bottom:14px;
    }

    .notif-kpi-row,
    .notif-device-meta{
        grid-template-columns:1fr;
    }

    .notif-actions-main,
    .notif-device-actions{
        flex-direction:column;
    }

    .notif-btn{
        width:100%;
    }
}

.notif-section-help{
    margin-top:-4px;
    margin-bottom:14px;
    color:#9fb4d0;
    font-size:13px;
}

.notif-muted-note{
    margin-top:12px;
    padding:10px 12px;
    border-radius:14px;
    background:rgba(255,255,255,.045);
    color:#7f94ad;
    font-size:12px;
}

.notif-device-card.ready{
    border-color:rgba(54,211,153,.34);
    background:linear-gradient(145deg, rgba(54,211,153,.075), rgba(255,255,255,.035));
}

.notif-device-card.needs_confirm,
.notif-device-card.needs_test{
    border-color:rgba(255,190,90,.28);
    background:linear-gradient(145deg, rgba(255,190,90,.07), rgba(255,255,255,.035));
}

.notif-badge.meta{
    background:rgba(137,110,255,.14);
    color:#c9c1ff;
    border:1px solid rgba(137,110,255,.32);
}

.notif-device-card.needs_meta{
    border-color:rgba(137,110,255,.30);
    background:linear-gradient(145deg, rgba(137,110,255,.075), rgba(255,255,255,.035));
}

.notif-inline-help{
    width:100%;
    padding:11px 13px;
    border-radius:14px;
    background:rgba(255,190,90,.08);
    border:1px solid rgba(255,190,90,.22);
    color:#ffd89a;
    font-size:13px;
    line-height:1.45;
}

.notif-device-warning{
    margin-top:14px;
    padding:14px;
    border-radius:16px;
    background:rgba(255,190,90,.08);
    border:1px solid rgba(255,190,90,.28);
}

.notif-device-warning h4{
    margin:0 0 7px;
    color:#ffd89a;
    font-size:15px;
}

.notif-device-warning p{
    margin:0 0 12px;
    color:#d7e6f7;
    font-size:13px;
    line-height:1.55;
}

.notif-understand-check{
    display:flex;
    gap:10px;
    align-items:flex-start;
    cursor:pointer;
    color:#ffffff;
    font-size:13px;
    line-height:1.45;
}

.notif-understand-check input{
    margin-top:3px;
    transform:scale(1.2);
}

.notif-btn:disabled{
    opacity:.45;
    cursor:not-allowed;
    filter:grayscale(1);
}


.notif-device-confirm-box{
    margin-top:12px;
    padding:11px 12px;
    border-radius:14px;
    background:rgba(255,190,90,.07);
    border:1px solid rgba(255,190,90,.22);
}

.notif-device-confirm-box .notif-understand-check{
    margin:0;
}

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

.notif-history-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:14px;
    padding:13px 14px;
    border-radius:16px;
    border:1px solid rgba(120,170,220,.18);
    background:rgba(255,255,255,.035);
}

.notif-history-row.high{
    border-color:rgba(255,120,90,.28);
    background:linear-gradient(145deg, rgba(255,120,90,.07), rgba(255,255,255,.035));
}

.notif-history-main{
    min-width:0;
}

.notif-history-title{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    align-items:center;
    margin-bottom:5px;
}

.notif-history-title strong{
    color:#ffffff;
    font-size:14px;
}

.notif-history-title span{
    padding:3px 8px;
    border-radius:999px;
    background:rgba(120,170,220,.12);
    color:#9fc8ff;
    font-size:11px;
}

.notif-history-main p{
    margin:0;
    color:#b7cbe3;
    font-size:13px;
    line-height:1.45;
}

.notif-history-side{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:4px;
    white-space:nowrap;
    color:#9fb4d0;
    font-size:12px;
}

.notif-history-side span{
    color:#dcecff;
    font-weight:700;
}

@media(max-width:720px){
    .notif-history-row{
        grid-template-columns:1fr;
    }

    .notif-history-side{
        align-items:flex-start;
        white-space:normal;
    }
}

/* UX Notifiche Smart - stato servizio chiaro */
.notif-status-card{
    position:relative;
}

.notif-service-state{
    margin:12px 0 14px;
    padding:14px;
    border-radius:16px;
    display:grid;
    gap:5px;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(255,255,255,.045);
}

.notif-service-state strong{
    font-size:15px;
}

.notif-service-state span{
    color:#9fb4d0;
    font-size:13px;
    line-height:1.45;
}

.notif-service-state.is-active{
    border-color:rgba(54,211,153,.30);
    background:rgba(54,211,153,.08);
}

.notif-service-state.is-active strong{
    color:#8ff0cb;
}

.notif-service-state.is-inactive{
    border-color:rgba(255,190,90,.30);
    background:rgba(255,190,90,.08);
}

.notif-service-state.is-inactive strong{
    color:#ffd89a;
}

.notif-cost-note{
    margin:12px 0 14px;
    padding:12px 14px;
    border-radius:15px;
    background:rgba(70,120,190,.12);
    border:1px solid rgba(120,170,220,.22);
    color:#cfe6ff;
    font-size:13px;
    line-height:1.5;
}

.notif-cost-note strong{
    color:#eaf3ff;
}

