.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-overlay.active { display: flex; }

.modal-window {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    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.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-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s;
}
.modal-close:hover {
    color: #00c8d2;
    transform: rotate(90deg);
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #b0f0f5;
    margin-bottom: 20px;
    padding-right: 40px;
}

.modal-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

.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);
}

.btn-extra {
    background: rgba(0, 200, 210, 0.15);
    color: #00c8d2;
    border: 1px solid rgba(0, 200, 210, 0.2);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    font-weight: 500;
}
.btn-extra:hover {
    background: rgba(0, 200, 210, 0.25);
    transform: translateY(-2px);
}

.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;
}

.modal-empty {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.3);
}
.modal-empty i {
    font-size: 40px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.1);
}