/* Pricing Page Styles */
.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: transparent; /* Remove background since page-wrapper handles it */
    min-height: auto; /* Changed from 100vh since page-wrapper handles this */
    color: var(--text-primary);
}

.pricing-hero {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-title {
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.1;
}

.pricing-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 0 auto 40px auto; /* Center the container */
    padding-top: 20px;
    max-width: 900px; /* Limit width to allow space for moving flowers */
    width: 90%; /* Reduce width to allow space for moving flowers */
}

.plan-card {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 30px 25px;
    border: 2px solid var(--primary-border);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    margin-top: 0;
    box-shadow: var(--shadow-md);
}

.plan-card[data-plan="super-fun"] {
    padding: 40px 25px;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-alpha-10) 0%, var(--primary-alpha-20) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-hover);
    box-shadow: var(--shadow-lg);
}

.plan-card:hover::before {
    opacity: 1;
}

.plan-card.active {
    border-color: var(--success-color);
    background: var(--primary-light);
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.plan-card.active::after {
    content: '✓';
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--success-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, var(--secondary-color), var(--secondary-hover));
    color: white;
    padding: 6px 18px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
    z-index: 10;
    white-space: nowrap;
}

.plan-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.plan-name {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 12px;
    text-transform: capitalize;
}

.plan-price {
    margin-bottom: 0;
}

.price-amount {
    font-size: 2.2rem;
    font-weight: bold;
    display: block;
}

.price-crossed {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1.5rem;
    margin-right: 10px;
}

.price-current {
    color: var(--success-color);
}

.price-period {
    font-size: 1rem;
    font-weight: normal;
    color: var(--text-secondary);
    margin-left: 4px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 6px 0;
}

.feature-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
    margin-right: 12px;
    flex-shrink: 0;
    margin-top: -2px;
}

.feature-icon.check {
    background: var(--success-color);
    color: white;
}

.feature-icon.cross {
    background: var(--gray-200);
    color: var(--text-muted);
}

.feature-text {
    flex: 1;
    line-height: 1.4;
    font-size: 0.9rem;
}

.pricing-action {
    text-align: center;
}

.pricing-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-hover));
    color: var(--text-dark);
    border: none;
    padding: 16px 45px;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: 'Nunito', system-ui, -apple-system, 'Noto Sans TC', Arial, sans-serif;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-btn:hover {
    background: linear-gradient(45deg, var(--primary-hover), var(--primary-accent));
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-hover);
}

.pricing-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .pricing-container {
        padding: 30px 15px;
    }
    
    .pricing-hero {
        margin-bottom: 30px;
    }
    
    .pricing-title {
        font-size: 2.2rem;
    }
    
    .pricing-plans {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 30px;
        width: 95%; /* Use more width on mobile since flowers are less prominent */
        max-width: none; /* Remove max-width constraint on mobile */
    }
    
    .plan-card {
        padding: 25px 20px;
        margin-top: 15px;
    }
    
    .plan-name {
        font-size: 1.6rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .pricing-btn {
        padding: 14px 35px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .pricing-title {
        font-size: 2rem;
    }
    
    .plan-name {
        font-size: 1.5rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .feature-text {
        font-size: 0.9rem;
    }
}

/* Transition Modal Styles */
.transition-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.transition-modal.show {
    opacity: 1;
    visibility: visible;
}

.transition-modal-content {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 40px 60px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-light);
}

.transition-modal.show .transition-modal-content {
    transform: scale(1);
}

.transition-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--primary-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.transition-message {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

@media (max-width: 480px) {
    .transition-modal-content {
        padding: 30px 40px;
        margin: 20px;
    }
    
    .transition-message {
        font-size: 1.1rem;
    }
}
