.billing-dashboard {
  min-height: 100vh;
  background: #f5f7fb;
  color: #161a2c;
  padding: 34px clamp(16px, 4vw, 58px);
  font-family: inherit;
}
.billing-dashboard > header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  max-width: 1250px;
  margin: auto auto 34px;
}
.billing-dashboard > header a {
  color: #5056e9;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
}
.bd-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.billing-dashboard h1 {
  font-size: 2.2rem;
  margin: 15px 0 5px;
}
.billing-dashboard header p {
  color: #727b91;
}
.billing-dashboard > section {
  max-width: 1250px;
  margin: 0 auto 25px;
}
.bd-overview {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}
.bd-overview > article,
.bd-meter-grid > article,
.bd-two > article,
.bd-actions {
  background: #fff;
  border: 1px solid #e0e4ed;
  border-radius: 21px;
  padding: 25px;
}
.bd-upcoming {
  margin-top: 16px;
  background: #fff;
  border: 1px solid #e0e4ed;
  border-radius: 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.bd-upcoming span {
  display: grid;
}
.bd-upcoming small,
.bd-upcoming em {
  color: #7b8396;
}
.bd-upcoming em {
  grid-column: 1/-1;
  font-style: normal;
  font-size: 0.8rem;
}
.bd-plan > div:first-child,
.bd-usage > div:first-child,
.bd-meter-grid article {
  display: flex;
  align-items: center;
  gap: 14px;
}
.bd-plan svg,
.bd-usage svg,
.bd-meter-grid svg {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 13px;
  background: #ececff;
  color: #5157ec;
}
.bd-plan span,
.bd-usage span,
.bd-meter-grid span {
  display: grid;
}
.bd-plan small,
.bd-usage small,
.bd-meter-grid small {
  color: #7b8396;
}
.bd-plan strong,
.bd-usage strong {
  font-size: 1.3rem;
}
.status {
  display: inline-flex;
  margin: 20px 0;
  border-radius: 999px;
  padding: 5px 12px;
  background: #e9f8f2;
  color: #188462;
}
.status.past_due,
.status.payment_failed {
  background: #fff0ec;
  color: #ba4e39;
}
.bd-plan dl {
  display: flex;
  gap: 35px;
}
.bd-plan dl div {
  display: grid;
}
.bd-plan dt {
  color: #7a8296;
  font-size: 0.8rem;
}
.bd-plan dd {
  margin: 4px 0;
  font-weight: 800;
}
.bd-empty-plan {
  display: grid;
  justify-items: start;
  margin-top: 20px;
}
.bd-empty-plan a,
.bd-actions > a {
  background: #5056eb;
  color: #fff;
  text-decoration: none;
  border-radius: 11px;
  padding: 11px 18px;
  font-weight: 800;
}
.bd-usage .h-2 {
  margin: 28px 0 8px;
}
.bd-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.bd-title h2 {
  font-size: 1.1rem;
}
.bd-title span {
  color: #798196;
  font-size: 0.8rem;
}
.bd-meter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.bd-meter-grid > article {
  display: grid;
}
.bd-meter-grid .h-2 {
  grid-column: 1/-1;
  width: 100%;
}
.bd-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.bd-list {
  display: grid;
  gap: 10px;
}
.bd-list > div {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #edf0f5;
  border-radius: 12px;
  padding: 12px;
}
.bd-list span {
  display: grid;
  flex: 1;
}
.bd-list small {
  color: #7d8598;
}
.bd-list em {
  font-style: normal;
  color: #59627a;
}
.bd-empty {
  min-height: 140px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  color: #778096;
}
.bd-empty svg {
  width: 28px;
}
.bd-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bd-actions p {
  color: #70798f;
  max-width: 760px;
}
.bd-state {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  background: #f5f7fb;
}
.bd-state > svg {
  width: 36px;
  height: 36px;
  color: #555bed;
  animation: pr-spin 1s linear infinite;
}
.bd-state.error > svg {
  color: #c65343;
  animation: none;
}
@media (max-width: 800px) {
  .bd-overview,
  .bd-two {
    grid-template-columns: 1fr;
  }
  .bd-meter-grid {
    grid-template-columns: 1fr 1fr;
  }
  .billing-dashboard > header,
  .bd-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 480px) {
  .bd-upcoming {
    grid-template-columns: 1fr;
  }
  .billing-dashboard {
    padding: 20px 12px;
  }
  .billing-dashboard h1 {
    font-size: 1.8rem;
  }
  .bd-meter-grid {
    grid-template-columns: 1fr;
  }
  .bd-overview > article,
  .bd-meter-grid > article,
  .bd-two > article,
  .bd-actions {
    padding: 19px;
  }
  .bd-plan dl {
    gap: 15px;
    flex-direction: column;
  }
  .bd-list > div {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
