/**
 * ✅ ENHANCED PRICING STYLES
 * Responsive pricing cards with dynamic updates
 */

/* Billing period toggle improvements */
.price-toggle {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.toggle-option {
    padding: 12px 24px;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-option:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
}

.toggle-option.active {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    border-color: #00d4ff;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.savings-badge {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

/* Plan savings badge (on cards) - small conservative tag */
.plan-savings-badge {
    display: inline-block;
    margin-left: 6px;
    background: #ff6b35;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 15px rgba(255, 215, 0, 0.5);
    }
}

.plan-savings-badge i {
    font-size: 10px;
}

/* Price display improvements */
.plan-price {
    margin: 20px 0;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.price-period {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 200px;
}

/* Button states */
.cta-button {
    width: 100%;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: block;
}

.cta-button.cta-primary {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.cta-button.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.6);
}

.cta-button.cta-secondary {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.cta-button.cta-secondary:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
}

.cta-button.cta-disabled {
    background: rgba(100, 100, 100, 0.2);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    border: 2px solid rgba(100, 100, 100, 0.3);
}

.cta-button.cta-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Pricing card improvements */
.pricing-card {
    position: relative;
    background: rgba(10, 25, 47, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    min-width: 280px;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.pricing-card.popular {
    border-color: #00d4ff;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.pricing-card.popular::before {
    content: 'BEST VALUE';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: white;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.plan-header {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
}

.plan-name {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.plan-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .price-toggle {
        flex-direction: column;
        gap: 8px;
    }
    
    .toggle-option {
        width: 100%;
        justify-content: center;
    }
    
    .price-amount {
        font-size: 36px;
    }
    
    .pricing-card {
        min-width: 100%;
        margin-bottom: 20px;
    }
    
    .plan-savings-badge {
        top: 10px;
        right: 10px;
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* Pricing carousel */
.pricing-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
}

.pricing-carousel::-webkit-scrollbar {
    height: 8px;
}

.pricing-carousel::-webkit-scrollbar-track {
    background: rgba(0, 212, 255, 0.1);
    border-radius: 4px;
}

.pricing-carousel::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.5);
    border-radius: 4px;
}

.pricing-carousel::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.7);
}

/* Additional responsive improvements for toggle */
@media (max-width: 600px) {
    .price-toggle {
        gap: 8px;
        margin-top: 20px;
    }
    
    .toggle-option {
        padding: 10px 16px;
        font-size: 13px;
        flex: 1;
        min-width: 0;
        justify-content: center;
    }
    
    .savings-badge {
        padding: 2px 6px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .price-toggle {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 300px;
        margin: 20px auto 0;
    }
    
    .toggle-option {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (min-width: 1200px) {
    .pricing-carousel {
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
    }
}
