/**
 * DROPX PRIME SYSTEM - Központi Cyber Modal UI
 *
 * A confirm/alert dialógusok nem kerülhetnek a dokumentum normál folyásába.
 * Globálisan fix középre igazítva jelennek meg, komment törlésnél pedig
 * opcionálisan az aktuális komment-szekción belül maradnak.
 */

.cyber-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: transparent;
    backdrop-filter: none;
}

.cyber-modal-overlay-local {
    position: absolute;
    inset: 0;
    z-index: 2147483647;
    padding: 18px;
    background: transparent;
    backdrop-filter: none;
    border-radius: inherit;
}

.cyber-modal-anchor {
    position: relative;
}

.cyber-modal {
    width: min(100%, 480px);
    max-height: min(86vh, 560px);
    overflow: auto;
    box-sizing: border-box;
    background: #0c0e12;
    color: #d8dce3;
    border: 1px solid rgba(212, 157, 30, 0.72);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.cyber-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(212, 157, 30, 0.28);
}

.cyber-modal-title {
    margin: 0;
    color: #f1c24b;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cyber-modal-close {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    color: #d8dce3;
    cursor: pointer;
}

.cyber-modal-close:hover {
    border-color: rgba(235, 68, 68, 0.72);
    background: rgba(235, 68, 68, 0.12);
    color: #ff7777;
}

.cyber-modal-body {
    padding: 18px;
    font-size: 14px;
    line-height: 1.55;
}

.cyber-modal-message {
    margin: 0;
}

.cyber-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 18px 18px;
}

.cyber-modal-footer .btn {
    min-width: 142px;
}

@media (max-width: 600px) {
    .cyber-modal-overlay {
        padding: 14px;
    }

    .cyber-modal-overlay-local {
        padding: 10px;
    }

    .cyber-modal {
        width: 100%;
        max-height: 82vh;
    }

    .cyber-modal-footer {
        flex-direction: column-reverse;
    }

    .cyber-modal-footer .btn {
        width: 100%;
        min-width: 0;
    }
}
