[data-page="billing-custom-page"] {
  --status-blue: oklch(0.62 0.128 218);
  --status-blue-deep: oklch(0.42 0.102 230);
  --status-blue-soft: oklch(0.91 0.045 235);
  --status-green: oklch(0.78 0.18 127);
  --status-gold: oklch(0.77 0.115 82);
  --status-gold-soft: oklch(0.96 0.04 88);
  --status-muted: oklch(0.72 0 89.88);
  padding: 8px 4px;
  color: var(--pg-text-strong);
}

[data-page="billing-custom-page"] [data-slot="billing-custom-title"],
[data-page="billing-custom-page"] [data-slot="billing-custom-section-header"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

[data-page="billing-custom-page"] [data-slot="billing-custom-title"] {
  margin: 0 0 34px;
}

[data-page="billing-custom-page"] [data-slot="billing-custom-title"] h2,
[data-page="billing-custom-page"] [data-slot="billing-custom-section-header"] h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--pg-teal);
}

[data-page="billing-custom-page"] [data-slot="billing-custom-title"] h2 {
  font-size: 22px;
  line-height: 1.2;
}

[data-page="billing-custom-page"] [data-slot="billing-custom-section-header"] h3 {
  font-size: 23px;
  line-height: 1.15;
}

[data-page="billing-custom-page"] [data-slot="billing-custom-link"] {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: color-mix(in oklch, var(--pg-teal), var(--pg-text-muted) 34%);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: color-mix(in oklch, var(--pg-text-muted), transparent 58%);
  text-underline-offset: 4px;
}

[data-page="billing-custom-page"] [data-slot="billing-custom-link"]:hover {
  color: var(--pg-teal);
}

[data-page="billing-custom-page"] [data-slot="billing-custom-content"] {
  display: grid;
  gap: 56px;
}

[data-page="billing-custom-page"] [data-slot="billing-custom-status"] {
  display: grid;
  gap: 12px;
}

[data-page="billing-custom-page"] [data-slot="billing-status-track"] {
  display: grid;
  grid-template-columns: minmax(184px, 232px) minmax(70px, 104px) minmax(184px, 232px);
  align-items: start;
  width: min(600px, 100%);
  margin: 0 auto;
}

[data-page="billing-custom-page"] [data-slot="billing-status-node"] {
  display: grid;
  justify-items: center;
  gap: 16px;
}

[data-page="billing-custom-page"] [data-slot="billing-status-card"] {
  position: relative;
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px dashed color-mix(in oklch, var(--pg-border), var(--status-muted) 35%);
  border-radius: calc(var(--pg-radius) + 12px);
  background: var(--pg-white);
  color: var(--status-muted);
}

[data-page="billing-custom-page"] [data-slot="billing-status-card"][data-active="true"] {
  border-style: solid;
  box-shadow: 0 14px 24px color-mix(in oklch, var(--pg-text-strong), transparent 88%);
}

[data-page="billing-custom-page"] [data-slot="billing-status-card"][data-level="starter"][data-active="true"] {
  border-color: color-mix(in oklch, var(--pg-teal), var(--status-green) 48%);
  background: linear-gradient(105deg, oklch(0.98 0.02 120), oklch(0.92 0.075 112));
  color: var(--status-green);
}

[data-page="billing-custom-page"] [data-slot="billing-status-card"][data-level="fellow"][data-active="true"] {
  border-color: var(--status-blue);
  background: linear-gradient(105deg, oklch(0.96 0.025 218), var(--status-blue-soft));
  color: var(--status-blue-deep);
}

[data-page="billing-custom-page"] [data-slot="billing-status-card"][data-disabled="true"] .billing-status-icon {
  color: oklch(0.82 0 89.88);
}

[data-page="billing-custom-page"] .billing-status-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

[data-page="billing-custom-page"] [data-slot="billing-status-name"] {
  color: var(--pg-text-strong);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

[data-page="billing-custom-page"] [data-slot="billing-status-card"][data-disabled="true"] [data-slot="billing-status-name"] {
  color: var(--pg-text-muted);
}

[data-page="billing-custom-page"] [data-slot="billing-status-card"][data-active="true"] [data-slot="billing-status-name"] {
  color: oklch(0.15 0 89.88);
}

[data-page="billing-custom-page"] [data-slot="billing-status-check"] {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: var(--pg-teal);
}

[data-page="billing-custom-page"] [data-slot="billing-status-connector"] {
  align-self: start;
  height: 2px;
  margin: 38px -2px 0;
  border-top: 2px dashed color-mix(in oklch, var(--pg-border), var(--status-muted) 25%);
}

[data-page="billing-custom-page"] [data-slot="billing-status-end"],
[data-page="billing-custom-page"] [data-slot="billing-status-cta"] {
  color: var(--pg-text-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

[data-page="billing-custom-page"] [data-slot="billing-status-cta"] {
  max-width: 260px;
}

[data-page="billing-custom-page"] [data-slot="billing-custom-error"] {
  color: var(--destructive);
  font-size: 12px;
}

[data-page="billing-custom-page"] [data-slot="billing-pack-actions"] {
  display: flex;
  align-items: center;
  gap: 10px;
}

[data-page="billing-custom-page"] [data-slot="billing-pack-footer"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

[data-page="billing-custom-page"] [data-slot="billing-payment-methods"] {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

[data-page="billing-custom-page"] [data-slot="billing-payment-label"] {
  color: var(--pg-text-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

[data-page="billing-custom-page"] [data-slot="billing-payment-method"] {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid var(--pg-border);
  border-radius: 999px;
  background: var(--pg-white);
  color: var(--pg-text-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

[data-page="billing-custom-page"] [data-slot="billing-currency-toggle"] {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background: var(--pg-cream-dark);
}

[data-page="billing-custom-page"] [data-slot="billing-currency-toggle"] button {
  min-width: 43px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--pg-text-strong);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 8px 10px;
  cursor: pointer;
}

[data-page="billing-custom-page"] [data-slot="billing-currency-toggle"] button[data-active="true"] {
  background: var(--pg-white);
  box-shadow: 0 1px 3px color-mix(in oklch, var(--pg-text-strong), transparent 88%);
}

[data-page="billing-custom-page"] [data-slot="billing-packs-grid"] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

[data-page="billing-custom-page"] [data-slot="billing-payment-tips"] {
  display: inline-flex;
  flex-shrink: 0;
  width: fit-content;
  border: 0;
  background: transparent;
  color: color-mix(in oklch, var(--pg-teal), var(--pg-text-muted) 34%);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: color-mix(in oklch, var(--pg-text-muted), transparent 58%);
  text-underline-offset: 4px;
}

[data-page="billing-custom-page"] [data-slot="billing-payment-tips"]:hover {
  color: var(--pg-teal);
}

[data-page="billing-custom-page"] [data-slot="billing-pack-card"] {
  position: relative;
  min-height: 150px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  padding: 24px 22px 20px;
  border: 1px solid var(--pg-border);
  border-radius: calc(var(--pg-radius) + 8px);
  background: var(--pg-white);
}

[data-page="billing-custom-page"] [data-slot="billing-pack-card"][data-premium="true"] {
  border-color: color-mix(in oklch, var(--status-gold), var(--pg-border) 34%);
  background: linear-gradient(180deg, color-mix(in oklch, var(--status-gold-soft), var(--pg-white) 28%), var(--pg-white));
}

[data-page="billing-custom-page"] [data-slot="billing-pack-name"] {
  padding-right: 84px;
  color: color-mix(in oklch, var(--pg-text-strong), var(--pg-text-muted) 8%);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
}

[data-page="billing-custom-page"] [data-slot="billing-pack-card"][data-premium="true"] [data-slot="billing-pack-name"] {
  color: color-mix(in oklch, var(--pg-text-muted), var(--status-gold) 30%);
}

[data-page="billing-custom-page"] [data-slot="billing-pack-price"] {
  position: absolute;
  top: 24px;
  right: 22px;
  color: var(--pg-teal);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

[data-page="billing-custom-page"] [data-slot="billing-pack-credits"] {
  align-self: center;
  display: flex;
  align-items: baseline;
  gap: 7px;
}

[data-page="billing-custom-page"] [data-slot="billing-pack-credits"] strong {
  color: var(--pg-text-strong);
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
}

[data-page="billing-custom-page"] [data-slot="billing-pack-credits"] span {
  color: var(--pg-text-strong);
  font-size: 15px;
  font-weight: 500;
}

[data-page="billing-custom-page"] [data-slot="billing-pack-buy"] {
  width: 100%;
  min-height: 40px;
  border: 1px solid color-mix(in oklch, var(--pg-border), var(--pg-text-muted) 25%);
  border-radius: 9px;
  background: var(--pg-white);
  color: var(--pg-text-strong);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

[data-page="billing-custom-page"] [data-slot="billing-pack-card"][data-premium="true"] [data-slot="billing-pack-buy"] {
  border-color: color-mix(in oklch, var(--status-gold), var(--pg-border) 18%);
  background: oklch(0.94 0.07 88);
}

[data-page="billing-custom-page"] [data-slot="billing-pack-buy"]:hover:not(:disabled) {
  border-color: var(--pg-teal);
  background: var(--pg-cream);
}

[data-page="billing-custom-page"] [data-slot="billing-pack-card"][data-premium="true"] [data-slot="billing-pack-buy"]:hover:not(:disabled) {
  background: oklch(0.91 0.078 88);
}

[data-page="billing-custom-page"] [data-slot="billing-pack-buy"]:disabled {
  color: var(--pg-text-muted);
  cursor: wait;
  opacity: 0.68;
}

[data-page="billing-custom-page"] [data-slot="billing-custom-section-header"][data-section="invoices"] {
  margin: 56px 0 20px;
}

[data-page="billing-custom-page"] [data-slot="billing-invoices-table"] {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

[data-page="billing-custom-page"] [data-slot="billing-invoices-table"] tr {
  border-bottom: 1px solid color-mix(in oklch, var(--pg-border), transparent 28%);
}

[data-page="billing-custom-page"] [data-slot="billing-invoices-table"] th,
[data-page="billing-custom-page"] [data-slot="billing-invoices-table"] td {
  padding: 11px 8px;
  text-align: left;
}

[data-page="billing-custom-page"] [data-slot="billing-invoices-table"] th {
  color: var(--pg-text-muted);
  font-weight: 700;
}

[data-page="billing-custom-page"] [data-slot="billing-invoices-table"] th:first-child,
[data-page="billing-custom-page"] [data-slot="billing-invoices-table"] td:first-child {
  padding-left: 0;
  color: var(--pg-text-muted);
  white-space: nowrap;
}

[data-page="billing-custom-page"] [data-slot="billing-invoices-table"] th:nth-child(3),
[data-page="billing-custom-page"] [data-slot="billing-invoices-table"] td:nth-child(3),
[data-page="billing-custom-page"] [data-slot="billing-invoices-table"] th:last-child,
[data-page="billing-custom-page"] [data-slot="billing-invoices-table"] td:last-child {
  text-align: right;
}

[data-page="billing-custom-page"] [data-slot="billing-invoices-table"] td:nth-child(2) {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-page="billing-custom-page"] [data-slot="billing-invoices-table"] td:nth-child(3) {
  color: var(--pg-text-strong);
  font-weight: 700;
  white-space: nowrap;
}

[data-page="billing-custom-page"] [data-slot="billing-invoices-table"] td[data-status="paid"] {
  color: oklch(0.49 0.13 148);
}

[data-page="billing-custom-page"] [data-slot="billing-invoices-table"] td[data-status="refunded"] {
  color: var(--pg-text-muted);
}

[data-page="billing-custom-page"] [data-slot="billing-invoices-table"] a {
  color: var(--pg-teal);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 840px) {
  [data-page="billing-custom-page"] [data-slot="billing-custom-section-header"] {
    align-items: flex-start;
  }

  [data-page="billing-custom-page"] [data-slot="billing-pack-actions"] {
    align-items: flex-end;
    flex-direction: column-reverse;
  }

  [data-page="billing-custom-page"] [data-slot="billing-pack-footer"] {
    align-items: flex-start;
    flex-direction: column;
  }

  [data-page="billing-custom-page"] [data-slot="billing-status-track"],
  [data-page="billing-custom-page"] [data-slot="billing-packs-grid"] {
    grid-template-columns: 1fr;
  }

  [data-page="billing-custom-page"] [data-slot="billing-status-connector"] {
    width: 2px;
    height: 28px;
    margin: 0 auto;
    border-top: 0;
    border-left: 2px dashed color-mix(in oklch, var(--pg-border), var(--status-muted) 25%);
  }
}
