.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}
.modal-overlay.active { display: flex; animation: fadeIn 0.15s ease; }

.modal {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 32px;
    width: 440px;
    max-width: 100%;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    animation: slideUp 0.2s ease;
    position: relative;
}
.modal::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-glow-strong), transparent);
}

.modal h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.modal h3 .icon { color: var(--cyan); }
.modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 24px;
    flex-wrap: wrap;
}

.member-list {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.member-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.member-item:last-child { border-bottom: none; }
.member-item:hover { background: var(--bg-card-hover); }
.member-item .name { font-weight: 600; font-size: 14px; }
.member-item .username {
    font-size: 12px;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
}