/* 🚀 ULTRA MODERN BUY NOW ENHANCED STYLES - COMPLETELY REDESIGNED */

/* Professional Buy Now Price Item in Domain Info Section */
.buy-now-price-item {
    grid-column: 1 / -1; /* Full width */
    margin: 1.5rem 0;
    order: -1; /* Display at top */
}

.buy-now-price-value {
    position: relative;
    background: linear-gradient(135deg, #ff3b30 0%, #ff6b35 25%, #ff8f00 50%, #ff6b35 75%, #ff3b30 100%);
    background-size: 200% 200%;
    animation: gradientShift 4s ease-in-out infinite;
    padding: 1.75rem 2rem;
    border-radius: 20px;
    border: none;
    box-shadow: 
        0 12px 40px rgba(255, 59, 48, 0.4),
        0 4px 12px rgba(255, 107, 53, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0); /* Hardware acceleration */
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.buy-now-price-value::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.buy-now-price-value::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.buy-now-price-value:hover::before {
    left: 100%;
}

.buy-now-price-value:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(255, 59, 48, 0.5),
        0 8px 20px rgba(255, 107, 53, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation-duration: 2s; /* Speed up animation on hover */
}

.buy-now-amount {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', roboto, sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.buy-now-badge {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.buy-now-badge::before {
    content: "💎";
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: sparkle 2s ease-in-out infinite;
}

.buy-now-badge::after {
    content: "⚡";
    font-size: 1.2rem;
    opacity: 0.8;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

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

/* Override the label for Buy Now Price */
.buy-now-price-item .label {
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.buy-now-price-item .label::before {
    content: "🚀";
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Ultra Modern Buy Now Button Styles */
.btn-buy-now {
    background: linear-gradient(135deg, #ff3b30 0%, #ff6b35 25%, #ff8f00 50%, #ff6b35 75%, #ff3b30 100%) !important;
    background-size: 200% 200% !important;
    animation: buttonGradient 3s ease-in-out infinite !important;
    color: white !important;
    border: none !important;
    padding: 1rem 2rem !important;
    border-radius: 16px !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    box-shadow: 
        0 10px 30px rgba(255, 59, 48, 0.4),
        0 4px 12px rgba(255, 107, 53, 0.2),
        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.75rem !important;
    white-space: nowrap !important;
    min-width: auto !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    transform: translateZ(0) !important; /* Hardware acceleration */
}

@keyframes buttonGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.btn-buy-now::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.btn-buy-now::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.btn-buy-now:hover::before {
    left: 100%;
}

.btn-buy-now:hover {
    transform: translateY(-3px) scale(1.03) !important;
    box-shadow: 
        0 15px 40px rgba(255, 59, 48, 0.5),
        0 8px 20px rgba(255, 107, 53, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    animation-duration: 1.5s !important;
}

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

.btn-buy-now .btn-icon-buy {
    font-size: 1.3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 2;
    animation: iconBounce 2s ease-in-out infinite;
}

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

.btn-buy-now .btn-text {
    font-weight: 800;
    letter-spacing: 0.03em;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Buy Now Login Button */
.btn-buy-now-login {
    background: linear-gradient(135deg, #007aff 0%, #5856d6 50%, #af52de 100%) !important;
    color: white !important;
    border: none !important;
    padding: 1rem 2rem !important;
    border-radius: 16px !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    box-shadow: 
        0 10px 30px rgba(0, 122, 255, 0.4),
        0 4px 12px rgba(88, 86, 214, 0.2),
        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.75rem !important;
    white-space: nowrap !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.btn-buy-now-login:hover {
    transform: translateY(-3px) scale(1.03) !important;
    box-shadow: 
        0 15px 40px rgba(0, 122, 255, 0.5),
        0 8px 20px rgba(88, 86, 214, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    text-decoration: none !important;
}

/* Buy Now Modal Enhancements */
.buy-now-modal-content {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%) !important;
    border: 2px solid rgba(255, 59, 48, 0.3) !important;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.8),
        0 10px 30px rgba(255, 59, 48, 0.2) !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    backdrop-filter: blur(20px) !important;
}

.buy-now-header {
    background: linear-gradient(135deg, #ff3b30 0%, #ff6b35 25%, #ff8f00 50%, #ff6b35 75%, #ff3b30 100%) !important;
    background-size: 200% 200% !important;
    animation: headerGradient 4s ease-in-out infinite !important;
    color: white !important;
    border-bottom: none !important;
    padding: 2rem !important;
    position: relative !important;
    overflow: hidden !important;
}

@keyframes headerGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.buy-now-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.buy-now-header h3 {
    color: white !important;
    font-weight: 900 !important;
    font-size: 1.75rem !important;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4) !important;
    position: relative !important;
    z-index: 2 !important;
}

.buy-now-domain-info {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    margin: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.buy-now-domain-name {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.buy-now-domain-category {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 600;
}

.buy-now-price-display {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.1) 0%, rgba(255, 107, 53, 0.1) 50%, rgba(255, 143, 0, 0.1) 100%);
    border-radius: 20px;
    margin: 2rem 1.5rem;
    border: 2px solid rgba(255, 59, 48, 0.2);
    position: relative;
    overflow: hidden;
}

.buy-now-price-display::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff3b30, #ff6b35, #ff8f00, #ff6b35, #ff3b30);
    background-size: 200% 100%;
    animation: borderFlow 3s ease-in-out infinite;
}

@keyframes borderFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.buy-now-price-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    font-weight: 700;
}

.buy-now-price-amount {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', roboto, sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: #ff3b30;
    text-shadow: 0 4px 12px rgba(255, 59, 48, 0.4);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.buy-now-price-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    font-weight: 500;
}

.btn-buy-now-confirm {
    background: linear-gradient(135deg, #34c759 0%, #30d158 50%, #32d74b 100%) !important;
    color: white !important;
    border: none !important;
    padding: 1.25rem 2.5rem !important;
    border-radius: 16px !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    box-shadow: 
        0 12px 35px rgba(52, 199, 89, 0.4),
        0 4px 12px rgba(48, 209, 88, 0.2),
        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: 250px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
}

.btn-buy-now-confirm::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-buy-now-confirm:hover:not(:disabled)::before {
    left: 100%;
}

.btn-buy-now-confirm:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.03) !important;
    box-shadow: 
        0 18px 50px rgba(52, 199, 89, 0.5),
        0 8px 20px rgba(48, 209, 88, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

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

.btn-buy-now-confirm.enabled {
    animation: confirmPulse 2s infinite;
}

@keyframes confirmPulse {
    0%, 100% {
        box-shadow: 
            0 12px 35px rgba(52, 199, 89, 0.4),
            0 4px 12px rgba(48, 209, 88, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 18px 50px rgba(52, 199, 89, 0.6),
            0 8px 20px rgba(48, 209, 88, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

/* Action Buttons Group Enhancement */
.action-buttons-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .buy-now-amount {
        font-size: 2rem;
    }
    
    .buy-now-price-amount {
        font-size: 2.8rem;
    }
    
    .action-buttons-group {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .btn-buy-now,
    .btn-buy-now-login {
        width: 100% !important;
        justify-content: center !important;
        padding: 1rem 1.5rem !important;
    }
    
    .buy-now-header h3 {
        font-size: 1.5rem !important;
    }
    
    .buy-now-domain-name {
        font-size: 1.4rem;
    }
    
    .buy-now-price-display {
        padding: 2rem 1.5rem;
        margin: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .buy-now-amount {
        font-size: 1.75rem;
    }
    
    .buy-now-badge {
        font-size: 0.9rem;
    }
    
    .buy-now-price-amount {
        font-size: 2.5rem;
    }
    
    .buy-now-price-display {
        padding: 1.5rem 1rem;
    }
    
    .buy-now-header {
        padding: 1.5rem !important;
    }
    
    .btn-buy-now-confirm {
        min-width: 200px !important;
        font-size: 1rem !important;
        padding: 1rem 2rem !important;
    }
}

/* Ultra Modern Glow Effect for the entire Buy Now section */
.buy-now-price-item {
    animation: sectionGlow 4s ease-in-out infinite;
}

@keyframes sectionGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255, 59, 48, 0.2));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 59, 48, 0.4));
    }
}

/* Performance optimizations */
.buy-now-price-value,
.btn-buy-now,
.btn-buy-now-confirm {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

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

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