:root {
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --primary-light: #bbf7d0;
    --primary-extra-light: #dcfce7;
    --accent: #6366f1;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --background: #f9fafb;
    --card-bg: #ffffff;
    --border-radius: 16px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

.pricing-container {
    margin: 0 auto;
    width: 100%;
}

.pricing-section {
    padding: 20px 0;
}

.pricing-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeIn 0.8s ease-out;
}

.pricing-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-header p {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: 30px;
}

.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-weight: 500;
    color: var(--text-medium);
    background: white;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow);
    width: fit-content;
    margin: 0 auto;
}

.toggle-buttons {
    position: relative;
    display: inline-block;
}

.toggle-checkbox {
    display: none;
}

.toggle-label {
    display: block;
    width: 60px;
    height: 32px;
    background-color: var(--primary-light);
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-handle {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-checkbox:checked + .toggle-label {
    background-color: var(--primary);
}

.toggle-checkbox:checked + .toggle-label .toggle-handle {
    transform: translateX(28px);
}

.discount-badge {
    background-color: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-left: 5px;
    font-weight: 600;
}

.pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.plan-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    opacity: 0;
    transform: translateY(20px);
}

.plan-card.animate-in {
    animation: cardSlideIn 0.6s forwards;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.plan-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.03);
    z-index: 2;
}

.plan-card.featured:hover {
    transform: scale(1.03) translateY(-10px);
}

.plan-card.price-changing {
    animation: priceChange 0.3s ease;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.plan-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.plan-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-extra-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--primary);
    font-size: 1.5rem;
}

.plan-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 10px;
    transition: var(--transition);
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

.price .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 4px;
}

.period {
    font-size: 1rem;
    color: var(--text-light);
}

.plan-description {
    color: var(--text-light);
    font-size: 0.9rem;
}

.plan-features {
    flex-grow: 1;
    margin-bottom: 25px;
}

.plan-features ul {
    list-style: none;
}

.plan-features li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-medium);
    transition: var(--transition);
}

.plan-features li:hover {
    transform: translateX(5px);
}

.plan-features i {
    margin-right: 10px;
    font-size: 1.1rem;
    transition: var(--transition);
}

.plan-features .fa-check-circle {
    color: var(--primary);
}

.plan-features .fa-times-circle {
    color: #ef4444;
}

.plan-features li.disabled {
    color: var(--text-light);
}

.plan-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.plan-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.plan-button:hover:before {
    left: 100%;
}

.plan-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.plan-button.button-hover {
    animation: buttonPulse 0.5s;
}

.featured-button {
    background: var(--primary-dark);
}

.featured-button:hover {
    background: #15803d;
}

.pricing-footer {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    animation: fadeIn 1s ease-out;
}

.hidden {
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes cardSlideIn {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes priceChange {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes buttonPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .pricing-plans {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .plan-card.featured {
        transform: scale(1);
    }
    
    .plan-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .toggle-container {
        flex-wrap: wrap;
    }
}