/* Dynamic Offer System Styles */

/* 1. Floating Widget */
.offer-float-widget {
    position: fixed;
    bottom: 100px; /* Above WhatsApp */
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff0000 0%, #990000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 5px 25px rgba(255, 0, 0, 0.4);
    cursor: pointer;
    z-index: 9999;
    animation: pulseOffer 2s infinite, bounceIn 1s ease-out;
    transition: all 0.3s;
}

.offer-float-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(255, 0, 0, 0.6);
}

.offer-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #fff;
    color: #ff0000;
    font-size: 9px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* 2. Premium Popup */
.offer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s;
}

.offer-overlay.active {
    display: flex;
    opacity: 1;
}

.offer-modal {
    width: 95%;
    max-width: 460px; /* Reduced size */
    background: #15151e;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.offer-overlay.active .offer-modal {
    transform: translateY(0);
}

.offer-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 22px;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.offer-close:hover {
    color: #fff;
}

.offer-header {
    background: #1c1c28;
    padding: 25px;
    text-align: center;
}

.offer-tag {
    display: inline-block;
    background: #ff0000;
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.offer-modal h2 {
    font-size: 26px;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 800;
}

.offer-price-row {
    font-size: 22px;
    color: rgba(255,255,255,0.9);
    font-weight: 700;
    margin-bottom: 12px;
}

.offer-price-row span {
    color: #ff0000;
    font-size: 28px;
}

.offer-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    line-height: 1.5;
}

.offer-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.offer-stat {
    padding: 15px;
    text-align: center;
}

.offer-stat-val {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.offer-stat-lbl {
    font-size: 9px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.offer-content {
    padding: 25px;
}

.offer-content h4 {
    color: #444;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.offer-learn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.offer-item {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.offer-item::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #ff0000;
    font-size: 10px;
}

.offer-deadline-box {
    border: 1px solid rgba(255, 0, 0, 0.3);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 25px;
    background: rgba(255, 0, 0, 0.05);
    text-align: center;
}

.offer-deadline-box p {
    color: #fff;
    font-size: 12px;
    margin: 2px 0;
}

.offer-deadline-box strong { color: #ff0000; }

.offer-cta {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff0000, #990000);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    text-align: center;
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.2);
}

.offer-cta:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 0, 0, 0.4);
}

.offer-contact {
    text-align: center;
    margin-top: 15px;
    font-size: 12px;
    color: #555;
}

.offer-contact a {
    color: #888;
    text-decoration: none;
}

/* Animations */
@keyframes pulseOffer {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); opacity: 1; }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .offer-modal { 
        width: 94%; 
        max-height: 90vh;
        overflow-y: auto;
    }
    .offer-header { padding: 15px; }
    .offer-modal h2 { font-size: 20px; }
    .offer-price-row { font-size: 18px; margin-bottom: 8px; }
    .offer-price-row span { font-size: 22px; }
    
    .offer-stats-grid { grid-template-columns: repeat(3, 1fr); }
    .offer-stat { padding: 10px 5px; }
    .offer-stat-val { font-size: 14px; }
    .offer-stat-lbl { font-size: 8px; }
    
    .offer-content { padding: 15px; }
    .offer-learn-grid { gap: 8px; margin-bottom: 15px; }
    .offer-item { font-size: 11px; }
    
    .offer-deadline-box { padding: 8px; margin-bottom: 15px; }
    .offer-deadline-box p { font-size: 11px; }
    
    .offer-cta { padding: 12px; font-size: 14px; border-radius: 10px; }
    
    .offer-float-widget { bottom: 90px; right: 15px; width: 55px; height: 55px; font-size: 22px; }
}

