/* Home trade integration */
.hero.section-band-hero {
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.72fr);
  align-items: start;
}

.home-trade-widget {
  align-self: start;
  position: sticky;
  top: 104px;
  padding: clamp(18px, 2.25vw, 24px);
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 239, 189, 0.12), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(255, 122, 0, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(28, 18, 9, 0.96), rgba(9, 6, 3, 0.97));
  border-color: rgba(255, 205, 117, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 239, 205, 0.1), 0 28px 78px rgba(0, 0, 0, 0.42), 0 0 42px rgba(255, 132, 0, 0.12);
}

.home-trade-widget .trade-card-head {
  margin-bottom: 14px;
}

.home-trade-widget .trade-card-head h3 {
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.08;
  padding-top: 0.055em;
  padding-bottom: 0.075em;
  background: linear-gradient(180deg, #fff2d4 0%, #f7b14f 48%, #8d4c18 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-trade-widget .trade-field {
  margin: 11px 0;
}

.home-trade-widget .trade-input-row {
  grid-template-columns: minmax(0, 1fr) 134px auto;
  gap: 8px;
  border-radius: 18px;
  padding: 10px;
}

.home-trade-widget .trade-output-row {
  grid-template-columns: minmax(0, 1fr) 134px;
}

.home-trade-widget .trade-input-row input,
.home-trade-widget .trade-input-row select,
.home-trade-widget .trade-settings-row select {
  min-height: 44px;
  padding: 10px 11px;
}

.home-trade-widget .trade-input-row input {
  font-size: 1.08rem;
}

.home-trade-widget .trade-max-button,
.home-trade-widget .trade-small-button {
  min-height: 42px;
  padding-inline: 13px;
}

.home-trade-widget .trade-swap-arrow {
  width: 40px;
  height: 40px;
  margin: -1px auto;
}

.home-trade-settings {
  gap: 10px;
  margin-top: 12px;
}

.home-trade-widget .trade-route-box {
  margin: 12px 0;
  font-size: 0.9rem;
}

.home-trade-widget .trade-route-visual {
  min-height: 40px;
  margin-bottom: 12px;
}

.home-trade-widget .trade-actions-stack {
  gap: 9px;
  margin-top: 12px;
}

.home-trade-widget .trade-actions-stack .button,
.home-trade-widget .trade-actions-stack .ghost {
  width: 100%;
}

.home-trade-external-buy {
  margin: 10px 0 0;
  padding: 9px 11px;
  border: 1px solid rgba(255, 205, 117, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 193, 83, 0.08), rgba(255, 122, 0, 0.045));
  color: rgba(255, 245, 214, 0.78);
  font-size: clamp(0.78rem, 1.55vw, 0.88rem);
  font-weight: 760;
  line-height: 1.35;
  text-align: center;
}

.home-trade-external-buy a {
  color: #ffd36b;
  font-weight: 900;
  text-decoration: none;
}

.home-trade-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.36em;
  vertical-align: -0.14em;
  white-space: nowrap;
}

.home-trade-logo-link img {
  width: 1.16em;
  height: 1.16em;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(255, 238, 196, 0.2), 0 3px 8px rgba(0, 0, 0, 0.22);
}

.home-trade-link-separator {
  color: rgba(255, 218, 151, 0.55);
  padding: 0 0.28em;
}

.home-trade-external-buy a:hover,
.home-trade-external-buy a:focus-visible {
  color: #fff1c2;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-trade-hidden-details {
  display: none !important;
}

.treasury-flow-preview-section {
  margin-top: clamp(18px, 3vw, 30px);
  padding: clamp(16px, 2.3vw, 24px);
  border: 1px solid rgba(255, 205, 117, 0.2);
  border-radius: 30px;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 212, 119, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(20, 13, 7, 0.82), rgba(10, 7, 4, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 238, 196, 0.08), 0 20px 56px rgba(0, 0, 0, 0.28);
}

.treasury-flow-preview-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.56fr) minmax(230px, 0.44fr);
  gap: 18px;
  align-items: stretch;
}

.treasury-flow-preview-head {
  display: grid;
  align-content: center;
  gap: 14px;
}

.treasury-flow-preview-head h3 {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, #fff2d4 0%, #f7b14f 48%, #8d4c18 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.treasury-flow-preview-head p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.7;
  font-size: 17px;
}

.treasury-flow-card {
  min-height: 260px;
  border-radius: 24px;
}

.treasury-flow-card .hero-overlay {
  padding: clamp(16px, 2vw, 22px);
}

.nav-trade-link {
  font-weight: 850;
}

@media (max-width: 1180px) {
  .hero.section-band-hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(330px, 0.78fr);
  }
  .home-trade-widget .trade-input-row,
  .home-trade-widget .trade-output-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .hero.section-band-hero,
  .treasury-flow-preview-grid {
    grid-template-columns: 1fr;
  }
  .home-trade-widget {
    order: -1;
    position: relative;
    top: auto;
    width: 100%;
  }
  .hero-copy {
    order: 0;
  }
  .treasury-flow-preview-head {
    align-content: start;
  }
  .treasury-flow-card {
    min-height: 260px;
  }
}

@media (max-width: 640px) {
  .home-trade-widget {
    border-radius: 28px;
    padding: 16px;
  }
  .home-trade-widget .trade-card-head {
    align-items: flex-start;
    flex-direction: row;
  }
  .home-trade-widget .trade-card-head h3 {
    font-size: clamp(28px, 9vw, 40px);
  }
  .home-trade-widget .trade-live-pill {
    white-space: nowrap;
  }
  .home-trade-widget .trade-label-row,
  .home-trade-widget .trade-settings-row {
    flex-direction: column;
    align-items: stretch;
  }
  .treasury-flow-preview-head h3 {
    font-size: clamp(30px, 11vw, 48px);
  }
}
