/* Pricing-specific styles that extend the existing profile design system */

/* Pricing comparison table */
.pricing-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.pricing-table-header {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.pricing-table-body {
    display: flex;
    flex-direction: column;
}

.pricing-table-row {
    display: flex;
    border-bottom: 1px solid #f3f4f6;
    padding: 15px 0;
}

.pricing-table-row:last-child {
    border-bottom: none;
}

.pricing-table-cell {
    flex: 1;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-cell {
    flex: 2;
    flex-direction: column;
    align-items: flex-start;
}

.plan-cell {
    flex: 1;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.feature-icon {
    width: 16px;
    height: 16px;
}

/* Usage statistics */
.usage-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.usage-stat-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    background: white;
    transition: all 0.2s ease;
}

.usage-stat-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.usage-stat-card.within-limit {
    border-color: #10b981;
}

.usage-stat-card.over-limit {
    border-color: #f59e0b;
    background-color: #fffbeb;
}

.usage-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.status-icon {
    width: 20px;
    height: 20px;
}

.usage-bar-container {
    margin-top: 10px;
}

.usage-bar {
    height: 8px;
    background-color: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.usage-bar-fill {
    height: 100%;
    background-color: #10b981;
    transition: width 0.3s ease;
}

.usage-bar.warning .usage-bar-fill {
    background-color: #f59e0b;
}

.usage-bar.danger .usage-bar-fill {
    background-color: #ef4444;
}

.usage-bar.unlimited .usage-bar-fill {
    background-color: #3b82f6;
}

.usage-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.current {
    color: #111827;
}

.separator {
    color: #6b7280;
}

.limit {
    color: #6b7280;
}

.remaining-text {
    font-size: 12px;
    color: #6b7280;
    margin-top: 5px;
}

/* Plan badges */
.plan-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.plan-badge.current {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.plan-badge.recommended {
    background-color: #fef3c7;
    color: #d97706;
}

/* Plan states */
.current-plan {
    border: 2px solid #3b82f6;
    background-color: #f8fafc;
}

.recommended-plan {
    border: 2px solid #f59e0b;
    background-color: #fffbeb;
}

.upgrade-prompt {
    border: 2px solid #f59e0b;
    background-color: #fffbeb;
}

/* FAQ section */
.faq-section {
    margin-top: 20px;
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h6 {
    margin-bottom: 8px;
}

/* Error page */
.error-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.error-actions .btn {
    flex: 1;
    min-width: 120px;
}

/* Chart placeholder */
.chart-placeholder {
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f9fafb;
    border-radius: 8px;
    margin-top: 20px;
}

/* Full width utilities */
.full-width {
    width: 100%;
}

/* Responsive design */
@media (max-width: 768px) {
    .pricing-table-header,
    .pricing-table-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .pricing-table-cell {
        padding: 10px 0;
    }
    
    .feature-cell {
        flex: none;
        width: 100%;
    }
    
    .plan-cell {
        flex: none;
        width: 100%;
        text-align: left;
    }
    
    .usage-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .error-actions {
        flex-direction: column;
    }
    
    .error-actions .btn {
        min-width: auto;
    }
}

/* Dark mode support (if needed) */
.dark-mode .usage-stat-card {
    background-color: #1f2937;
    border-color: #374151;
}

.dark-mode .usage-stat-card.over-limit {
    background-color: #451a03;
    border-color: #f59e0b;
}

.dark-mode .current-plan {
    background-color: #1e3a8a;
    border-color: #3b82f6;
}

.dark-mode .recommended-plan {
    background-color: #451a03;
    border-color: #f59e0b;
}

.dark-mode .upgrade-prompt {
    background-color: #451a03;
    border-color: #f59e0b;
}

.dark-mode .chart-placeholder {
    background-color: #374151;
}

/* Plan Selection Modal Styles */
.plan-selection-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.6);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-container {
    background: #fff;
    border-radius: 20px;
    max-width: 1200px;
    width: 95vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 40px 24px 40px;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.modal-close img {
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

.modal-content {
    padding: 32px 40px 0 40px;
    overflow-y: auto;
    flex: 1 1 auto;
}

.modal-subtitle {
    text-align: center;
    margin-bottom: 32px;
}

.modal-subtitle p {
    font-size: 18px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

/* Billing Cycle Switch */
.billing-cycle-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.switch-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.switch-label {
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    transition: color 0.2s ease;
}

.switch-toggle {
    position: relative;
    width: 60px;
    height: 32px;
}

.switch-toggle input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-toggle label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 32px;
}

.switch-toggle label:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch-toggle input:checked + label {
    background-color: #3b82f6;
}

.switch-toggle input:checked + label:before {
    transform: translateX(28px);
}

.switch-toggle input:checked ~ .switch-label {
    color: #0f172a;
}

.savings-info {
    display: flex;
    align-items: center;
}

.savings-badge {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.3);
}

.price-annual-info {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
    font-style: italic;
}

.plan-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.plan-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 24px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.plan-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.plan-card.popular {
    border-color: #f59e0b;
    box-shadow: 0 8px 25px -5px rgba(245, 158, 11, 0.2);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #f59e0b;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.plan-name {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px 0;
}

.plan-price-section {
    margin-bottom: 16px;
}

.price-amount {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    display: inline;
}

.price-period {
    font-size: 18px;
    color: #64748b;
    font-weight: 500;
}

.price-annual {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
}

.price-savings {
    font-size: 12px;
    color: #059669;
    font-weight: 600;
    background: #d1fae5;
    padding: 2px 8px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 4px;
}

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

.plan-description p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

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

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

.feature-item.disabled .feature-name,
.feature-item.disabled .feature-limit {
    color: #94a3b8;
}

.feature-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-icon img {
    width: 16px;
    height: 16px;
}

.feature-content {
    flex: 1;
}

.feature-name {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 2px;
}

.feature-limit {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.plan-actions {
    margin-top: auto;
}

.select-plan-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: #3b82f6;
    color: #fff;
    border: 1px solid #3b82f6;
    cursor: pointer;
}

.select-plan-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.select-plan-btn.active {
    background: #059669;
    border-color: #059669;
}

.plan-comparison-section {
    margin-top: 48px;
}

.comparison-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px 0;
    text-align: left;
}

.comparison-table {
    margin-bottom: 32px;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 8px;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.table-row:last-child {
    border-bottom: none;
}

.feature-column {
    display: flex;
    align-items: center;
}

.plan-column {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-info h5 {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin: 0 0 4px 0;
}

.feature-description {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

.feature-value {
    display: flex;
    align-items: center;
    justify-content: center;
}

.limit-value {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.check-icon,
.x-icon {
    width: 20px;
    height: 20px;
}

.plan-help {
    text-align: center;
    margin: 32px 0;
    padding: 24px;
    background: #f8fafc;
    border-radius: 12px;
}

.plan-help p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.plan-help a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.plan-help a:hover {
    color: #2563eb;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    padding: 24px 40px 32px 40px;
    border-top: 1px solid #f1f5f9;
    background: #fff;
}

.btn {
    min-width: 160px;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid;
}

.btn-primary {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

.btn-primary:hover:not(:disabled) {
    background: #2563eb;
    border-color: #2563eb;
}

.btn-primary:disabled {
    background: #94a3b8;
    border-color: #94a3b8;
    cursor: not-allowed;
}

.btn-secondary {
    background: #f1f5f9;
    color: #64748b;
    border-color: #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

@media (max-width: 768px) {
    .modal-container {
        width: 95vw;
        max-height: 95vh;
        margin: 2.5vh auto;
    }
    
    .modal-header {
        padding: 24px 20px 16px 20px;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .modal-content {
        padding: 24px 20px 0 20px;
    }
    
    .billing-cycle-switch {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
    
    .switch-container {
        gap: 8px;
    }
    
    .switch-label {
        font-size: 14px;
    }
    
    .savings-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .plan-cards-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .plan-card {
        padding: 24px 20px;
    }
    
    .modal-actions {
        padding: 20px 20px 24px 20px;
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        min-width: auto;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .plan-column {
        justify-content: flex-start;
    }
}

/* Additional plan selection modal styles */
.plan-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.plan-card {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.plan-card.selected {
    border: 2px solid #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.plan-card.current-plan {
    cursor: default;
    opacity: 0.7;
}

.plan-card.current-plan:hover {
    transform: none;
    box-shadow: none;
}

.plan-radio {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
}

.plan-radio input[type="radio"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.plan-radio label {
    cursor: pointer;
    display: block;
    width: 24px;
    height: 24px;
}

.plan-actions {
    pointer-events: auto;
}

.plan-actions button {
    pointer-events: auto;
}

.plan-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.plan-card {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

.plan-info-text {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-info-description {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.comparison-table {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.table-header,
.table-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 100%;
}

.feature-column {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

.plan-column {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

.current-badge {
    position: absolute;
    top: -12px;
    right: 16px;
    background: #3b82f6;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-outlined {
    background: transparent;
    color: #3b82f6;
    border: 1px solid #3b82f6;
}

.btn-outlined:hover:not(:disabled) {
    background: #3b82f6;
    color: #fff;
}

.btn-outlined:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

.current-plan-btn {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    cursor: not-allowed;
}

.current-plan-btn:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
}

/* Subscription page styles */
.subscription-page {
    max-width: 1200px;
    padding: 0 24px;
}

.subscription-header {
    text-align: center;
    margin-bottom: 48px;
    padding: 32px 0;
}

.subscription-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
}

.subscription-subtitle {
    font-size: 1.125rem;
    color: #6B7280;
    margin: 0;
}

.subscription-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.current-plan-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
}

.plan-overview {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
}

.plan-info {
    flex: 1;
}

.plan-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.plan-name {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.plan-status {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: capitalize;
}

.plan-status.active {
    background: #D1FAE5;
    color: #065F46;
}

.plan-status.inactive {
    background: #FEF3C7;
    color: #92400E;
}

.plan-description {
    font-size: 1.125rem;
    color: #6B7280;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.plan-pricing {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.price-item {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.price-period {
    font-size: 1rem;
    color: #6B7280;
}

.price-item.annual {
    position: relative;
}

.price-savings {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #3B82F6;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 8px;
}

.billing-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}

.billing-label {
    color: #6B7280;
}

.billing-date {
    font-weight: 600;
    color: #111827;
}

.plan-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 200px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: #3B82F6;
    color: white;
}

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

.btn-outlined {
    background: white;
    color: #3B82F6;
    border: 1px solid #3B82F6;
}

.btn-outlined:hover {
    background: #F0F9FF;
    transform: translateY(-1px);
}

.btn-outlined img {
    width: 16px;
    height: 16px;
}

.no-plan-state {
    text-align: center;
    padding: 48px 24px;
    place-items: center;
}

.no-plan-icon {
    margin-bottom: 24px;
}

.no-plan-icon img {
    width: 64px;
    height: 64px;
    opacity: 0.6;
}

.no-plan-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
}

.no-plan-description {
    color: #6B7280;
    margin: 0 0 24px 0;
}

.usage-section,
.features-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 24px 0;
}

.usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.usage-card {
    background: #F9FAFB;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #E5E7EB;
}

.usage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.usage-name {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.usage-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
}

.usage-badge.success {
    background: #D1FAE5;
    color: #065F46;
}

.usage-badge.warning {
    background: #FEF3C7;
    color: #92400E;
}

.usage-progress {
    margin-bottom: 12px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: #3B82F6;
    transition: width 0.3s ease;
}

.usage-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.usage-unlimited {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6B7280;
}

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

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.feature-card.enabled {
    background: #F0F9FF;
    border: 1px solid #DBEAFE;
}

.feature-card.disabled {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    opacity: 0.6;
}

.feature-icon img {
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.feature-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

.feature-content p {
    font-size: 0.875rem;
    color: #6B7280;
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.feature-limit {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6B7280;
}

.upgrade-section {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    border-radius: 16px;
    padding: 32px;
    color: white;
}

.upgrade-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.upgrade-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.upgrade-description {
    font-size: 1rem;
    margin: 0 0 16px 0;
    opacity: 0.9;
}

.upgrade-reasons {
    margin: 0;
    padding-left: 20px;
    opacity: 0.8;
}

.upgrade-reasons li {
    margin-bottom: 4px;
}

.upgrade-action .btn-primary {
    background: white;
    color: #3B82F6;
}

.upgrade-action .btn-primary:hover {
    background: #F8FAFC;
}

/* Responsive design for subscription page */
@media (max-width: 768px) {
    .subscription-page {
        padding: 0 16px;
    }
    
    .subscription-title {
        font-size: 2rem;
    }
    
    .plan-overview {
        flex-direction: column;
        gap: 24px;
    }
    
    .plan-actions {
        min-width: auto;
    }
    
    .plan-pricing {
        flex-direction: column;
        gap: 12px;
    }
    
    .upgrade-card {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    
    .usage-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Stripe pricing table styles */
iframe > .PricingTable {
    background-color: transparent !important;
}

/* Enhanced Usage Cards for Subscription Page */
.usage-card {
    background: #F9FAFB;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
}

.usage-card.normal {
    border-color: #10b981;
    background: #f0fdf4;
}

.usage-card.warning {
    border-color: #f59e0b;
    background: #fffbeb;
}

.usage-card.exceeded {
    border-color: #ef4444;
    background: #fef2f2;
}

.usage-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.usage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.usage-name {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.usage-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
}

.usage-badge.success {
    background: #D1FAE5;
    color: #065F46;
}

.usage-badge.warning {
    background: #FEF3C7;
    color: #92400E;
}

.usage-badge.exceeded {
    background: #FEE2E2;
    color: #991B1B;
}

.usage-progress {
    margin-bottom: 12px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: #3B82F6;
    transition: width 0.3s ease;
}

.progress-fill.normal {
    background: #10b981;
}

.progress-fill.warning {
    background: #f59e0b;
}

.progress-fill.exceeded {
    background: #ef4444;
}

.usage-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.usage-percentage {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 4px;
}

.usage-remaining {
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 500;
}

.usage-unlimited {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6B7280;
}