/* SAM EXIT INTENT MODAL */
#sam-exit-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
#sam-exit-modal.active { display: flex; }

.sam-exit-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.sam-exit-box {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 30px 25px;
    max-width: 340px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: samExitSlide 0.3s ease;
}
@keyframes samExitSlide {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.sam-exit-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 18px;
    color: #64748b;
    cursor: pointer;
}
.sam-exit-close:hover { background: #e2e8f0; color: #1e293b; }

.sam-exit-avatar {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
}
.sam-exit-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #10B981;
    box-shadow: 0 4px 15px rgba(16,185,129,0.3);
}

.sam-exit-box h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
    color: #1e293b;
}

.sam-exit-box > p {
    margin: 0 0 20px;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

.sam-exit-form {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}
.sam-exit-form input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
}
.sam-exit-form input:focus { border-color: #10B981; }
.sam-exit-form button {
    padding: 12px 18px;
    background: linear-gradient(135deg, #10B981, #059669);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.sam-exit-form button:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16,185,129,0.4); }

.sam-exit-skip {
    margin: 0;
    color: #94a3b8;
    font-size: 0.85rem;
    cursor: pointer;
}
.sam-exit-skip:hover { color: #64748b; text-decoration: underline; }

.sam-exit-success { padding: 10px 0; }
.sam-exit-success h3 { color: #10B981; }
.sam-exit-note { font-size: 0.85rem !important; color: #94a3b8 !important; margin-top: 10px !important; }

@media (max-width: 400px) {
    .sam-exit-form { flex-direction: column; }
    .sam-exit-form button { width: 100%; }
}
