.tf-sale-main {
  padding-bottom: 48px;
}

.tf-sale-token {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.tf-sale-icon,
.tf-sale-icon-fallback {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
}

.tf-sale-icon-fallback {
  display: none;
  place-items: center;
  background: #1558f0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.tf-sale-icon-fallback.is-on {
  display: grid;
}

.tf-sale-token h1,
.tf-sale-token .tf-sale-ticker {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.tf-sale-ticker {
  color: #9497a9;
}

.tf-sale-price {
  margin: 4px 0 20px;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #1a1b22;
}

.tf-sale-banner {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 12px;
  color: #f7f7fa;
  background: #1a1b22;
  min-height: 148px;
}

.tf-sale-banner::after {
  content: "";
  position: absolute;
  inset: 0 0 0 42%;
  pointer-events: none;
  background-image: radial-gradient(circle at center, rgba(21, 88, 240, 0.55) 0 11px, transparent 12px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent, #000 28%);
}

.tf-sale-banner > * {
  position: relative;
  z-index: 1;
}

.tf-sale-banner .tf-sale-kicker {
  margin: 0 0 8px;
  color: #9497a9;
  font-size: 14px;
}

.tf-sale-banner h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.tf-sale-banner .tf-sale-sub {
  margin: 0;
  color: #c6c7d2;
  font-size: 15px;
}

.tf-sale-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.tf-sale-card {
  background: #fff;
  border: 1px solid rgba(26, 27, 34, 0.08);
  border-radius: 16px;
  padding: 16px 18px 18px;
}

.tf-sale-card small {
  display: block;
  color: #686b82;
  font-size: 13px;
  margin-bottom: 10px;
}

.tf-sale-card strong {
  display: block;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.tf-sale-card em {
  display: block;
  margin-top: 10px;
  font-style: normal;
  color: #686b82;
  font-size: 13px;
  line-height: 1.4;
}

.tf-sale-about {
  padding: 20px 20px 24px;
}

.tf-sale-about h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 500;
}

.tf-sale-fdv {
  margin: 0 0 18px;
  color: #686b82;
  font-size: 14px;
}

.tf-sale-about-copy {
  margin: 0;
  color: #686b82;
  font-size: 15px;
  line-height: 1.55;
  max-width: 62ch;
}

.tf-sale-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 18px;
}

.tf-sale-tabs button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: transparent;
  color: #686b82;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.tf-sale-tabs button.is-on {
  background: #1a1b22;
  color: #fff;
}

.tf-sale-learn {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.tf-sale-learn-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eceaf3;
  display: grid;
  place-items: center;
  color: #1a1b22;
  flex: none;
}

.tf-sale-learn h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.tf-sale-learn p {
  margin: 0;
  color: #686b82;
  font-size: 14px;
  line-height: 1.5;
}

.tf-sale-widget {
  padding: 8px 4px 4px;
}

.tf-sale-widget-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  background: #f3f2f7;
  font-size: 14px;
  font-weight: 600;
}

.tf-sale-widget-head img,
.tf-sale-widget-head .tf-sale-icon-fallback {
  width: 22px;
  height: 22px;
}

.tf-sale-big {
  margin: 0;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.tf-sale-inactive {
  margin: 6px 0 18px;
  color: #686b82;
  font-size: 14px;
}

.tf-sale-presets {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.tf-sale-presets button {
  flex: 1;
  height: 36px;
  border: 1px solid rgba(26, 27, 34, 0.08);
  border-radius: 999px;
  background: #f6f5f9;
  color: #9497a9;
  font-weight: 600;
  cursor: not-allowed;
}

.tf-sale-pay {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 14px;
}

.tf-sale-pay-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.tf-sale-pay-left img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.tf-sale-pay span:last-child {
  color: #686b82;
}

.tf-sale-review {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: #d9d9e3;
  color: #8a8a98;
  font: inherit;
  font-weight: 600;
  cursor: not-allowed;
}

@media (max-width: 1100px) {
  .tf-sale-cards {
    grid-template-columns: 1fr;
  }
}

.tf-asset-delta.is-up { color: #08844f; }
.tf-asset-delta.is-down { color: #d11d45; }

.tf-asset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.tf-asset-actions button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.tf-asset-actions .is-buy {
  background: #1558f0;
  color: #fff;
}

.tf-asset-actions .is-quiet {
  background: #eceaf3;
  color: #1a1b22;
}

.tf-asset-chart-card {
  padding: 16px 16px 12px;
  margin-bottom: 12px;
}

.tf-asset-times {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.tf-asset-times button {
  border: 0;
  background: transparent;
  color: #686b82;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.tf-asset-times button.is-on {
  background: #eceaf3;
  color: #1a1b22;
}

.tf-asset-chart {
  width: 100%;
  height: 180px;
  display: block;
}

.tf-asset-hold p {
  margin: 0 0 6px;
  color: #686b82;
}

.tf-asset-hold .tf-sale-price {
  margin: 0 0 4px;
}

.tf-asset-orders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}

.tf-asset-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
  margin-top: 18px;
}

.tf-asset-stats small {
  display: block;
  color: #686b82;
  font-size: 13px;
  margin-bottom: 4px;
}

.tf-asset-stats strong {
  font-size: 16px;
  font-weight: 500;
}

body:not(.has-sale) [data-sale-only] {
  display: none !important;
}

@media (max-width: 720px) {
  .tf-asset-orders,
  .tf-asset-stats {
    grid-template-columns: 1fr;
  }
}
