.eb-billing-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: .55rem;
}
.eb-billing-plans,
.eb-billing-history {
  grid-column: 1 / -1;
}
.eb-billing-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
  padding: 0 1.65rem 1.2rem;
}
.eb-billing-stats div,
.eb-plan-card,
.eb-order-row,
.eb-empty-state {
  border: 1px solid rgba(13,14,16,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.46);
}
.eb-billing-stats div {
  min-height: 94px;
  padding: .9rem;
}
.eb-billing-stats span,
.eb-plan-top span,
.eb-plan-limits span,
.eb-order-row span,
.eb-empty-state span,
.eb-billing-note {
  color: var(--eb-muted);
  font-size: .84rem;
  font-weight: 650;
}
.eb-billing-stats strong {
  display: block;
  margin-top: .55rem;
  color: var(--eb-ink);
  font-size: 1.42rem;
  font-weight: 560;
  letter-spacing: -.055em;
  line-height: 1;
}
.eb-billing-note {
  margin: 0;
  padding: 0 1.65rem 1.45rem;
}
.eb-portal-form {
  padding: 0 1.2rem 1.15rem;
}
.eb-portal-form .btn {
  width: 100%;
}
.eb-icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(13,14,16,.1);
  border-radius: 50%;
  background: rgba(255,255,255,.46);
  color: var(--eb-ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}
.eb-order-form {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) max-content;
  gap: .75rem;
  align-items: end;
  padding: 0 1.65rem 1rem;
}
.eb-order-form label {
  margin: 0;
  color: var(--eb-muted);
  text-transform: none;
  letter-spacing: 0;
}
.eb-order-form input {
  width: 100%;
  min-height: 44px;
  border-color: rgba(13,14,16,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.62);
}
.eb-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  padding: 0 1.65rem 1.65rem;
}
.eb-plan-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 1.05rem;
}
.eb-plan-card.is-current {
  border-color: rgba(11,233,206,.32);
  background:
    linear-gradient(135deg, rgba(11,233,206,.16), rgba(178,123,255,.1)),
    rgba(255,255,255,.5);
}
.eb-plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}
.eb-plan-top strong {
  padding: .28rem .65rem;
  border-radius: 999px;
  background: var(--eb-gradient);
  color: #fff;
  font-size: .76rem;
}
.eb-plan-card h3 {
  margin: 1rem 0;
  color: var(--eb-ink);
  font-size: 2rem;
  font-weight: 540;
  letter-spacing: -.06em;
}
.eb-plan-limits {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
  margin-bottom: 1rem;
}
.eb-plan-limits span {
  padding: .32rem .6rem;
  border: 1px solid rgba(13,14,16,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.42);
}
.eb-plan-card form {
  margin-top: auto;
}
.eb-plan-card form .btn {
  width: 100%;
}
.eb-plan-card p {
  margin: .7rem 0 0;
  color: var(--eb-muted);
  font-size: .82rem;
}
.eb-order-list {
  display: grid;
  gap: .6rem;
  padding: 0 1.65rem 1.65rem;
}
.eb-order-row {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1rem;
}
.eb-order-row > div {
  display: grid;
  gap: .18rem;
}
.eb-order-row > div:last-child {
  justify-items: end;
}
.eb-order-row strong {
  color: var(--eb-ink);
}
.eb-order-track {
  color: var(--eb-pink);
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
}
.eb-empty-state {
  display: grid;
  gap: .24rem;
  min-height: 96px;
  align-content: center;
  padding: 1rem;
}
.eb-empty-state-panel {
  margin: 0 1.2rem 1.15rem;
}
.eb-empty-state strong {
  color: var(--eb-ink);
}

@media (max-width: 1320px) {
  .eb-billing-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .eb-billing-stats,
  .eb-plan-grid {
    grid-template-columns: 1fr;
  }
  .eb-order-form,
  .eb-order-row {
    grid-template-columns: 1fr;
  }
  .eb-order-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .eb-order-row > div:last-child {
    justify-items: start;
  }
}
