dialog {
    width: min(90vw, 500px);

    margin: auto;
    padding: 0;

    border: none;
    border-radius: 20px;

    background: #1c1c1c;
    color: white;

    z-index: 9999;
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
}

.dialog-content {
    padding: 2rem;
}

.dialog-content h2 {
    margin: 0 0 0.75rem;
    font-size: 1.6rem;
}

.dialog-content p {
    margin: 0;
    line-height: 1.6;
    color: #c9c9c9;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.dialog-btn {
    border: none;
    cursor: pointer;
    border-radius: 12px;
    padding: 0.8rem 1.25rem;
    font-size: 0.95rem;
    transition:
        transform 0.15s ease,
        opacity 0.15s ease;
}

.dialog-btn:hover {
    transform: translateY(-1px);
}

.dialog-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.dialog-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.dialog-btn-primary {
    background: #f5c542;
    color: #111;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.dialog-btn-primary:hover {
    opacity: 0.9;
}

dialog[open] {
    animation: dialog-in 0.5s ease-out;
}

@keyframes dialog-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
