/* Оверлей */
.custom-banner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-banner-overlay.active {
    display: block;
    opacity: 1;
}

/* Баннер - обычный (снизу) */
.custom-banner {
    position: fixed;
    bottom: -200px;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 0 15px 15px;
    pointer-events: none;
}

.custom-banner.active {
    bottom: 60px;
    pointer-events: auto;
}

/* Exit модальное окно - по центру с плавным появлением */
.custom-banner.exit-modal {
    bottom: auto;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    padding: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.custom-banner.exit-modal.active {
    opacity: 1;
    bottom: auto;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.custom-banner-container {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1e1e20 0%, #ff864a 100%);
    border-radius: 16px;
    box-shadow: rgba(59, 60, 63, 0.24) 0px 1px 8px 0px;
    padding: 20px 55px 20px 25px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(10px);
}

/* Для exit-попапа другая ширина и тень */
.custom-banner.exit-modal .custom-banner-container {
    max-width: 880px;
    box-shadow: rgba(59, 60, 63, 0.24) 0px 1px 8px 0px,
        0 20px 60px rgba(0, 0, 0, 0.3);
}

.custom-banner-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.custom-banner-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.custom-banner-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.custom-banner-icon {
    font-size: 48px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.custom-banner-text {
    color: white;
}

.custom-banner-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.custom-banner-body {
    font-size: 15px;
    opacity: 0.95;
    line-height: 1.4;
}

.custom-banner-actions {
    margin-left: auto;
}

.custom-banner-btn {
    background: white;
    color: #ff864a;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* Эффект блеска на кнопке */
.custom-banner-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
        );
    transition: left 0.5s ease;
}

.custom-banner-btn:hover::before {
    left: 100%;
}

.custom-banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.custom-banner-btn:active {
    transform: translateY(0);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .custom-banner {
        padding: 0 10px 10px;
    }

    .custom-banner.exit-modal {
        padding: 0 15px;
    }

    .custom-banner-container {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .custom-banner-content {
        width: 100%;
    }

    .custom-banner-icon {
        font-size: 36px;
    }

    .custom-banner-title {
        font-size: 18px;
    }

    .custom-banner-body {
        font-size: 14px;
    }

    .custom-banner-actions {
        width: 100%;
        margin-left: 0;
    }

    .custom-banner-btn {
        width: 100%;
        padding: 14px;
    }

    .custom-banner-close {
        top: 8px;
        right: 8px;
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
}

/* Альтернативные цветовые схемы (можно добавлять классы) */
.custom-banner-container.warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.custom-banner-container.success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.custom-banner-container.dark {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
}