/* Pricing Card Alignment Fix */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    min-height: 500px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(30, 58, 95, 0.15);
}

.plan-header {
    padding: 2rem 2rem 1rem 2rem;
    text-align: center;
    flex-shrink: 0;
}

.plan-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a5f !important;
    margin-bottom: 1rem;
}

.plan-price {
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e3a5f !important;
}

.price-period {
    color: #6c757d;
    font-size: 1rem;
    margin-left: 0.5rem;
}

.annual-savings {
    color: #198754;
    font-weight: 600;
    font-size: 0.9rem;
}

.plan-features {
    padding: 1rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.plan-features li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #2c3e50 !important;
    font-size: 0.95rem;
    line-height: 1.4;
    border-bottom: 1px solid rgba(108, 117, 125, 0.1);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #198754;
    font-weight: bold;
    font-size: 1.1rem;
}

.plan-action {
    padding: 1.5rem 2rem 2rem 2rem;
    flex-shrink: 0;
    margin-top: auto;
}

.plan-action .btn {
    width: 100%;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.plan-action .btn-primary {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    border: none;
    color: white !important;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
}

.plan-action .btn-primary::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: left 0.5s ease;
}

.plan-action .btn-primary:hover::before {
    left: 100%;
}

.plan-action .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.4);
    background: linear-gradient(135deg, #0f1d2f 0%, #1e3a5f 100%);
    color: white !important;
    text-decoration: none;
}

.plan-action .btn-outline {
    background: transparent;
    border: 2px solid #6c757d;
    color: #6c757d !important;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.2);
}

.plan-action .btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(108, 117, 125, 0.1), transparent);
    transition: left 0.5s ease;
}

.plan-action .btn-outline:hover::before {
    left: 100%;
}

.plan-action .btn-outline:hover {
    background: #6c757d;
    color: white !important;
    text-decoration: none;
}

/* Popular Plan Highlight */
.pricing-card.popular {
    border: 2px solid #1e3a5f;
    position: relative;
}

.pricing-card.popular::before {
    content: 'Most Popular';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: white;
    padding: 0.5rem 2rem;
    border-radius: 0 0 12px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card {
        min-height: 450px;
    }
    
    .plan-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }
    
    .plan-features {
        padding: 1rem 1.5rem;
    }
    
    .plan-action {
        padding: 1.5rem 1.5rem 2rem 1.5rem;
    }
    
    .price {
        font-size: 2rem;
    }
}

/* Ensure equal heights for all cards */
@media (min-width: 769px) {
    .pricing-grid {
        align-items: stretch;
    }
    
    .pricing-card {
        height: 100%;
    }
}