/* Subscription & Pricing Component Styles */

/* Pricing card */
.pricing-card {
    position: relative;
    border-radius: 1rem;
    border: 2px solid var(--border-default, #e3e3e3);
    background: var(--bg-primary, #fff);
    padding: 2rem;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.pricing-card:hover {
    box-shadow: 0 8px 32px rgba(229, 70, 31, 0.12);
    transform: translateY(-2px);
}

.pricing-card.featured {
    border-color: #e5461f;
    box-shadow: 0 8px 32px rgba(229, 70, 31, 0.2);
}

.pricing-card .badge-popular {
    position: absolute;
    top: -1px;
    right: 1.5rem;
    background: #e5461f;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 0 0 0.5rem 0.5rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary, #464646);
}

.pricing-price .currency {
    font-size: 1.25rem;
    font-weight: 600;
    vertical-align: top;
    line-height: 2rem;
}

.pricing-price .period {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary, #7a7878);
}

/* Usage progress bar */
.usage-bar-container {
    background: #e3e3e3;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.usage-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.5s ease;
    background: linear-gradient(90deg, #e5461f, #ff6b47);
}

.usage-bar-fill.near-limit {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.usage-bar-fill.over-limit {
    background: #ef4444;
}

/* Plan badge in header */
.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
}

.plan-badge.badge-free {
    background: #f5f5f5;
    color: #7a7878;
    border: 1px solid #d1d1d1;
}

.plan-badge.badge-pro {
    background: linear-gradient(135deg, #e5461f, #ff6b47);
    color: #fff;
}

/* Subscription management page */
.sub-stat-card {
    background: var(--bg-secondary, #f5f5f5);
    border-radius: 0.75rem;
    padding: 1.25rem;
    text-align: center;
}

.sub-stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #e5461f;
}

.sub-stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary, #7a7878);
    margin-top: 0.25rem;
}

/* Feature list checkmarks */
.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.3rem 0;
    font-size: 0.9rem;
}

.feature-list li .check-yes { color: #16a34a; }
.feature-list li .check-no  { color: #d1d1d1; }

/* Checkout loading overlay */
.checkout-loading {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    color: #fff;
}

.checkout-loading.active {
    display: flex;
}

/* Enterprise badge */
.plan-badge.badge-enterprise {
    background: linear-gradient(135deg, #1f2937, #374151);
    color: #f9fafb;
    border: 1px solid #4b5563;
}

/* Demo countdown banner */
.demo-banner {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.dark .demo-banner {
    background: linear-gradient(135deg, rgba(154,97,21,0.2), rgba(180,83,9,0.15));
    border-color: rgba(251,146,60,0.3);
}
.demo-banner-days {
    font-size: 2rem;
    font-weight: 800;
    color: #ea580c;
    line-height: 1;
    min-width: 2.5rem;
    text-align: center;
}

/* Storage meter */
.storage-meter-bar {
    height: 6px;
    border-radius: 3px;
    background: #e3e3e3;
    overflow: hidden;
}
.dark .storage-meter-bar { background: #374151; }
.storage-meter-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #e5461f, #ff6b47);
    transition: width 0.4s ease;
}
.storage-meter-fill.near-limit { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.storage-meter-fill.over-limit { background: #dc2626; }
