/* Global Custom Modal Styles */
.custom-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-modal-box {
    background: var(--bg-card, #1e293b);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
    padding: 24px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-main, #f8fafc);
    font-family: 'Inter', sans-serif;
}

.custom-modal-overlay.active .custom-modal-box {
    transform: scale(1) translateY(0);
}

.custom-modal-box h3 {
    margin: 0 0 12px 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.custom-modal-box p {
    margin: 0 0 24px 0;
    font-size: 0.95rem;
    color: var(--text-muted, #94a3b8);
    line-height: 1.5;
    word-break: break-word;
}

.custom-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.custom-modal-btn {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.custom-modal-btn.primary {
    background: var(--accent-brand, #3b82f6);
    color: white;
}

.custom-modal-btn.primary:hover {
    background: #2563eb;
}

.custom-modal-btn.secondary {
    background: transparent;
    color: var(--text-main, #f8fafc);
    border: 1px solid var(--border-subtle, rgba(255,255,255,0.2));
}

.custom-modal-btn.secondary:hover {
    background: rgba(255,255,255,0.05);
}
