.paw-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paw-modal[hidden] {
    display: none;
}

.paw-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.paw-modal-box {
    position: relative;
    z-index: 1;
    background: #1c1c24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1.75rem 2rem;
    width: min(480px, calc(100vw - 2rem));
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    animation: modal-in 0.18s ease;
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.paw-modal-box-error   { border-color: rgba(229, 9, 20, 0.35); }
.paw-modal-box-warning { border-color: rgba(245, 166, 35, 0.35); }
.paw-modal-box-confirm { border-color: rgba(229, 9, 20, 0.25); }

.paw-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.paw-modal-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.paw-modal-close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.paw-modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.paw-modal-body {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    line-height: 1.55;
}

.paw-modal-body p {
    margin: 0 0 1.1rem;
}

.paw-modal-body p:last-child {
    margin-bottom: 0;
}

/* Footer with action buttons — emitted by JS-driven confirm modals */
.paw-modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.paw-modal-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.paw-modal-btn-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
}

.paw-modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
}

.paw-modal-btn-danger {
    background: #e50914;
    color: #fff;
}

.paw-modal-btn-danger:hover {
    background: #c80812;
}
