.ag-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
    animation: ag-fade-in 0.2s ease;
}

.ag-modal-content {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    width: 460px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 4px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: ag-slide-up 0.25s ease;
    position: relative;
}

.ag-modal-content h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
}

.ag-modal-content p {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0 0 0.25rem 0;
    line-height: 1.6;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.ag-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
}

.ag-modal-close:hover {
    color: #374151;
    background: #f3f4f6;
}


.ag-modal-buttons {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.ag-modal-buttons button {
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    flex: 1;
    max-width: 160px;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.ag-modal-buttons button:active {
    transform: scale(0.97);
}

.ag-btn-confirm {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.ag-btn-confirm:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45);
}

.ag-btn-cancel {
    background: #f3f4f6;
    color: #374151;
}

.ag-btn-cancel:hover {
    background: #e5e7eb;
}

@keyframes ag-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes ag-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}