.bootstrap-tracker {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(32, 223, 245, 0.2);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 92% 0%, rgba(32, 223, 245, 0.1), transparent 22rem),
    linear-gradient(145deg, rgba(12, 26, 40, 0.97), rgba(5, 12, 21, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 24px 80px rgba(0, 0, 0, 0.28);
}

.bootstrap-tracker__header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bootstrap-tracker__active {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.625rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(154, 230, 180, 0.24);
  border-radius: 9999px;
  background: rgba(154, 230, 180, 0.055);
  color: #b8f2cb;
  font: 700 0.875rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.bootstrap-live-dot {
  width: 0.5rem;
  height: 0.5rem;
  flex: none;
  border-radius: 9999px;
  background: #9ae6b4;
  box-shadow: 0 0 12px rgba(154, 230, 180, 0.9);
}

.bootstrap-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.bootstrap-metric {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
}

.bootstrap-metric > span,
.bootstrap-metric > small {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.35;
}

.bootstrap-metric > strong {
  color: #fff;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.bootstrap-metric .bootstrap-fee-rule {
  color: #f7b52c;
}

.bootstrap-progress {
  display: block;
  width: 100%;
  height: 0.75rem;
  margin-top: 1rem;
  overflow: hidden;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: #20dff5;
}

.bootstrap-progress::-webkit-progress-bar {
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
}

.bootstrap-progress::-webkit-progress-value {
  border-radius: 9999px;
  background: linear-gradient(90deg, #f7b52c, #20dff5);
  box-shadow: 0 0 18px rgba(32, 223, 245, 0.4);
}

.bootstrap-progress::-moz-progress-bar {
  border-radius: 9999px;
  background: linear-gradient(90deg, #f7b52c, #20dff5);
  box-shadow: 0 0 18px rgba(32, 223, 245, 0.4);
}

.bootstrap-stage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.bootstrap-stage {
  min-width: 0;
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.2);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.bootstrap-stage:hover {
  transform: translateY(-2px);
  border-color: rgba(32, 223, 245, 0.25);
}

.bootstrap-stage.is-active {
  border-color: rgba(154, 230, 180, 0.3);
  background: linear-gradient(145deg, rgba(154, 230, 180, 0.075), rgba(0, 0, 0, 0.2));
}

.bootstrap-stage__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.bootstrap-stage__top > p {
  color: #fff;
  font: 900 1rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bootstrap-stage__badge {
  flex: none;
  padding: 0.38rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
}

.bootstrap-stage__badge.is-progress {
  border-color: rgba(154, 230, 180, 0.26);
  background: rgba(154, 230, 180, 0.07);
  color: #9ae6b4;
}

.bootstrap-stage__badge.is-milestone {
  border-color: rgba(247, 181, 44, 0.22);
  background: rgba(247, 181, 44, 0.06);
  color: #f7c85a;
}

.bootstrap-stage dl {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.bootstrap-stage dt {
  color: #64748b;
  font-size: 0.8125rem;
  line-height: 1.3;
}

.bootstrap-stage dd {
  margin-top: 0.25rem;
  color: #cbd5e1;
  font-size: 0.875rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.bootstrap-stage a {
  color: #20dff5;
}

.bootstrap-stage a:hover {
  color: #fff;
}

.bootstrap-compliance {
  margin-top: 1.5rem;
  padding: 1rem;
  border-left: 3px solid rgba(247, 181, 44, 0.75);
  background: rgba(247, 181, 44, 0.04);
  color: rgba(254, 243, 199, 0.78);
  font-size: 0.875rem;
  line-height: 1.65;
}

@media (min-width: 640px) {
  .bootstrap-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .bootstrap-tracker__header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .bootstrap-stage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .bootstrap-stage-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .bootstrap-stage {
    transition: none;
  }
}
