/* Subscription Plans Styles */
.subscription-plans-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header Section */
.plans-header {
    text-align: center;
    margin-bottom: 60px;
}

.plans-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plans-subtitle {
    font-size: 1.3rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

/* Plan Card */
.plan-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Plan Badges */
.plan-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-badge:not(.popular):not(.premium) {
    background: #95a5a6;
    color: white;
}

.plan-badge.popular {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.plan-badge.premium {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

/* Plan Header */
.plan-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.plan-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.plan-price {
    margin-bottom: 10px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: #2c3e50;
}

.price-currency {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-left: 5px;
}

.plan-period {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 15px;
}

/* Discount Info */
.discount-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.original-price {
    text-decoration: line-through;
    color: #95a5a6;
    font-size: 0.9rem;
}

.discount-percent {
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.savings-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #27ae60;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Plan Features */
.plan-features {
    margin-bottom: 30px;
}

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

.plan-features li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 0.95rem;
    line-height: 1.4;
}

.plan-features i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.plan-features .fa-check {
    color: #27ae60;
}

.plan-features .fa-times {
    color: #e74c3c;
}

.plan-features .fa-gift {
    color: #e67e22;
}

.plan-features .fa-calculator {
    color: #3498db;
}

.plan-features strong {
    color: #2c3e50;
}

/* Plan Actions */
.plan-actions {
    text-align: center;
}

.plan-btn {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.plan-btn.free-btn {
    background: #ecf0f1;
    color: #7f8c8d;
}

.plan-btn.free-btn:hover {
    background: #bdc3c7;
    color: white;
}

.plan-btn.primary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.plan-btn.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Purchased Button */
.plan-btn.purchased-btn {
    background: #27ae60;
    color: white;
    cursor: not-allowed;
    opacity: 0.8;
}

.plan-btn.purchased-btn:hover {
    transform: none;
    box-shadow: none;
}

/* Upgrade Button */
.plan-btn.upgrade-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.plan-btn.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 87, 108, 0.3);
}

/* Higher Plan Button */
.plan-btn.higher-plan-btn {
    background: #95a5a6;
    color: white;
    cursor: not-allowed;
    opacity: 0.7;
}

.plan-btn.higher-plan-btn:hover {
    transform: none;
    box-shadow: none;
}

/* Features Comparison */
.features-comparison {
    margin-bottom: 80px;
}

.features-comparison h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 40px;
}

.comparison-table {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
}

.comparison-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.comparison-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #ecf0f1;
    color: #2c3e50;
    font-size: 1rem;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) {
    background: #f8f9fa;
}

/* FAQ Section */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 40px;
}

.faq-items {
    display: grid;
    gap: 25px;
}

.faq-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #667eea;
}

.faq-item h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.faq-item p {
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

/* Individual Plan Styling */
.free-plan {
    border-color: #bdc3c7;
}

.monthly-plan {
    border-color: #3498db;
    transform: scale(1.05);
}

.monthly-plan:hover {
    transform: scale(1.05) translateY(-10px);
}

.quarterly-plan {
    border-color: #9b59b6;
}

.yearly-plan {
    border-color: #e67e22;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .monthly-plan {
        transform: scale(1);
    }
    
    .monthly-plan:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .subscription-plans-container {
        padding: 20px 15px;
    }
    
    .plans-title {
        font-size: 2.2rem;
    }
    
    .plans-subtitle {
        font-size: 1.1rem;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .plan-card {
        padding: 25px 20px;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .features-comparison h2,
    .faq-section h2 {
        font-size: 2rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 15px 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .plans-title {
        font-size: 1.8rem;
    }
    
    .plan-name {
        font-size: 1.5rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .plan-btn {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .faq-item {
        padding: 20px;
    }
    
    .faq-item h3 {
        font-size: 1.1rem;
    }
}

/* Animation for plan cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plan-card {
    animation: fadeInUp 0.6s ease-out;
}

.plan-card:nth-child(1) { animation-delay: 0.1s; }
.plan-card:nth-child(2) { animation-delay: 0.2s; }
.plan-card:nth-child(3) { animation-delay: 0.3s; }
.plan-card:nth-child(4) { animation-delay: 0.4s; }

/* Loading state for buttons */
.plan-btn.loading {
    position: relative;
    color: transparent;
}

.plan-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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