* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow: hidden;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    z-index: -1;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: overlayFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal {
    background: #1a1a1a;
    border-radius: 2px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    width: 90%;
    max-width: 450px;
    border: 1px solid #2a2a2a;
    animation: modalSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #2a2a2a;
    text-align: center;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.5px;
}

.modal-content {
    padding: 30px;
}

.modal-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #e0e0e0;
    margin: 0 0 25px 0;
    letter-spacing: 0.3px;
}

.progress-container {
    width: 100%;
    height: 3px;
    background: #2a2a2a;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: #666666;
    border-radius: 2px;
    transition: width 0.1s ease-out;
}

.modal-footer {
    padding: 20px 30px 30px;
    display: flex;
    justify-content: center;
}

.redirect-btn {
    padding: 12px 32px;
    border: none;
    border-radius: 1px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 400;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: #333333;
    color: #ffffff;
    border: 1px solid #444444;
}

.redirect-btn:hover {
    background: #444444;
    border-color: #555555;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

@keyframes overlayFadeIn {
    from { 
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(3px);
    }
}

@keyframes modalSlideIn {
    from { 
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeOut {
    from { 
        opacity: 1;
        transform: scale(1);
    }
    to { 
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Адаптивность */
@media (max-width: 480px) {
    .modal {
        width: 95%;
        margin: 20px;
        max-width: none;
    }
    
    .modal-header {
        padding: 25px 20px 15px;
    }
    
    .modal-header h2 {
        font-size: 16px;
    }
    
    .modal-content {
        padding: 25px 20px;
    }
    
    .modal-content p {
        font-size: 15px;
    }
    
    .modal-footer {
        padding: 15px 20px 25px;
    }
    
    .redirect-btn {
        width: 100%;
    }
} 