/* Win-Back Modal Styles - Pure CSS */

.winback-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.winback-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.winback-modal-small {
    max-width: 400px;
}

.winback-modal-content {
    padding: 2rem;
}

/* Header */
.winback-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.winback-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
}

.winback-header h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.winback-header p {
    color: #6b7280;
    margin: 0;
}

/* Offer Section */
.winback-offer {
    background: linear-gradient(135deg, #ecfdf5, #dbeafe);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #22c55e;
    text-align: center;
    margin-bottom: 1.5rem;
}

.winback-offer h4 {
    font-size: 1.125rem;
    font-weight: bold;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.winback-discount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #00C851;
    margin: 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 200, 81, 0.2);
    animation: pulse-discount 2s ease-in-out infinite alternate;
}

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

.winback-offer p {
    font-size: 0.875rem;
    color: #374751;
    margin: 0 0 0.75rem 0;
}

.winback-price {
    font-size: 1rem;
    color: #374751;
    font-weight: 500;
    margin-top: 0.5rem;
}

.winback-price s {
    color: #9ca3af;
    text-decoration-thickness: 2px;
}

.new-price {
    font-weight: 700;
    color: #00C851;
    font-size: 1.1em;
    text-shadow: 0 1px 2px rgba(0, 200, 81, 0.2);
}

/* Benefits */
.winback-benefits {
    margin-bottom: 1.5rem;
}

.benefit {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #374751;
}

.checkmark {
    color: #16a34a;
    font-weight: bold;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Urgency */
.winback-urgency {
    text-align: center;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.urgent {
    font-weight: bold;
    color: #dc2626;
}

/* Buttons */
.winback-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.btn-accept {
    background: linear-gradient(135deg, #00C851 0%, #007E33 100%);
    box-shadow: 0 4px 15px rgba(0, 200, 81, 0.3);
    color: white;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    transform: scale(1);
    position: relative;
    overflow: hidden;
    animation: subtle-glow 3s ease-in-out infinite alternate;
}

@keyframes subtle-glow {
    0% { box-shadow: 0 4px 15px rgba(0, 200, 81, 0.3); }
    100% { box-shadow: 0 4px 20px rgba(0, 200, 81, 0.4); }
}

.btn-accept:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 200, 81, 0.4);
}

.btn-accept:active {
    transform: scale(0.98);
}

.btn-decline {
    background: transparent;
    border: 1px solid #e0e0e0;
    color: #666;
    font-weight: 400;
    padding: 14px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.btn-decline:hover {
    background: #f8f9fa;
    border-color: #d0d7de;
    color: #57606a;
}

/* Support */
.winback-support {
    text-align: center;
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
}

.winback-support a {
    color: #2563eb;
    text-decoration: none;
}

.winback-support a:hover {
    text-decoration: underline;
}

/* Processing Modal */
.winback-processing-content {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Modal */
.winback-success-content {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.winback-success-content h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
    margin: 0 0 1rem 0;
}

.winback-success-content p {
    color: #6b7280;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 640px) {
    .winback-modal {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .winback-modal-content {
        padding: 1.5rem;
    }
    
    .winback-discount {
        font-size: 1.5rem;
    }
}