.hb {
  max-width: 1180px;
  margin: 0 auto;
  color: #dce7f5;
}

.hb-intro,
.hb-head,
.hb-separation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.hb-intro {
  margin-bottom: 22px;
}

.hb-intro h2,
.hb-head h2 {
  margin: 0 0 5px;
  color: #fff;
  font-family: "Space Grotesk", Inter, sans-serif;
}

.hb-intro h2 {
  font-size: 1.18rem;
}

.hb-intro p,
.hb-head p,
.hb-empty p,
.hb-payment-placeholder p,
.hb-separation p {
  margin: 0;
  color: #8fa3bf;
  font-size: .82rem;
  line-height: 1.5;
}

.hb-secure {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 195px;
  padding: 12px 14px;
  border: 1px solid #223149;
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}

.hb-secure > span {
  color: #f3ae39;
  font-size: 1.15rem;
}

.hb-secure div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hb-secure strong {
  color: #fff;
  font-size: .82rem;
}

.hb-secure span:last-child {
  color: #8296b3;
  font-size: .68rem;
}

.hb-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.hb-stat,
.hb-card,
.hb-separation {
  border: 1px solid #223149;
  background: #101a27;
  border-radius: 15px;
}

.hb-stat {
  min-height: 112px;
  padding: 17px 18px;
}

.hb-k,
.hb-eyebrow {
  display: block;
  color: #7794ba;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hb-stat strong {
  display: block;
  margin: 10px 0 6px;
  color: #fff;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.28rem;
}

.hb-stat small {
  color: #91a7c5;
  font-size: .72rem;
}

.hb-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
}

.hb-card {
  margin-bottom: 18px;
  padding: 22px;
}

.hb-head {
  align-items: flex-start;
  margin-bottom: 20px;
}

.hb-head h2 {
  margin-top: 6px;
  font-size: 1.05rem;
}

.hb-badge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: .67rem;
  font-weight: 700;
  white-space: nowrap;
}

.hb-badge.active {
  color: #4add91;
  background: rgba(74,221,145,.13);
}

.hb-badge.pending,
.hb-badge.warning {
  color: #f0b954;
  background: rgba(240,185,84,.13);
}

.hb-badge.cancelled {
  color: #f0806c;
  background: rgba(240,128,108,.13);
}

.hb-badge.neutral {
  color: #a8b8cd;
  background: rgba(255,255,255,.06);
}

.hb-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #223149;
  border-radius: 11px;
  background: #223149;
}

.hb-detail-grid div {
  padding: 13px 14px;
  background: #0c1622;
}

.hb-detail-grid dt {
  margin-bottom: 5px;
  color: #7890b0;
  font-size: .65rem;
  text-transform: uppercase;
}

.hb-detail-grid dd {
  margin: 0;
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
}

.hb-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.hb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #2a3a51;
  border-radius: 9px;
  font: inherit;
  font-size: .76rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.hb-btn.secondary {
  color: #dce7f5;
  background: #15202e;
}

.hb-btn.danger {
  color: #f0806c;
  border-color: rgba(240,128,108,.28);
  background: rgba(240,128,108,.07);
}

.hb-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.hb-note,
.hb-status {
  margin: 13px 0 0;
  color: #8195b1;
  font-size: .7rem;
  line-height: 1.45;
}

.hb-payment-placeholder {
  display: flex;
  gap: 13px;
  min-height: 105px;
  padding: 16px;
  border: 1px dashed #2a3a51;
  border-radius: 11px;
  background: #0c1622;
}

.hb-payment-icon {
  font-size: 1.3rem;
}

.hb-payment-placeholder strong,
.hb-empty strong,
.hb-separation strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: .82rem;
}

.hb-order-list {
  display: grid;
  gap: 9px;
}

.hb-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 15px;
  border: 1px solid #223149;
  border-radius: 10px;
  background: #0c1622;
  color: inherit;
  text-decoration: none;
}

.hb-order:hover {
  border-color: rgba(243,174,57,.45);
}

.hb-order-main,
.hb-order-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hb-order-main strong {
  color: #fff;
  font-size: .8rem;
}

.hb-order-main span,
.hb-order-meta small {
  color: #8fa3bf;
  font-size: .72rem;
}

.hb-order-meta {
  align-items: flex-end;
}

.hb-order-status {
  color: #efb24b;
  font-size: .7rem;
  font-weight: 700;
}

.hb-charge-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.hb-charge-grid > div {
  padding: 15px;
  border: 1px solid #223149;
  border-radius: 10px;
  background: #0c1622;
}

.hb-charge-grid span,
.hb-charge-grid small {
  display: block;
  color: #8195b1;
  font-size: .68rem;
}

.hb-charge-grid strong {
  display: block;
  margin: 7px 0;
  color: #fff;
  font-size: .78rem;
}

.hb-charge-grid .total {
  border-color: rgba(243,174,57,.35);
  background: rgba(243,174,57,.045);
}

.hb-empty,
.hb-loading {
  padding: 24px;
  border: 1px dashed #2a3a51;
  border-radius: 11px;
  background: #0c1622;
  color: #8fa3bf;
  text-align: center;
}

.hb-empty.compact {
  padding: 18px;
}

.hb-link {
  color: #f0ad3d;
  font-size: .74rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.hb-separation {
  padding: 18px 20px;
}

.hb-separation > div:first-child {
  display: flex;
  gap: 12px;
}

.hb-separation > div:first-child > span {
  color: #f3ae39;
  font-size: 1.25rem;
}

.hb-separation .hb-actions {
  margin: 0;
}

@media (max-width: 1050px) {
  .hb-summary,
  .hb-charge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hb-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hb-intro,
  .hb-head,
  .hb-separation {
    align-items: flex-start;
    flex-direction: column;
  }

  .hb-summary,
  .hb-charge-grid,
  .hb-detail-grid {
    grid-template-columns: 1fr;
  }

  .hb-secure {
    width: 100%;
  }
}
