/**
 * DH Web Push - Public Stylesheet
 * 5-Second Subscription Modal & Floating Bell
 * Version 2.0.2
 */

:root {
    --dh-primary: #7ea906;
    --dh-primary-dark: #658804;
    --dh-primary-deep: #394d02;
    --dh-text-dark: #0f172a;
    --dh-text-muted: #64748b;
}

#dh-push-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.94) !important; /* Full Black Screen Backdrop */
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 2147483647 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

#dh-push-modal-overlay.dh-push-is-open {
    display: flex !important;
}

#dh-push-modal-overlay .dh-push-card {
    background: #ffffff !important;
    border-radius: 24px !important;
    width: 92% !important;
    max-width: 440px !important;
    margin: auto !important;
    padding: 28px 24px 22px 24px !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.15) !important;
    position: relative !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    box-sizing: border-box !important;
}

.dh-push-close-btn {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: none !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
    font-size: 20px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.dh-push-close-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.dh-push-header {
    display: flex !important;
    gap: 16px !important;
    align-items: flex-start !important;
    margin-bottom: 20px !important;
}

.dh-push-icon-box {
    position: relative !important;
    flex-shrink: 0 !important;
}

.dh-push-icon-img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 16px !important;
    object-fit: cover !important;
    background: #f8fafc !important;
    border: 2px solid rgba(126, 169, 6, 0.3) !important;
    display: block !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.dh-push-bell-badge {
    position: absolute !important;
    bottom: -4px !important;
    right: -4px !important;
    width: 24px !important;
    height: 24px !important;
    background: linear-gradient(135deg, #7ea906, #658804) !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #fff !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
}

.dh-push-titles {
    flex: 1 !important;
    min-width: 0 !important;
}

.dh-push-title {
    margin: 0 0 6px 0 !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.35 !important;
}

.dh-push-desc {
    margin: 0 !important;
    font-size: 0.88rem !important;
    color: #475569 !important;
    line-height: 1.5 !important;
}

.dh-push-actions {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-top: 18px !important;
    padding-top: 16px !important;
    border-top: 1px solid #f1f5f9 !important;
}

.dh-push-btn {
    border-radius: 12px !important;
    padding: 11px 20px !important;
    font-size: 0.90rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    border: none !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

.dh-push-btn-primary {
    background: linear-gradient(135deg, #7ea906, #658804) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(126, 169, 6, 0.4) !important;
}
.dh-push-btn-primary:hover {
    background: linear-gradient(135deg, #658804, #394d02) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(126, 169, 6, 0.5) !important;
}

.dh-push-btn-secondary {
    background: #f1f5f9 !important;
    color: #475569 !important;
}
.dh-push-btn-secondary:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

/* Bell Widget */
.dh-push-bell-widget {
    position: fixed !important;
    z-index: 2147483646 !important;
    display: flex !important;
    align-items: center !important;
}
.dh-push-bell-widget.pos-bottom-right { bottom: 24px !important; right: 24px !important; }
.dh-push-bell-widget.pos-bottom-left { bottom: 24px !important; left: 24px !important; }

.dh-push-bell-btn {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #7ea906, #658804) !important;
    color: #ffffff !important;
    border: 3px solid #ffffff !important;
    box-shadow: 0 8px 25px rgba(126, 169, 6, 0.45) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    outline: none !important;
    position: relative !important;
    transition: all 0.3s ease !important;
}
.dh-push-bell-btn:hover { transform: scale(1.1) rotate(8deg) !important; }

.dh-push-bell-pulse {
    position: absolute !important;
    inset: -6px !important;
    border-radius: 50% !important;
    border: 2px solid #7ea906 !important;
    animation: dhPushPulse 2.5s infinite !important;
}

@media (max-width: 480px) {
    #dh-push-modal-overlay .dh-push-card {
        width: 95% !important;
        max-width: 95% !important;
        padding: 22px 18px 18px 18px !important;
        border-radius: 20px !important;
    }
    .dh-push-actions {
        flex-direction: column-reverse !important;
        gap: 8px !important;
    }
    .dh-push-btn { width: 100% !important; height: 44px !important; }
}
