/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    backdrop-filter: blur(3px);
}

.modal-container {
    background: #fff;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dark-skin .modal-container {
    background: #2c2c2c;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e7e7e7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.dark-skin .modal-header {
    background: #252525;
    border-bottom-color: #3a3a3a;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.modal-header h3 i {
    margin-right: 10px;
    color: #f5c518;
}

.dark-skin .modal-header h3 {
    color: #e9ecef;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: #c43751;
    background: rgba(0, 0, 0, 0.05);
}

.dark-skin .modal-close:hover {
    color: #e33451;
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}

.dark-skin .modal-body p {
    color: #adb5bd;
}

/* Селектор рейтинга */
.rating-stars-wrapper {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 15px 0 10px;
    flex-wrap: wrap;
}

.rating-star {
    font-size: 32px;
    cursor: pointer;
    color: #ddd;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 0 2px;
}

.rating-star i {
    transition: transform 0.1s ease;
}

.rating-star:hover i {
    transform: scale(1.1);
}

.rating-star:hover {
    color: #f5c518;
}

.rating-star.active {
    color: #f5c518;
}

.dark-skin .rating-star {
    color: #555;
}

.dark-skin .rating-star.active {
    color: #f5c518;
}

.rating-value-display {
    text-align: center;
    margin-top: 15px;
    font-size: 16px;
    color: #666;
}

.dark-skin .rating-value-display {
    color: #adb5bd;
}

.current-rating {
    font-weight: 700;
    font-size: 32px;
    color: #f5c518;
    display: inline-block;
    margin: 0 5px;
}

/* Кнопки */
.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
}

.modal-buttons .button {
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.modal-buttons .btn-primary {
    background: #f5c518;
    color: #333;
}

.modal-buttons .btn-primary:hover:not(:disabled) {
    background: #e0b015;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(245, 197, 24, 0.3);
}

.modal-buttons .btn-secondary {
    background: #e7e7e7;
    color: #666;
}

.dark-skin .modal-buttons .btn-secondary {
    background: #3a3a3a;
    color: #adb5bd;
}

.modal-buttons .btn-secondary:hover:not(:disabled) {
    background: #d4d4d4;
}

.dark-skin .modal-buttons .btn-secondary:hover:not(:disabled) {
    background: #4a4a4a;
}

.modal-buttons .button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .rating-star {
        font-size: 26px;
    }
    
    .rating-stars-wrapper {
        gap: 4px;
    }
    
    .current-rating {
        font-size: 28px;
    }
    
    .modal-buttons .button {
        padding: 8px 20px;
        font-size: 13px;
    }
}

.modal-buttons .btn-primary i.fa-spinner {
    margin-right: 8px;
}