/* Subscription Management Page Styles */

/* Page Header */
.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Current Plan Section */
.current-plan-section {
    margin-bottom: 48px;
}

.current-plan-card {
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.current-plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
}

.plan-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
}

.plan-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.plan-info h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.plan-info p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
}

.plan-status {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

.billing-cycle {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: capitalize;
}

/* Plan Usage */
.plan-usage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.usage-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.usage-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.usage-bar {
    height: 8px;
    background: rgba(55, 65, 81, 0.5);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.usage-fill {
    height: 100%;
    background: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.usage-text {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: right;
}

/* Benefits Section */
.benefits-section {
    margin-bottom: 48px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 32px 0;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.benefit-card {
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: #3B82F6;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin: 0 auto 16px auto;
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.benefit-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Plans Section */
.plans-section {
    margin-bottom: 48px;
}

.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.toggle-label.active {
    color: var(--text-primary);
}

.toggle-switch {
    width: 48px;
    height: 24px;
    background: rgba(55, 65, 81, 0.5);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-switch.active {
    background: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
}

.toggle-slider {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(24px);
}

.discount-badge {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.plan-card {
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: #3B82F6;
}

.plan-card.popular {
    border-color: #3B82F6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.plan-card.popular::before {
    content: 'Most Popular';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 0 0 8px 8px;
}

.plan-card-header {
    text-align: center;
    margin-bottom: 24px;
}

.plan-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin: 0 auto 16px auto;
}

.plan-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.plan-card-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
}

.plan-pricing {
    text-align: center;
    margin-bottom: 24px;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.plan-period {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
}

.plan-savings {
    font-size: 0.875rem;
    color: #10B981;
    font-weight: 500;
}

.plan-features {
    margin-bottom: 24px;
}

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

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.plan-features li i {
    color: #10B981;
    font-size: 12px;
    width: 16px;
    text-align: center;
}

.plan-actions {
    text-align: center;
}

.upgrade-btn {
    background: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.contact-sales-btn {
    background: transparent;
    color: #3B82F6;
    border: 2px solid #3B82F6;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-sales-btn:hover {
    background: #3B82F6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Comparison Table */
.comparison-section {
    margin-bottom: 48px;
}

.comparison-table-container {
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: rgba(55, 65, 81, 0.5);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.comparison-table td {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

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

.feature-check {
    color: #10B981;
    font-weight: 600;
}

.feature-cross {
    color: #EF4444;
    font-weight: 600;
}

/* FAQ Section */
.faq-section {
    margin-bottom: 48px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(55, 65, 81, 0.3);
}

.faq-question h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.faq-question i {
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 24px 20px 24px;
    max-height: 200px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Upgrade Modal */
.upgrade-summary {
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(55, 65, 81, 0.3);
    border-radius: 8px;
}

.upgrade-plan-info h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.upgrade-plan-info p {
    color: var(--text-secondary);
    margin: 0 0 16px 0;
}

.upgrade-pricing {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.upgrade-pricing .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.upgrade-pricing .period {
    color: var(--text-secondary);
}

.upgrade-features {
    margin-bottom: 24px;
}

.upgrade-features h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

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

.upgrade-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.upgrade-features li i {
    color: #10B981;
    font-size: 12px;
    width: 16px;
    text-align: center;
}

.billing-cycle-selection h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

.billing-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.billing-option {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.billing-option:hover {
    border-color: #3B82F6;
    background: rgba(59, 130, 246, 0.05);
}

.billing-option input[type="radio"] {
    margin: 0 12px 0 0;
    accent-color: #3B82F6;
}

.billing-option input[type="radio"]:checked + .option-content {
    color: var(--text-primary);
}

.billing-option:has(input:checked) {
    border-color: #3B82F6;
    background: rgba(59, 130, 246, 0.1);
}

.option-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.option-label {
    font-weight: 500;
    color: var(--text-primary);
}

.option-price {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.option-savings {
    font-size: 0.75rem;
    color: #10B981;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .plan-header {
        flex-direction: column;
        text-align: center;
    }
    
    .plan-usage {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .billing-toggle {
        flex-direction: column;
        gap: 12px;
    }
    
    .comparison-table-container {
        overflow-x: auto;
    }
    
    .comparison-table {
        min-width: 600px;
    }
}
