/* Overlay noir semi-transparent */
.demattos-push-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

/* Boîte du modal (blur-glass iOS) */
.demattos-push-modal {
    background: rgba(20,20,20,0.55);
    color: #fff;
    padding: 25px 30px;
    max-width: 420px;
    width: 90%;
    border-radius: 18px;
    box-shadow: 0 0 35px rgba(0,0,0,0.45);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    animation: demattosBounceIn 0.45s cubic-bezier(.26,.53,.32,1.28);
    transition: background 0.3s ease, color 0.3s ease;
}

/* Light mode automatique */
@media (prefers-color-scheme: light) {
    .demattos-push-modal {
        background: rgba(255,255,255,0.55);
        color: #000;
        box-shadow: 0 0 35px rgba(0,0,0,0.15);
    }
}

/* Animation bounce premium */
@keyframes demattosBounceIn {
    0% { transform: scale(0.85); opacity: 0; }
    60% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); }
}

/* Header du modal */
.demattos-push-modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

/* Icône 🔔 */
.demattos-push-modal-header .bell-icon {
    font-size: 26px;
    margin-right: 12px;
}

/* Titre */
.demattos-push-modal-title {
    font-size: 20px;
    font-weight: 600;
}

/* Texte */
.demattos-push-modal-text {
    font-size: 15px;
    margin-bottom: 18px;
    line-height: 1.55;
}

/* Conteneur des boutons */
.demattos-push-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Boutons généraux */
.demattos-push-btn,
.demattos-push-btn-accept,
.demattos-push-btn-decline,
.demattos-push-btn-unsubscribe {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

/* --- RIPPLE EFFECT --- */
.demattos-push-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 10%, transparent 10%);
    background-repeat: no-repeat;
    background-position: center;
    transform: scale(10);
    opacity: 0;
    transition: transform 0.4s, opacity 0.4s;
}

.demattos-push-btn:active::after {
    transform: scale(0);
    opacity: 1;
    transition: 0s;
}

/* Bouton refuser */
.demattos-push-btn-decline {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.demattos-push-btn-decline:hover {
    background: rgba(255,255,255,0.25);
}

/* --- BOUTON ACCEPTER (GRADIENT PREMIUM APPLE/SPOTIFY) --- */
.demattos-push-btn-accept {
    background: linear-gradient(135deg, #00e676, #00c896, #00ffcc);
    color: #000;
    font-weight: 600;
}
.demattos-push-btn-accept:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #00ffcc, #00e676, #00c896);
}

/* Bouton désabonner */
.demattos-push-btn-unsubscribe {
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    white-space: nowrap;
}
.demattos-push-btn-unsubscribe:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* Icône dans le bouton (optionnel) */
.demattos-push-btn-unsubscribe .icon {
    margin-right: 6px;
    font-size: 16px;
}

/* --- RESPONSIVE --- */

/* Tablettes */
@media (max-width: 900px) {
    .demattos-push-modal-actions {
        justify-content: center;
    }

    .demattos-push-btn,
    .demattos-push-btn-accept,
    .demattos-push-btn-decline,
    .demattos-push-btn-unsubscribe {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* Mobiles */
@media (max-width: 600px) {
    .demattos-push-modal-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .demattos-push-btn,
    .demattos-push-btn-accept,
    .demattos-push-btn-decline,
    .demattos-push-btn-unsubscribe {
        width: 100%;
        text-align: center;
        padding: 12px 18px;
        font-size: 15px;
    }
}

/* ---------------------------------------------------------
   🔔 CLOCHE FLOTTANTE (shortcode)
   --------------------------------------------------------- */

.demattos-bell-floating {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    cursor: pointer;
    z-index: 999999; /* Passe au-dessus d’Oxygen */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Glow PixelArt */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    box-shadow:
        0 0 12px rgba(255, 255, 255, 0.4),
        0 0 22px rgba(255, 255, 255, 0.25),
        0 0 32px rgba(255, 255, 255, 0.15);
    transition: all 0.25s ease;
}

.demattos-bell-floating:hover {
    transform: scale(1.08);
    box-shadow:
        0 0 16px rgba(255, 255, 255, 0.55),
        0 0 28px rgba(255, 255, 255, 0.35),
        0 0 40px rgba(255, 255, 255, 0.25);
}

/* ---------------------------------------------------------
   🔔 Icône de la cloche
   --------------------------------------------------------- */

.demattos-bell-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
    pointer-events: none; /* Le clic passe sur le container */
    transition: transform 0.25s ease;
}

.demattos-bell-floating:hover .demattos-bell-icon {
    transform: rotate(-8deg) scale(1.05);
}

/* ---------------------------------------------------------
   🔔 Mode sombre (si ton site l’utilise)
   --------------------------------------------------------- */

@media (prefers-color-scheme: dark) {
    .demattos-bell-floating {
        background: rgba(255, 255, 255, 0.08);
        box-shadow:
            0 0 12px rgba(255, 255, 255, 0.25),
            0 0 22px rgba(255, 255, 255, 0.15),
            0 0 32px rgba(255, 255, 255, 0.10);
    }
}
