/* Billing screen — one centred column; every block shares the panel width and
   a single vertical rhythm (the .billing-body flex gap). */

.billing-panel {
  width: 100%;
  max-width: 448px;
  margin: 56px auto 48px;
}
.login-card.billing-card {
  max-width: 420px;
}
.billing-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.balance-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 4px 2px 0;
}
.balance-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.balance-amount {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.plan-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: var(--surface);
}
.plan-name {
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--text);
}
.plan-price {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 6px 0 12px;
}
.plan-per {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-secondary);
}
.plan-features {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.55;
}
.plan-features li + li {
  margin-top: 5px;
}

.field-label {
  margin-bottom: -6px;
}

.term-select {
  display: flex;
  gap: 8px;
}
.term-option {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 9px 4px;
  text-align: center;
  cursor: pointer;
  font-size: var(--text-sm);
  line-height: 1.2;
  background: var(--surface);
  transition: border-color .12s, background .12s;
}
.term-option:hover {
  border-color: var(--accent);
}
.term-option.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  font-weight: 600;
}
.term-option small {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--text-tertiary);
  font-weight: 400;
}

.billing-body .btn-block {
  height: 42px;
  font-weight: 600;
}

.payment-method-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}
.payment-method-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.payment-method-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}
.payment-method-caption {
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-tertiary);
}
.payment-method-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.billing-status {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--text-secondary);
}
.billing-error {
  margin: 0;
}
.billing-body .login-note {
  margin-top: 2px;
}
