/* =========================== */
/* СТИЛИ МОДАЛЬНОГО ОКНА */
/* =========================== */

/* Оверлей */
.notification-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1000000000;
    animation: notificationFadeIn 0.3s ease;
}

/* Модальное окно */
.notification-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    z-index: 1000000010;
    animation: notificationSlideIn 0.4s ease;
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.notification-modal.closing {
    animation: notificationSlideOut 0.3s ease forwards;
}

/* Заголовок */
.notification-modal .modal-header {
    background: var(--main-general-color);
    color: white;
    padding: 25px 25px 25px 25px;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-modal .modal-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.notification-modal .modal-header h2 {
    font-size: 22px;
    margin: 0;
    font-weight: 600;
    flex-grow: 1;
    text-align: left;
}

/* Кнопка закрытия */
.notification-modal .close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.notification-modal .close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.notification-modal .close-btn svg {
    width: 16px;
    height: 16px;
    stroke: white;
    stroke-width: 2.5;
    stroke-linecap: round;
}

/* Контент */
.notification-modal .modal-content {
    padding: 30px;
    line-height: var(--main-font-lineHeight);
    overflow-y: auto;
    flex-grow: 1;
}

/* Стилизация скроллбара для контента */
.notification-modal .modal-content::-webkit-scrollbar {
    width: 8px;
}

.notification-modal .modal-content::-webkit-scrollbar-track {
    background: var(--gray-base);
    border-radius: 4px;
}

.notification-modal .modal-content::-webkit-scrollbar-thumb {
    background: var(--gray-lighter-color);
    border-radius: 4px;
}

.notification-modal .modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--gray-color);
}

.notification-modal .modal-content h1,
.notification-modal .modal-content h2,
.notification-modal .modal-content h3 {
    color: var(--main-general-color);
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.notification-modal .modal-content p {
    color: var(--main-font-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

.notification-modal .promo-code {
    background: linear-gradient(135deg, var(--selected-color) 0%, #ff7a2e 100%);
    color: white;
    padding: 18px 15px;
    border-radius: 8px;
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 3px;
    text-align: center;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(255, 97, 1, 0.3);
    position: relative;
    overflow: hidden;
}

.notification-modal .promo-code::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: notificationShine 3s infinite;
}

.notification-modal .benefits-list {

}

.notification-modal .modal-content ul {
    background: var(--gray-base);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--selected-color);
    list-style: none;
}

.notification-modal .modal-content li {
    padding: 8px 0;
    color: var(--main-font-color);
    position: relative;
    padding-left: 25px;
}

.notification-modal .modal-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--valid-color);
    font-weight: bold;
    font-size: 18px;
}

/* Футер */
.notification-modal .modal-footer {
    background: var(--gray-base);
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.notification-modal .checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.notification-modal .checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: var(--main-general-color);
}

.notification-modal .checkbox-container label {
    color: var(--gray-color);
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.notification-modal .action-btn {
    width: 100%;
    background: var(--selected-color);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.notification-modal .action-btn:hover {
    background: #e55700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 97, 1, 0.4);
}

/* Анимации */
@keyframes notificationFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes notificationSlideOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
}

@keyframes notificationShine {
    0% { left: -50%; }
    50% { left: 150%; }
    100% { left: 150%; }
}

/* Адаптив */
@media (max-width: 576px) {
    .notification-modal .modal-header {
        padding: 25px 20px 20px;
    }

    .notification-modal .modal-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .notification-modal .modal-header h2 {
        font-size: 20px;
    }

    .notification-modal .modal-content {
        padding: 20px;
    }

    .notification-modal .promo-code {
        font-size: 22px;
        letter-spacing: 2px;
        padding: 15px;
    }

    .notification-modal .modal-footer {
        padding: 15px 20px;
    }
}