{#if loading}
{#if planAssigned && plan} {planName} · {headerPlanBlurb} {:else} {headerPlanBlurb} {/if}
{planBillingLabel}
{formatSkuUsage(credits?.product_count, maxProducts ?? plan?.max_products, plan)}
{#if isContractExpiringSoon && !enterprise && !payg}{i18n.t("billing.periodEnds", { date: formatContractDate(usage?.cycle_end ?? plan?.next_billing_date) })}
{:else if payg}{i18n.t("billing.openEndedContract")}
{/if}{i18n.t("billing.enterpriseCapacity")}
{:else if payg}{i18n.t("billing.paygWallet", { remaining: formatCredits(remaining ?? 0) })}
{:else if freePlan}{canUseAI ? i18n.t("billing.trialLeftover") : i18n.t("billing.aiLockedFree")}
{:else}{i18n.t("billing.usedOf", { used: formatCredits(walletUsed), total: formatCredits(usage?.credits_total ?? credits.total_credits) })}
{/if}{i18n.t("billing.noBalanceTitle")}
{i18n.t("billing.noBalanceBody")}
{i18n.t("billing.needCapacity")}
{i18n.t("billing.selfServeUpgrade")} {#if stripe?.configured && !stripe?.mock} {i18n.t("billing.viaStripe")} {/if}.
{i18n.t("billing.needCapacity")}
{upgradeCta.memberHint ?? i18n.t("billing.askAdminPlan")}
{i18n.t("billing.buyCreditPacksHint")}
{i18n.t(pack.nameKey)}
{i18n.t(pack.descriptionKey)}
${pack.priceUSD}
{i18n.t("billing.packCredits", { credits: pack.credits.toLocaleString() })} · {i18n.t("billing.packApproxProducts", { count: pack.aiProducts.toLocaleString() })}
{i18n.t("billing.productsProcessed", { count: (usage?.products_processed ?? 0).toLocaleString(), range: rangeLabel })} {#if usageLoading} · {i18n.t("billing.updating")} {/if}
{i18n.t("billing.nothingToChartTitle")}
{i18n.t("billing.nothingToChartBody")}
{i18n.t("billing.noNewProducts", { range: rangeLabel })}
{i18n.t("billing.catalogOverall", { count: catalogProductCount.toLocaleString() })}
{i18n.t("billing.adminStats", { tokens: (usage?.tokens ?? 0).toLocaleString(), jobs: (usage?.jobs_total ?? 0).toLocaleString(), input: (usage?.feeds_input ?? 0).toLocaleString(), export: (usage?.feeds_export ?? 0).toLocaleString() })}
{/if}{i18n.t(item.detailKey)}