.recent-sale-ticker {
  position: fixed;
  z-index: 188;
  top: 78px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(680px, calc(100% - 32px));
  min-height: 40px;
  padding: 8px 13px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  color: #f6f4ff;
  background: rgba(12, 12, 18, .88);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  transform: translateX(-50%);
  transition: opacity .22s ease, transform .22s ease;
}

.recent-sale-ticker[hidden] { display: none; }
.recent-sale-ticker.is-changing { opacity: 0; transform: translate(-50%, -7px); }

.recent-sale-signal {
  position: relative;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #65e99a;
  box-shadow: 0 0 0 4px rgba(101, 233, 154, .11);
}

.recent-sale-signal::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(101, 233, 154, .55);
  border-radius: inherit;
  animation: recentSalePulse 2.2s ease-out infinite;
}

.recent-sale-label {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid rgba(174, 153, 255, .22);
  border-radius: 7px;
  color: #cbbcff;
  background: rgba(128, 98, 236, .11);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
}

.recent-sale-copy {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  font-size: 11px;
  white-space: nowrap;
}

.recent-sale-copy strong { flex: 0 0 auto; color: #fff; font-weight: 850; }
.recent-sale-copy i { color: #6d687e; font-style: normal; }
.recent-sale-copy span { overflow: hidden; color: #c5c2cf; text-overflow: ellipsis; }
.recent-sale-time { flex: 0 0 auto; margin-left: auto; color: #85818f; font-size: 9px; font-weight: 750; }

html[data-theme="light"] .recent-sale-ticker {
  color: #24212b;
  border-color: rgba(34, 28, 48, .09);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 32px rgba(38, 30, 57, .12);
}

html[data-theme="light"] .recent-sale-copy strong { color: #211d2b; }
html[data-theme="light"] .recent-sale-copy span { color: #5f5969; }
html[data-theme="light"] .recent-sale-time { color: #827a8d; }

@keyframes recentSalePulse {
  0% { opacity: .75; transform: scale(.45); }
  75%, 100% { opacity: 0; transform: scale(1.25); }
}

@media (max-width: 780px) {
  .recent-sale-ticker {
    top: 70px;
    gap: 7px;
    width: calc(100% - 20px);
    min-height: 38px;
    padding: 7px 10px;
    border-radius: 12px;
  }

  .recent-sale-label { display: none; }
  .recent-sale-copy { font-size: 10px; }
  .recent-sale-copy i { display: none; }
  .recent-sale-copy span { max-width: 46vw; }
  .recent-sale-time { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .recent-sale-ticker,
  .recent-sale-signal::after { animation: none; transition: none; }
}
