/* New Year Offer Modal Styles */
.offer-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 99999;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 20px;
    animation: fadeIn 0.3s ease-in-out;
    pointer-events: none;
}

.offer-modal-overlay.show {
    display: flex;
}

.offer-modal-content {
    position: relative;
    background: linear-gradient(135deg, #ff4f1e 0%, #ff8c42 100%);
    border-radius: 18px;
    padding: 24px 18px;
    max-width: 298px;
    width: 298px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideInBottomRight 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
    pointer-events: all;
}

.offer-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 18px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.offer-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.offer-header {
    text-align: center;
    margin-bottom: 18px;
    position: relative;
}

.offer-year {
    color: #FFD700;
    font-size: 29px;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

.pop-up-offer-title {
    color: white;
    font-size: 19px;
    font-weight: 900;
    margin: 6px 0 0 0;
    letter-spacing: 1.7px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.offer-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

.offer-body {
    background: white;
    border-radius: 12px;
    padding: 18px 15px;
    text-align: center;
}

.offer-badge {
    display: inline-flex;
    flex-direction: column;
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 9px;
    margin-bottom: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    animation: bounce 1s ease-in-out infinite alternate;
}

.offer-percent {
    font-size: 33px;
    font-weight: 900;
    line-height: 1;
}

.offer-off {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.offer-description {
    color: #333;
    font-size: 11px;
    margin: 9px 0 15px 0;
    font-weight: 500;
}

.offer-code-container {
    margin: 15px 0;
}

.offer-code-box {
    background: #f8f9fa;
    border: 2px dashed #ff4f1e;
    border-radius: 7px;
    padding: 9px;
    margin-bottom: 9px;
}

.offer-code-label {
    display: block;
    color: #ff4f1e;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.6px;
    margin-bottom: 5px;
}

.offer-code-value {
    color: #333;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: 2.5px;
    font-family: 'Courier New', monospace;
}

.offer-copy-btn {
    background: #333333;
    color: white;
    border: none;
    padding: 7px 18px;
    border-radius: 15px;
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.offer-copy-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.offer-copy-btn i {
    margin-right: 6px;
}

.offer-validity {
    background: linear-gradient(135deg, #fff3e6 0%, #ffe8cc 100%);
    color: #ff4f1e;
    font-size: 9px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 6px;
    margin: 12px 0;
    border: 2px solid #ff4f1e;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.offer-validity i {
    font-size: 9px;
}

.offer-validity strong {
    font-weight: 800;
    letter-spacing: 0.5px;
}

.offer-terms {
    color: #666;
    font-size: 8px;
    margin: 12px 0;
    font-style: italic;
}

.offer-cta-btn {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    color: white;
    border: none;
    padding: 9px 24px;
    border-radius: 18px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    width: 100%;
    margin-top: 6px;
}

.offer-cta-btn:hover {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* Fireworks Animation */
.offer-fireworks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FFD700;
    border-radius: 50%;
    animation: firework 2s infinite;
}

.firework:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.firework:nth-child(2) {
    top: 40%;
    right: 20%;
    animation-delay: 0.7s;
}

.firework:nth-child(3) {
    top: 60%;
    left: 50%;
    animation-delay: 1.4s;
}

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

@keyframes slideIn {
    from {
        transform: scale(0.5) rotate(-10deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes slideInBottomRight {
    from {
        transform: translateX(100%) translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
}

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

@keyframes bounce {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-10px);
    }
}

@keyframes shine {
    to {
        left: 100%;
    }
}

@keyframes firework {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(0);
        opacity: 0;
    }
}

/* Floating Offer Button */
#offerFloatingBtn {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 22px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff4f1e 0%, #ff8c42 100%);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(255, 79, 30, 0.5);
    cursor: pointer;
    z-index: 9998;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse-float 2s ease-in-out infinite;
    border: 3px solid #fff;
}

#offerFloatingBtn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 79, 30, 0.7);
}

.floating-btn-content {
    text-align: center;
    color: white;
}

.floating-btn-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.floating-btn-text {
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.5px;
}

@keyframes pulse-float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .offer-modal-overlay {
        padding: 10px;
    }

    .offer-modal-content {
        padding: 20px 15px;
        width: 280px;
        max-width: 280px;
    }

    .offer-year {
        font-size: 28px;
    }

    .pop-up-offer-title {
        font-size: 18px;
    }

    .offer-percent {
        font-size: 32px;
    }

    .offer-off {
        font-size: 14px;
    }

    .offer-code-value {
        font-size: 18px;
    }

    #offerFloatingBtn {
        width: 60px;
        height: 60px;
        bottom: 85px;
        left: 10px;
    }

    .floating-btn-icon {
        font-size: 20px;
    }

    .floating-btn-text {
        font-size: 9px;
    }
}
