/* 🚀 PREMIUM BUY NOW BUTTONS - MATCHING THE WOW FACTOR TILE */

/* Ultra Premium Buy Now Button */
.btn-buy-now {
    background: linear-gradient(145deg, #ff0844 0%, #ff6b35 25%, #ffb199 50%, #ff6b35 75%, #ff0844 100%) !important;
    background-size: 300% 300% !important;
    animation: buttonGradientFlow 4s ease-in-out infinite !important;
    color: #ffffff !important;
    border: none !important;
    padding: 1.2rem 2.5rem !important;
    border-radius: 20px !important;
    font-weight: 900 !important;
    font-size: 1.1rem !important;
    box-shadow: 
        0 15px 45px rgba(255, 8, 68, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
    white-space: nowrap !important;
    min-width: auto !important;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(255, 255, 255, 0.2) !important;
    transform: translateZ(0) !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
}

@keyframes buttonGradientFlow {
    0%, 100% { background-position: 0% 50%; }
    33% { background-position: 100% 50%; }
    66% { background-position: 50% 100%; }
}

/* Glowing Border Effect */
.btn-buy-now::before {
    content: "" !important;
    position: absolute !important;
    top: -2px !important;
    left: -2px !important;
    right: -2px !important;
    bottom: -2px !important;
    background: linear-gradient(45deg, #ff0844, #ffb199, #ff6b35, #ff0844, #ffb199) !important;
    background-size: 400% 400% !important;
    border-radius: 22px !important;
    z-index: -1 !important;
    animation: borderGlowButton 3s ease-in-out infinite !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

@keyframes borderGlowButton {
    0%, 100% { 
        background-position: 0% 50%;
        filter: blur(0px);
    }
    50% { 
        background-position: 100% 50%;
        filter: blur(2px);
    }
}

.btn-buy-now:hover::before {
    opacity: 1 !important;
}

/* Floating Particles on Hover */
.btn-buy-now::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.2) 1px, transparent 1px) !important;
    background-size: 30px 30px, 50px 50px !important;
    animation: floatingButtonParticles 6s linear infinite !important;
    pointer-events: none !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

@keyframes floatingButtonParticles {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-10px) rotate(360deg); }
}

.btn-buy-now:hover::after {
    opacity: 1 !important;
}

.btn-buy-now:hover {
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 
        0 25px 60px rgba(255, 8, 68, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 50px rgba(255, 107, 53, 0.3) !important;
    animation-duration: 2s !important;
}

.btn-buy-now:active {
    transform: translateY(-2px) scale(1.02) !important;
    transition: all 0.1s ease !important;
}

/* Premium Icon Styling */
.btn-buy-now .btn-icon-buy {
    font-size: 1.4rem !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
    position: relative !important;
    z-index: 2 !important;
    animation: iconSparkle 3s ease-in-out infinite !important;
}

@keyframes iconSparkle {
    0%, 100% { 
        transform: rotate(0deg) scale(1);
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    }
    25% { 
        transform: rotate(5deg) scale(1.1);
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
    }
    75% { 
        transform: rotate(-3deg) scale(1.05);
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
    }
}

.btn-buy-now .btn-text {
    font-weight: 900 !important;
    letter-spacing: 0.05em !important;
    position: relative !important;
    z-index: 2 !important;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.4),
        0 0 8px rgba(255, 255, 255, 0.2) !important;
}

/* Premium Buy Now Login Button */
.btn-buy-now-login {
    background: linear-gradient(145deg, #007aff 0%, #5856d6 25%, #af52de 50%, #5856d6 75%, #007aff 100%) !important;
    background-size: 300% 300% !important;
    animation: loginButtonGradient 4s ease-in-out infinite !important;
    color: #ffffff !important;
    border: none !important;
    padding: 1.2rem 2.5rem !important;
    border-radius: 20px !important;
    font-weight: 900 !important;
    font-size: 1.1rem !important;
    box-shadow: 
        0 15px 45px rgba(0, 122, 255, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
    white-space: nowrap !important;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(255, 255, 255, 0.2) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
}

@keyframes loginButtonGradient {
    0%, 100% { background-position: 0% 50%; }
    33% { background-position: 100% 50%; }
    66% { background-position: 50% 100%; }
}

.btn-buy-now-login:hover {
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 
        0 25px 60px rgba(0, 122, 255, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 50px rgba(88, 86, 214, 0.3) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    animation-duration: 2s !important;
}

/* Premium Modal Confirm Button */
.btn-buy-now-confirm {
    background: linear-gradient(145deg, #34c759 0%, #30d158 25%, #32d74b 50%, #30d158 75%, #34c759 100%) !important;
    background-size: 300% 300% !important;
    animation: confirmButtonGradient 4s ease-in-out infinite !important;
    color: #ffffff !important;
    border: none !important;
    padding: 1.5rem 3rem !important;
    border-radius: 20px !important;
    font-weight: 900 !important;
    font-size: 1.2rem !important;
    box-shadow: 
        0 20px 50px rgba(52, 199, 89, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    min-width: 280px !important;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(255, 255, 255, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

@keyframes confirmButtonGradient {
    0%, 100% { background-position: 0% 50%; }
    33% { background-position: 100% 50%; }
    66% { background-position: 50% 100%; }
}

.btn-buy-now-confirm:hover:not(:disabled) {
    transform: translateY(-6px) scale(1.08) !important;
    box-shadow: 
        0 30px 70px rgba(52, 199, 89, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 60px rgba(48, 209, 88, 0.4) !important;
    animation-duration: 2s !important;
}

.btn-buy-now-confirm:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
    animation: none !important;
}

.btn-buy-now-confirm.enabled {
    animation: confirmPulseGlow 2s infinite !important;
}

@keyframes confirmPulseGlow {
    0%, 100% {
        box-shadow: 
            0 20px 50px rgba(52, 199, 89, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 25px 60px rgba(52, 199, 89, 0.6),
            0 0 0 2px rgba(255, 255, 255, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            0 0 40px rgba(52, 199, 89, 0.3);
    }
}

/* Action Button Group Enhancement */
.action-buttons-group {
    display: flex !important;
    gap: 1.5rem !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .btn-buy-now,
    .btn-buy-now-login {
        width: 100% !important;
        justify-content: center !important;
        padding: 1rem 2rem !important;
        font-size: 1rem !important;
        max-width: 300px !important;
    }
    
    .action-buttons-group {
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100% !important;
    }
    
    .btn-buy-now-confirm {
        width: 100% !important;
        max-width: 280px !important;
        font-size: 1.1rem !important;
        padding: 1.25rem 2rem !important;
    }
}

@media (max-width: 480px) {
    .btn-buy-now .btn-text,
    .btn-buy-now-login .btn-text {
        font-size: 0.9rem !important;
    }
    
    .btn-buy-now .btn-icon-buy {
        font-size: 1.2rem !important;
    }
    
    .btn-buy-now-confirm {
        font-size: 1rem !important;
        padding: 1rem 1.5rem !important;
        min-width: 240px !important;
    }
}

/* Loading Spinner Enhancement */
.loading-spinner {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    border-top-color: white !important;
    animation: premiumSpin 0.8s ease-in-out infinite !important;
}

@keyframes premiumSpin {
    to { transform: rotate(360deg); }
}

/* Performance Optimizations */
.btn-buy-now,
.btn-buy-now-login,
.btn-buy-now-confirm {
    will-change: transform !important;
    backface-visibility: hidden !important;
    perspective: 1000px !important;
}

/* Accessibility - Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .btn-buy-now,
    .btn-buy-now-login,
    .btn-buy-now-confirm,
    .btn-buy-now::before,
    .btn-buy-now::after,
    .btn-buy-now .btn-icon-buy {
        animation: none !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    }
}

/* Focus States for Accessibility */
.btn-buy-now:focus,
.btn-buy-now-login:focus,
.btn-buy-now-confirm:focus {
    outline: 3px solid rgba(255, 255, 255, 0.6) !important;
    outline-offset: 4px !important;
}
