/* Pricing Page Styles */
.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.pricing-header h1 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.pricing-header p {
    font-size: 0.9rem;
    color: #64748b;
}

/* Grid layout - 4 cards in a row */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.pricing-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
    border: 2px solid var(--secondary);
    padding: 1.2rem;
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: white;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
}

.plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.plan-price {
    text-align: center;
    margin-bottom: 0.25rem;
}

.plan-price .amount {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary);
}

.plan-price .period {
    font-size: 0.7rem;
    font-weight: normal;
    color: #64748b;
}

.annual-price {
    text-align: center;
    font-size: 0.65rem;
    color: #10b981;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.plan-desc {
    font-size: 0.7rem;
    color: #64748b;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.4rem 0;
    font-size: 0.7rem;
    color: #475569;
}

.feature-list li svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.feature-list li.enabled svg {
    color: #10b981;
}

.feature-list li.disabled svg {
    color: #cbd5e1;
}

.feature-list li.disabled span {
    color: #94a3b8;
}

.btn-pricing {
    width: 100%;
    margin-top: 0.5rem;
    padding: 8px 12px;
    text-align: center;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.btn-pricing:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-pricing.outline {
    background: transparent;
    border: 1px solid var(--secondary);
    color: var(--secondary);
}

.btn-pricing.outline:hover {
    background: var(--secondary);
    color: white;
}

.btn-login-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-login-header:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.loading-plans {
    text-align: center;
    padding: 3rem;
    color: #64748b;
    grid-column: 1 / -1;
}

.loading-plans .spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Current Plan Badge */
.current-plan-badge {
    display: inline-block;
    background: #10b981;
    color: white;
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 8px;
    text-align: center;
}

/* Current plan ribbon */
.current-plan-ribbon {
    position: absolute;
    top: -8px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    z-index: 1;
}

/* Button variations */
.btn-pricing.upgrade {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.btn-pricing.downgrade {
    background: #f59e0b;
    color: white;
}

.btn-pricing.downgrade:hover {
    background: #d97706;
}

.btn-pricing.current {
    background: #10b981;
    color: white;
    cursor: default;
    opacity: 0.8;
}

.btn-pricing.current:hover {
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .pricing-container {
        padding: 1rem;
    }
    
    .pricing-header h1 {
        font-size: 1.5rem;
    }
    
    .pricing-header p {
        font-size: 0.85rem;
    }
}

@media (max-width: 550px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pricing-container {
        padding: 1rem;
    }
    
    .pricing-header h1 {
        font-size: 1.3rem;
    }
    
    .pricing-card {
        padding: 1rem;
    }
    
    .plan-price .amount {
        font-size: 1.4rem;
    }
}