/* Urgency Modal Styling */
.urgency-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.urgency-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.urgency-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    animation: slideInUp 0.4s ease-out;
    border: none;
    color: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.urgency-modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 102, 255, 0.03), transparent);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

.urgency-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: #666;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.urgency-modal-close:hover {
    background: #f5f5f5;
    color: #333;
    border-color: transparent;
    transform: rotate(90deg);
}

.urgency-modal-header {
    text-align: center;
    padding: 30px 20px 20px;
    color: #1a1a1a;
}

.urgency-modal-header h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
    color: #0066FF;
    letter-spacing: 0.5px;
}

.urgency-subtitle {
    margin: 15px 0 0;
    font-size: 1rem;
    color: #333;
    font-weight: 400;
}

.urgency-modal-timer {
    padding: 0 20px 25px;
}

.modal-countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.modal-timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #b4cbee;
    border-radius: 12px;
    padding: 15px 12px;
    min-width: 70px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #E5E7EB;
    position: relative;
    overflow: hidden;
}

.modal-timer-unit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 193, 7, 0.05), transparent);
    animation: timerShimmer 2s infinite;
}

.modal-timer-number {
    color: #1a1a1a;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.modal-timer-label {
    color: #666;
    font-size: 0.75rem;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    margin-top: 5px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.modal-timer-separator {
    color: #999;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 5px;
    animation: separatorBlink 1s infinite;
}

.urgency-modal-body {
    padding: 0 25px 25px;
    text-align: center;
    color: #1a1a1a;
}

.urgency-modal-body h4 {
    margin: 0 0 20px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
}

.modal-scarcity {
    background: #FFF9E6;
    color: #1a1a1a;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    animation: scarcityPulse 2s infinite;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    border: 1px solid #FFE066;
}

.modal-scarcity p {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.modal-price {
    margin-bottom: 25px;
    padding: 20px;
    background: #f1ba05;
    border-radius: 12px;
    border: none;
    position: relative;
    overflow: hidden;
}

.modal-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 193, 7, 0.05), transparent);
    animation: priceGlow 3s infinite;
}

.free-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a1a1a;
    display: block;
    margin-bottom: 5px;
    animation: freePriceGlow 2s infinite;
}

.current-price {
    font-size: 2rem;
    font-weight: bold;
    color: #1a1a1a;
    margin-right: 15px;
}

.original-price {
    font-size: 1.3rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 15px;
}

.save-amount {
    background: linear-gradient(135deg, #FFE066, #FFF9E6);
    color: #1a1a1a;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.urgency-modal-footer {
    padding: 0 25px 30px;
    text-align: center;
}

.modal-cta-btn {
    background: #0066FF;
    border: none;
    color: #fff;
    padding: 18px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 12px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
    animation: buttonPulse 3s infinite;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.modal-cta-btn:hover {
    background: #0052CC;
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.35);
}

.modal-cta-full {
    background: #6c757d !important;
    cursor: not-allowed !important;
    animation: none !important;
}

.modal-cta-full:hover {
    transform: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.modal-guarantee {
    margin: 20px 0 0;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes timerShimmer {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

@keyframes separatorBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

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

@keyframes priceGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes freePriceGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(0, 102, 255, 0.2);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 102, 255, 0.4);
    }
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0, 102, 255, 0.4);
    }
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
    .urgency-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .urgency-modal-header h3 {
        font-size: 1.5rem;
    }

    .urgency-subtitle {
        font-size: 1.1rem;
    }

    .modal-timer-unit {
        min-width: 60px;
        padding: 12px 8px;
    }

    .modal-timer-number {
        font-size: 1.5rem;
    }

    .modal-timer-label {
        font-size: 0.65rem;
    }

    .modal-timer-separator {
        font-size: 1.5rem;
        margin: 0 2px;
    }

    .urgency-modal-body h4 {
        font-size: 1.2rem;
    }

    .modal-scarcity p {
        font-size: 0.9rem;
    }

    .free-price {
        font-size: 2rem;
    }

    .current-price {
        font-size: 1.6rem;
    }

    .original-price {
        font-size: 1.1rem;
    }

    .save-amount {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .modal-cta-btn {
        padding: 15px 25px;
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .modal-guarantee {
        font-size: 0.8rem;
    }
}

