/* Kerjakode Countdown Promo Popup - Urgency Marketing */

.kk-countdown-promo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000002;
    display: none;
    animation: fadeIn 0.3s ease;
}

.kk-countdown-promo.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Overlay */
.kk-countdown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Modal */
.kk-countdown-modal {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcfc 100%);
    border-radius: 24px;
    padding: 40px 32px;
    max-width: 480px;
    width: calc(100% - 32px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3),
                0 12px 30px rgba(13, 148, 137, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 1);
    border: 2px solid rgba(13, 148, 137, 0.2);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Close Button */
.kk-countdown-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #EF4444;
}

.kk-countdown-close:hover {
    background: #EF4444;
    color: white;
    transform: rotate(90deg);
}

/* Icon */
.kk-countdown-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #0D9489 0%, #14B8A6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 148, 137, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(13, 148, 137, 0);
    }
}

/* Title */
.kk-countdown-title {
    font-size: 24px;
    font-weight: 800;
    color: #1F2937;
    margin: 0 0 20px;
    line-height: 1.3;
}

/* Discount Badge */
.kk-countdown-discount {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    padding: 12px 24px;
    border-radius: 50px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.kk-discount-badge {
    font-size: 36px;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.kk-discount-text {
    font-size: 18px;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
}

/* Subtitle */
.kk-countdown-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #6B7280;
    margin: 0 0 16px;
}

/* Timer */
.kk-countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
}

.kk-timer-box {
    background: linear-gradient(180deg, #F3F4F6 0%, #E5E7EB 100%);
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 90px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1),
                inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.kk-timer-value {
    display: block;
    font-size: 32px;
    font-weight: 900;
    color: #0D9489;
    line-height: 1;
    margin-bottom: 4px;
    font-family: 'Courier New', monospace;
}

.kk-timer-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kk-timer-separator {
    font-size: 28px;
    font-weight: 700;
    color: #9CA3AF;
}

/* CTA Button */
.kk-countdown-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    margin-bottom: 16px;
}

.kk-countdown-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
}

/* Note */
.kk-countdown-note {
    font-size: 13px;
    color: #9CA3AF;
    margin: 0;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .kk-countdown-modal {
        padding: 32px 24px;
        max-width: calc(100% - 24px);
    }
    
    .kk-countdown-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 16px;
    }
    
    .kk-countdown-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .kk-countdown-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .kk-discount-badge {
        font-size: 28px;
    }
    
    .kk-discount-text {
        font-size: 16px;
    }
    
    .kk-countdown-subtitle {
        font-size: 14px;
    }
    
    .kk-timer-box {
        padding: 12px 16px;
        min-width: 70px;
    }
    
    .kk-timer-value {
        font-size: 24px;
    }
    
    .kk-timer-label {
        font-size: 10px;
    }
    
    .kk-timer-separator {
        font-size: 20px;
    }
    
    .kk-countdown-cta {
        padding: 14px 28px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .kk-countdown-modal {
        padding: 28px 20px;
    }
    
    .kk-countdown-title {
        font-size: 18px;
    }
    
    .kk-timer-box {
        padding: 10px 12px;
        min-width: 60px;
    }
    
    .kk-timer-value {
        font-size: 20px;
    }
    
    .kk-countdown-cta {
        padding: 12px 24px;
        font-size: 14px;
    }
}
