/* Subscription & Pricing Styles */

/* Custom Pricing Grid - Equal Width Cards */
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 0 auto;
    max-width: 1200px;
}

.pricing-grid-item {
    flex: 0 0 calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
    min-width: 300px;
    display: flex;
}

@media (max-width: 992px) {
    .pricing-grid-item {
        flex: 0 0 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .pricing-grid-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.pricing-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
    border: 3px solid var(--secondary-color);
    position: relative;
}

.featured-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(52, 179, 241, 0.4);
}

.pricing-header {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--light-color);
}

.plan-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.price-display {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 1rem 0;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.price {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--dark-color);
}

.price-period {
    color: #666;
    font-size: 1rem;
    margin: 0.5rem 0 0 0;
}

.savings-text {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.pricing-features {
    flex: 1;
    padding: 2rem 0;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.75rem 0;
    font-size: 1rem;
    color: var(--dark-color);
}

.feature-list i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.pricing-action {
    margin-top: auto;
    padding-top: 1.5rem;
}

/* Plan-specific colors */
.free-trial .pricing-header .badge {
    background-color: #28a745;
}

.free-trial:hover {
    border-color: #28a745;
}

.monthly-plan .pricing-header .badge {
    background-color: var(--primary-color);
}

.monthly-plan:hover {
    border-color: var(--primary-color);
}

.yearly-plan .pricing-header .badge {
    background-color: var(--secondary-color);
}

.yearly-plan:hover {
    border-color: var(--secondary-color);
}

/* Feature boxes */
.feature-box {
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
}

/* Subscription badges */
.badge {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Success/Cancel pages */
.success-icon, .cancel-icon {
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.subscription-details {
    background: var(--light-color);
    border-radius: 10px;
}

/* Manage subscription page */
.progress {
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: width 0.6s ease;
}

/* Checkout button loading state */
.checkout-button[disabled] {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 992px) {
    .price {
        font-size: 3rem;
    }
    
    .pricing-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .price {
        font-size: 2.5rem;
    }
    
    .plan-name {
        font-size: 1.5rem;
    }
    
    .featured-badge {
        top: 10px;
        right: 10px;
        font-size: 0.75rem;
        padding: 6px 15px;
    }
}

/* Animation for pricing cards */
.pricing-card {
    animation: fadeInUp 0.6s ease;
}

.pricing-card:nth-child(1) {
    animation-delay: 0.1s;
}

.pricing-card:nth-child(2) {
    animation-delay: 0.2s;
}

.pricing-card:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure cards are same height */
.pricing-grid .pricing-card {
    width: 100%;
}

