.modal {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    inset: 0;
    z-index: 3;
    background: var(--overlay-dark);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-light);
    max-width: 750px;
    width: 90%;
    border-radius: 22px;
    padding: 22px;
}

.modal-header{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.close-modal{
    cursor: pointer;
    border: none;
    color: var(--danger);
    background: transparent;
    font-size: 20px;
}

.full-abstract {
    background: var(--bg-soft);
    padding: 20px;
    border-radius: 20px;
}

.modalBody { margin-top: 20px; }
.citation-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.citation-table th {
    text-align: left;
    padding: 14px 16px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    background: var(--bg-soft);
}

.citation-table td {
    padding: 14px 16px;
    border-top: 1px solid var(--border-soft);
    font-size: 0.9rem;
}

.citation-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
    width: 100px;
}

.citation-text {
    color: var(--text-secondary);
    line-height: 1.5;
}

.citation-table tr:hover td { background: var(--bg-soft); }
.modalbodyFooter {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.bibtex-link {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--bg-soft);
    padding: 8px 16px;
    border-radius: 20px;
    transition: 0.2s;
}

.bibtex-link:hover {
    background: var(--primary);
    color: #fff;
}