/* Smart Features Styling */

/* --- Popups --- */
.smart-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
}

.smart-popup-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    text-align: center;
    animation: slideUp 0.4s ease;
    border-top: 5px solid var(--primary-color);
}

.smart-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.smart-popup-header h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8em;
}

.smart-popup-body p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 25px;
}

.smart-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, #b829b4 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(222, 74, 218, 0.4);
}

.smart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(222, 74, 218, 0.5);
    color: white;
    text-decoration: none;
}

/* --- Urgency Timer Box --- */
.smart-offer-box {
    background: linear-gradient(to right, #fff0fd, #ffffff);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(222, 74, 218, 0.1);
    animation: pulseBorder 2s infinite;
}

.smart-offer-box h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3em;
}

.smart-offer-box p {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 15px;
}

.smart-offer-box strong {
    color: #d63384;
    font-size: 1.2em;
}

.small-cta {
    font-size: 0.9em;
    padding: 8px 20px;
    background: #333;
    color: white;
    border-radius: 4px;
    text-decoration: none;
}

/* --- Sticky Bar --- */
.smart-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 3px solid var(--primary-color);
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 990; /* Below popups */
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.smart-sticky-bar.visible {
    transform: translateY(0);
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pulseBorder {
    0% { box-shadow: 0 0 0 0 rgba(222, 74, 218, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(222, 74, 218, 0); }
    100% { box-shadow: 0 0 0 0 rgba(222, 74, 218, 0); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .smart-sticky-bar {
        flex-direction: column;
        padding: 10px;
        bottom: 0px; /* Above mobile browser bars */
    }
}
