.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-overlay.active { display: flex; }
.modal-window {
    background: #fff;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}
.modal-close:hover { color: #333; }
.modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
    padding-right: 40px;
}
.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: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}
.modal-download-list .file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.modal-download-list .file-info i {
    font-size: 20px;
    color: #4a90d9;
}
.modal-download-list .btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 6px;
    background: #4a90d9;
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.modal-download-list .btn-sm:hover { background: #357abd; }
.btn-extra {
    background: #6c5ce7;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-extra:hover { background: #5a4bd1; }
.material-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.material-card-footer .actions {
    display: flex;
    gap: 8px;
    align-items: center;
}