/* ============================================================
   МОДАЛЬНЫЕ ОКНА
   ============================================================ */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
}

.modal-window {
    background: rgba(15, 49, 66, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 200, 210, 0.15);
}

.modal-window::-webkit-scrollbar {
    width: 6px;
}

.modal-window::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.modal-window::-webkit-scrollbar-thumb {
    background: rgba(0, 200, 210, 0.3);
    border-radius: 3px;
}

.modal-small {
    max-width: 420px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px 8px;
}

.modal-close:hover {
    color: #00c8d2;
}

.modal-title {
    color: #b0f0f5;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-right: 40px;
}

.modal-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.5;
    margin: 16px 0 8px;
}

/* ===== Список файлов в модалке ===== */

.modal-download-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.modal-download-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 200, 210, 0.06);
    transition: all 0.3s;
}

.modal-download-list li:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 200, 210, 0.15);
}

.modal-download-list .file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.modal-download-list .file-info i {
    font-size: 20px;
    color: #00c8d2;
}

.modal-download-list .btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 6px;
    background: #00c8d2;
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.modal-download-list .btn-sm:hover {
    background: #00b0b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 200, 210, 0.3);
}