/* Premium Styling for Time-Delay Popup */
.demo-popup-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(5px);
    z-index: 99998; display: none; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.4s ease;
}
.demo-popup-overlay.show { display: flex; opacity: 1; }

.demo-popup-card {
    background: #ffffff;
    border-radius: 20px;
    width: 100%; max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(30px) scale(0.95); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; overflow: hidden;
}
.demo-popup-overlay.show .demo-popup-card { transform: translateY(0) scale(1); }

.demo-popup-header {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    padding: 2rem 1.5rem 1.5rem; text-align: center; color: white;
}

.demo-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.demo-title { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 800; margin: 0; }
.demo-subtitle { font-size: 0.9rem; opacity: 0.9; margin-top: 0.5rem; }

.demo-popup-body { padding: 1.5rem; }

.demo-input {
    width: 100%; padding: 12px 16px; border-radius: 10px; border: 1px solid #e2e8f0;
    background: #f8fafc; font-size: 0.95rem; margin-bottom: 1rem; transition: all 0.2s;
}
.demo-input:focus { border-color: #3b82f6; outline: none; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); background: white; }

.demo-submit-btn {
    width: 100%; padding: 14px; background: #0f172a; color: white; border: none;
    border-radius: 10px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: background 0.2s;
}
.demo-submit-btn:hover { background: #1e293b; }

.btn-close-demo {
    position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,0.2);
    border: none; width: 30px; height: 30px; border-radius: 50%; color: white; cursor: pointer;
}
.btn-close-demo:hover { background: rgba(255,255,255,0.4); }

/* Premium Styling for Exit Intent Popup */
.exit-popup-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.75); backdrop-filter: blur(8px);
    z-index: 99999; display: none; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.exit-popup-overlay.show { display: flex; opacity: 1; }

.exit-popup-card {
    background: #ffffff; border-radius: 24px;
    width: 100%; max-width: 700px; display: flex; overflow: hidden; align-items: center;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
    transform: scale(0.95); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}
.exit-popup-overlay.show .exit-popup-card { transform: scale(1); }

.exit-left-panel {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #0f172a; padding: 3rem 2rem; width: 45%;
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    border-right: 1px solid #cbd5e1;
}
.exit-right-panel { padding: 2.5rem; width: 55%; background: white; }

.exit-warning {
    background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 5px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
    margin-bottom: 1.5rem; animation: popup-pulse 2s infinite;
}

.exit-icon { font-size: 3.5rem; color: #3b82f6; margin-bottom: 1rem; filter: drop-shadow(0 4px 6px rgba(59,130,246,0.2)); }
.exit-title { font-family: 'Outfit', sans-serif; font-size: 1.8rem; font-weight: 900; line-height: 1.1; margin-bottom: 1rem; color: #0f172a; }
.exit-subtitle { font-size: 0.95rem; color: #475569; line-height: 1.5; font-weight: 500; }

.exit-input {
    width: 100%; padding: 14px 16px; border-radius: 12px; border: 2px solid #f1f5f9;
    background: #f8fafc; font-size: 1rem; margin-bottom: 1rem; transition: all 0.2s;
}
.exit-input:focus { border-color: #0f172a; outline: none; background: white; }

.exit-submit-btn {
    width: 100%; padding: 16px; background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white; border: none; border-radius: 12px; font-weight: 800; font-size: 1.1rem; cursor: pointer; transition: transform 0.2s;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}
.exit-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(239, 68, 68, 0.4); }

.btn-close-exit {
    position: absolute; top: 15px; right: 15px; background: #f1f5f9;
    border: none; width: 32px; height: 32px; border-radius: 50%; color: #64748b; cursor: pointer;
}
.btn-close-exit:hover { background: #e2e8f0; color: #0f172a; }

@media (max-width: 768px) {
    .exit-popup-card { flex-direction: column; max-width: 90%; }
    .exit-left-panel, .exit-right-panel { width: 100%; }
    .exit-left-panel { padding: 2rem 1.5rem; }
}
@keyframes popup-pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
