/* Exit Offer Modal Styles */

.exit-offer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.exit-offer-overlay.active {
    display: flex;
}

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

.exit-offer-modal {
    background: linear-gradient(135deg, rgba(10, 20, 40, 0.98), rgba(20, 30, 50, 0.98));
    border: 3px solid var(--primary-color);
    border-radius: 30px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 100px var(--glow-color);
    animation: slideUp 0.5s ease-out;
    text-align: center;
}

/* Custom Scrollbar */
.exit-offer-modal::-webkit-scrollbar {
    width: 8px;
}

.exit-offer-modal::-webkit-scrollbar-track {
    background: rgba(0, 217, 255, 0.1);
    border-radius: 10px;
}

.exit-offer-modal::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.exit-offer-modal::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

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

.exit-offer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 0, 85, 0.2);
    border: 2px solid var(--danger-color);
    color: var(--danger-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    font-weight: 300;
}

.exit-offer-close:hover {
    background: rgba(255, 0, 85, 0.4);
    transform: rotate(90deg);
}

.exit-offer-emoji {
    font-size: 3.5rem;
    margin-bottom: 0.8rem;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.exit-offer-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.exit-offer-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.exit-offer-discount {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(123, 47, 247, 0.2));
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    padding: 0.8rem 1.5rem;
    border-radius: 15px;
    margin-bottom: 0.8rem;
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.discount-text {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.discount-code {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(0, 217, 255, 0.1);
    border: 2px dashed var(--primary-color);
    border-radius: 10px;
    padding: 0.6rem 1.2rem;
    margin-top: 0.8rem;
}

.code-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.copy-code-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.copy-code-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.copy-code-btn.copied {
    background: var(--success-color);
}

.exit-offer-features {
    text-align: left;
    margin-bottom: 1.5rem;
}

.exit-offer-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.exit-offer-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem;
    margin-bottom: 0.4rem;
    background: rgba(0, 217, 255, 0.05);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.exit-offer-features li::before {
    content: '✓';
    color: var(--success-color);
    font-size: 1.2rem;
    font-weight: 700;
}

.exit-offer-timer {
    background: rgba(255, 0, 85, 0.1);
    border: 2px solid var(--danger-color);
    border-radius: 15px;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
}

.timer-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.timer-countdown {
    font-size: 2rem;
    font-weight: 700;
    color: var(--danger-color);
    font-family: 'Courier New', monospace;
}

.exit-offer-buttons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.exit-offer-cta {
    flex: 1;
    min-width: 200px;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px var(--glow-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.exit-offer-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 50px var(--primary-color);
}

.exit-offer-decline {
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exit-offer-decline:hover {
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.exit-offer-guarantee {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 217, 255, 0.2);
}

.guarantee-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.guarantee-icon {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .exit-offer-modal {
        padding: 1.5rem 1rem;
        max-width: 95%;
        max-height: 95vh;
    }

    .exit-offer-emoji {
        font-size: 3rem;
        margin-bottom: 0.5rem;
    }

    .exit-offer-title {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }

    .exit-offer-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .exit-offer-discount {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .discount-badge {
        font-size: 2rem;
        padding: 0.6rem 1.2rem;
        margin-bottom: 0.5rem;
    }

    .discount-text {
        font-size: 0.9rem;
    }

    .code-text {
        font-size: 1rem;
    }

    .exit-offer-timer {
        padding: 0.6rem;
        margin-bottom: 1rem;
    }

    .timer-countdown {
        font-size: 1.6rem;
    }

    .exit-offer-features {
        margin-bottom: 1rem;
    }

    .exit-offer-features li {
        font-size: 0.85rem;
        padding: 0.5rem;
        gap: 0.6rem;
    }

    .exit-offer-features li::before {
        font-size: 1rem;
    }

    .exit-offer-buttons {
        flex-direction: column;
        gap: 0.6rem;
        margin-bottom: 0.8rem;
    }

    .exit-offer-cta {
        min-width: 100%;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    .exit-offer-decline {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    .exit-offer-guarantee {
        margin-top: 0.8rem;
        padding-top: 0.8rem;
    }

    .guarantee-text {
        font-size: 0.8rem;
    }

    .guarantee-icon {
        font-size: 1rem;
    }
}

/* Admin Panel Styles for Exit Offer Management */
.exit-offer-settings {
    background: rgba(0, 217, 255, 0.05);
    border: 2px solid rgba(0, 217, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.exit-offer-settings h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.setting-group {
    margin-bottom: 1rem;
}

.setting-group label {
    display: block;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.setting-group input,
.setting-group textarea,
.setting-group select {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 217, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.setting-group input:focus,
.setting-group textarea:focus,
.setting-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 217, 255, 0.1);
}

.setting-group textarea {
    min-height: 100px;
    resize: vertical;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.4s;
    border-radius: 30px;
    border: 2px solid var(--border-color);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

.save-settings-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.save-settings-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--primary-color);
}

.preview-exit-offer-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    margin-left: 1rem;
}

.preview-exit-offer-btn:hover {
    background: rgba(0, 217, 255, 0.1);
}