.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

@media (max-width: 768px) {
    .confirm-overlay {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .confirm-overlay {
        padding: 0.5rem;
    }
}

@media (max-height: 600px) {
    .confirm-overlay {
        padding: 0.25rem;
    }
}

.confirm-overlay.visible {
    opacity: 1;
}

.confirm-modal {
    background: #18181b;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    transform: scale(0.95) translateY(-10px);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.confirm-overlay.visible .confirm-modal {
    transform: scale(1) translateY(0);
}

@keyframes confirmShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.confirm-modal.shake {
    animation: confirmShake 0.4s ease;
}

.confirm-header {
    padding: 20px 24px 0;
}

.confirm-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fafafa;
}

.confirm-body {
    padding: 12px 24px 24px;
}

.confirm-message {
    margin: 0;
    font-size: 0.9rem;
    color: #a1a1aa;
    line-height: 1.6;
    white-space: pre-wrap;
}

.confirm-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    justify-content: flex-end;
}

.confirm-btn {
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.confirm-btn:active {
    transform: scale(0.98);
}

.confirm-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #fafafa;
}

.confirm-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}

.confirm-btn-confirm {
    background: #3b82f6;
    color: white;
}

.confirm-btn-confirm:hover {
    background: #2563eb;
}

.confirm-modal--danger .confirm-btn-confirm {
    background: #ef4444;
}

.confirm-modal--danger .confirm-btn-confirm:hover {
    background: #dc2626;
}

.confirm-modal--warning .confirm-btn-confirm {
    background: #f59e0b;
}

.confirm-modal--warning .confirm-btn-confirm:hover {
    background: #d97706;
}
