/* Responsive Modern Pricing Section */
.pricing {
    padding: 100px 1.5rem;
    background: linear-gradient(135deg, var(--background-light-color) 0%, white 100%);
    position: relative;
    overflow: hidden;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.1;
}

.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-header h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.pricing-header p {
    color: var(--text-light-color);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Toggle Wrapper */
.pricing-toggle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto 3rem;
    padding: 0.5rem;
    background: var(--background-light-color);
    border-radius: 50px;
    width: fit-content;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.toggle-button {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    color: var(--text-light-color);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.toggle-button.active {
    color: var(--text-color);
    font-weight: 600;
}

.toggle-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: white;
    border-radius: 25px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.toggle-background.yearly {
    transform: translateX(100%);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.pricing-card.popular {
    border-color: var(--primary-color);
    transform: translateY(-8px);
}

.pricing-card.popular::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.plan-name {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.plan-price {
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
}

.plan-price span {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.plan-period {
    color: var(--text-light-color);
    margin-bottom: 1.5rem;
}

.plan-features {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.plan-feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.plan-feature i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.plan-cta {
    margin-top: 2rem;
}

.plan-button {
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-button.primary {
    background: var(--primary-color);
    color: white;
}

.plan-button.secondary {
    background: var(--background-light-color);
    color: var(--text-color);
}

.plan-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .pricing {
        padding: 80px 1rem;
    }

    .pricing-header h2 {
        font-size: 1.8rem;
    }

    .pricing-header p {
        font-size: 0.95rem;
    }

    .plan-price {
        font-size: 2.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .pricing-header h2 {
        font-size: 2.2rem;
    }

    .pricing-header p {
        font-size: 1rem;
    }

    .plan-price {
        font-size: 2.8rem;
    }
}
