#mxexit-intent-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(12px);
}

.mxexit-intent-popup-content {
    position: relative;
    max-width: 520px;
    width: 90%;
    margin: auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: popupSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: linear-gradient(135deg, #fa73e6 0%, #7873f5 50%, #3ac9d1 100%);
    padding: 3px;
}

.popup-content-inner {
    position: relative;
    width: 100%;
    padding: 40px 35px;
    text-align: center;
    background: #212121;
    border-radius: 21px;
    color: #ffffff;
}

@keyframes popupSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-header {
    margin-bottom: 24px;
}

.popup-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.mxexit-intent-popup h2 {
    color: #ffffff;
    margin: 0 0 8px 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    background: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.popup-subtitle {
    color: #a1a1aa;
    font-size: 16px;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.discount-highlight {
    background: linear-gradient(135deg, rgba(250, 115, 230, 0.2), rgba(120, 115, 245, 0.2), rgba(58, 201, 209, 0.2));
    border: 2px solid;
    border-image: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1) 1;
    border-radius: 16px;
    padding: 20px;
    margin: 24px 0;
    position: relative;
    overflow: hidden;
}

.discount-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(250, 115, 230, 0.1), rgba(120, 115, 245, 0.1), rgba(58, 201, 209, 0.1));
    pointer-events: none;
}

.discount-text {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    position: relative;
    z-index: 1;
}

.discount-amount {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
}

.pricing-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    font-size: 15px;
    color: #e5e7eb;
}

.price-item:first-child {
    margin-top: 0;
}

.price-item:last-child {
    margin-bottom: 0;
}

.sale-price {
    color: #8b5cf6;
    font-weight: 600;
    font-size: 16px;
}

.sale-price small {
    color: #71717a;
    font-weight: normal;
    font-size: 13px;
    text-decoration: line-through;
    margin-left: 6px;
}

.deadline {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.2), rgba(245, 158, 11, 0.2));
    color: #fbbf24;
    padding: 12px 16px;
    border-radius: 12px;
    margin: 20px 0;
    font-weight: 600;
    border: 1px solid rgba(251, 146, 60, 0.3);
    font-size: 15px;
    position: relative;
    overflow: hidden;
}

.deadline::before {
    content: '⏰';
    margin-right: 8px;
    font-size: 16px;
}

#mxexit-email-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
}

#mxexit-email-input {
    padding: 16px 20px;
    width: 100%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    color: #ffffff;
    backdrop-filter: blur(10px);
}

#mxexit-email-input::placeholder {
    color: #a1a1aa;
}

#mxexit-email-input:focus {
    outline: none;
    border-color: #fa73e6;
    box-shadow: 0 0 0 4px rgba(250, 115, 230, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.mxexit-intent-popup-button {
    background: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(250, 115, 230, 0.4);
    position: relative;
    overflow: hidden;
}

.mxexit-intent-popup-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.mxexit-intent-popup-button:hover::before {
    left: 100%;
}

.mxexit-intent-popup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(250, 115, 230, 0.5);
}

.mxexit-intent-popup-button:active {
    transform: translateY(0);
}

#mxexit-reject-button {
    background: none;
    border: none;
    color: #71717a;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
    margin-top: 16px;
}

#mxexit-reject-button:hover {
    color: #a1a1aa;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    color: #a1a1aa;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.popup-close:hover {
    background: rgba(250, 115, 230, 0.2);
    color: #fa73e6;
    transform: scale(1.1);
}

#mxexit-response-message {
    margin-top: 16px;
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    display: none;
}

#mxexit-response-message.success {
    background: rgba(34, 197, 94, 0.1);
    color: #166534;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

#mxexit-response-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Admin page tab styling */
.nav-tab-wrapper {
    margin: 1.5em 0 1em;
}

.tab-content {
    margin-top: 20px;
    background: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-top: none;
}

/* Responsive adjustments */
@media only screen and (max-width: 600px) {
    .mxexit-intent-popup-content {
        max-width: 95%;
        margin: 20px auto;
    }
    
    .popup-content-inner {
        padding: 30px 20px;
    }
    
    .popup-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .mxexit-intent-popup h2 {
        font-size: 24px;
    }
    
    .popup-subtitle {
        font-size: 15px;
    }
    
    .discount-highlight {
        padding: 16px;
        margin: 20px 0;
    }
    
    .discount-text {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .discount-amount {
        font-size: 32px;
    }
    
    .pricing-info {
        padding: 12px;
    }
    
    .price-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin: 10px 0;
        font-size: 14px;
    }
    
    .sale-price {
        font-size: 15px;
    }
    
    .deadline {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    #mxexit-email-form {
        gap: 14px;
        margin: 20px 0;
    }
    
    #mxexit-email-input {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .mxexit-intent-popup-button {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .popup-close {
        top: 15px;
        right: 20px;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

@media only screen and (max-width: 400px) {
    .popup-content-inner {
        padding: 25px 15px;
    }
    
    .mxexit-intent-popup h2 {
        font-size: 22px;
    }
    
    .discount-amount {
        font-size: 28px;
    }
    
    .pricing-info {
        padding: 10px;
    }
    
    .price-item {
        font-size: 13px;
        margin: 8px 0;
    }
    
    #mxexit-email-input {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    .mxexit-intent-popup-button {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Dark mode support - now default styling */
@media (prefers-color-scheme: light) {
    .popup-content-inner {
        background: #ffffff;
        color: #1f2937;
    }
    
    .mxexit-intent-popup h2 {
        color: #1f2937;
    }
    
    .popup-subtitle {
        color: #6b7280;
    }
    
    .discount-highlight {
        background: linear-gradient(135deg, #f3e8ff, #dbeafe, #cffafe);
        border: 2px solid;
        border-image: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1) 1;
    }
    
    .discount-text {
        color: #1f2937;
    }
    
    .pricing-info {
        background: #f9fafb;
        border-color: #e5e7eb;
    }
    
    .price-item {
        color: #374151;
    }
    
    .sale-price small {
        color: #9ca3af;
    }
    
    #mxexit-email-input {
        background: #ffffff;
        border-color: #e5e7eb;
        color: #1f2937;
    }
    
    #mxexit-email-input::placeholder {
        color: #6b7280;
    }
    
    #mxexit-email-input:focus {
        border-color: #fa73e6;
        box-shadow: 0 0 0 4px rgba(250, 115, 230, 0.1);
        background: #ffffff;
    }
    
    #mxexit-reject-button {
        color: #9ca3af;
    }
    
    #mxexit-reject-button:hover {
        color: #6b7280;
    }
    
    .popup-close {
        background: rgba(107, 114, 128, 0.1);
        color: #6b7280;
    }
    
    .deadline {
        background: linear-gradient(135deg, #fef3c7, #fed7aa);
        color: #92400e;
        border-color: #f59e0b;
    }
}