/* Exit Intent Modal */

.exit-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.exit-modal-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.exit-modal {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.exit-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f8f9fa;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5a6c7d;
    font-size: 18px;
    transition: all 0.2s;
}

.exit-modal-close:hover {
    background: #e8ecef;
    color: #2c3e50;
    transform: rotate(90deg);
}

.exit-modal-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 20px;
}

.exit-modal h2 {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 16px 0;
    text-align: center;
    line-height: 1.3;
}

.exit-modal p {
    font-size: 15px;
    color: #5a6c7d;
    line-height: 1.6;
    margin: 0 0 32px 0;
    text-align: center;
}

.exit-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exit-modal-btn {
    width: 100%;
    padding: 16px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.exit-modal-btn-primary {
    background: #c21f26;
    color: white;
    box-shadow: 0 4px 12px rgba(194, 31, 38, 0.3);
}

.exit-modal-btn-primary:hover {
    background: #a11920;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(194, 31, 38, 0.4);
}

.exit-modal-btn-secondary {
    background: white;
    color: #5a6c7d;
    border: 2px solid #e8ecef;
}

.exit-modal-btn-secondary:hover {
    border-color: #c21f26;
    color: #c21f26;
    transform: translateY(-2px);
}

/* ── Modal: Link do konfiguracji ── */
.save-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.save-modal-overlay.show { display: flex; }

.save-modal {
    background: white;
    border-radius: 20px;
    padding: 36px 32px 28px;
    width: 92%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: saveModalIn 0.3s ease;
}
@keyframes saveModalIn {
    from { opacity: 0; transform: scale(0.92) translateY(12px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.save-modal-close {
    position: absolute;
    top: 14px; right: 14px;
    background: none; border: none;
    font-size: 18px; color: #aaa;
    cursor: pointer; padding: 4px 8px;
}
.save-modal-close:hover { color: #333; }

.save-modal-icon {
    font-size: 44px;
    color: #c21f26;
    margin-bottom: 12px;
}

.save-modal h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a2332;
    margin: 0 0 6px;
}

.save-modal p {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px;
}

.save-modal-link-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.save-modal-link-wrap input {
    flex: 1;
    padding: 10px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    background: #f8f8f8;
    outline: none;
    min-width: 0;
}

#save-modal-copy {
    padding: 10px 14px;
    background: #c21f26;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
#save-modal-copy:hover { background: #a11920; }
#save-modal-copy.copied { background: #2e7d32; }

.save-modal-btn-close {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: none;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.save-modal-btn-close:hover { border-color: #c21f26; color: #c21f26; }

.save-modal-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 14px;
    color: #bbb;
    font-size: 13px;
}
.save-modal-divider::before,
.save-modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e8e8;
}

.save-modal-account-text {
    font-size: 13px;
    color: #888;
    margin: 0 0 12px;
    line-height: 1.5;
}

.save-modal-account-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #1a2332;
    color: white;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    box-sizing: border-box;
}
.save-modal-account-btn:hover {
    background: #2c3e50;
    transform: translateY(-1px);
}

