/* Затемненный фон - стили усилены для гарантированного перекры всего */
.custom-da-overlay {
    display: none; /* Скрыто по умолчанию, JS изменит на block */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 2147483647 !important; /* Максимально возможный z-index в браузере */
/*    background-color: rgba(0, 0, 0, 0.7) !important;*/
    background-color: black !important;
    backdrop-filter: blur(4px) !important;
    animation: daFadeIn 0.3s ease-out;
}

/* Само окно */
.custom-da-content {
    background-color: #ffffff !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important; /* Идеальное центрирование */
    padding: 30px !important;
    border-radius: 12px !important;
    width: 90% !important;
    max-width: 450px !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4) !important;
    text-align: center !important;
    font-family: system-ui, -apple-system, sans-serif !important;
    animation: daSlideDown 0.3s ease-out;
}

/* Кнопка закрытия (крестик) */
.custom-da-close {
    color: #888 !important;
    position: absolute !important;
    top: 10px !important;
    right: 15px !important;
    font-size: 28px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: color 0.2s !important;
    line-height: 1 !important;
    z-index: 10 !important;
}

    .custom-da-close:hover {
        color: #333 !important;
    }

/* Кнопка доната */
.custom-da-btn {
    display: inline-block !important;
    background-color: #ff9800 !important;
    color: white !important;
    padding: 14px 28px !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    font-size: 16px !important;
    margin-top: 15px !important;
    transition: background-color 0.2s, transform 0.1s !important;
    border: none !important;
    cursor: pointer !important;
}

    .custom-da-btn:hover {
        background-color: #e68900 !important;
        transform: translateY(-2px) !important;
    }

/* Анимации появления */
@keyframes daFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes daSlideDown {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

