/* Aetheria 2.0 System Framework: Specialized Overlays & Dialogue Trays */

.modal {
    display: none; position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px); justify-content: center; align-items: center; z-index: 1000;
}

.modal-content {
    background: #0d0e16; border: 1px solid var(--border-glass);
    border-radius: 24px; width: 580px; max-height: 90vh; overflow-y: auto;
    padding: 32px; box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
}

/* -- HEIGHT STABILIZED SETTINGS PLATFORM -- */
#settingsModal .modal-content {
    display: flex; flex-direction: column;
    height: 80vh; min-height: 600px;
    overflow: hidden; /* Hard Frame Lock */
    padding-bottom: 15px;
}

#settingsModal .modal-body {
    flex: 1; overflow-y: auto; /* Dynamic scroll window */
    padding-right: 10px; margin-top: 5px;
}
#settingsModal .modal-body::-webkit-scrollbar { width: 6px; }
#settingsModal .modal-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }

.modal-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px;
}
.modal-header h2 { font-weight: 700; font-size: 1.3rem; }
.close-btn {
    background: transparent; border: none; color: var(--text-secondary);
    font-size: 1.5rem; cursor: pointer;
}
