.sr-market-section {
  position: relative;
  padding: 6rem 0 6.5rem;
}

.sr-market-inner {
  width: min(1200px, calc(100% - 3rem));
  margin: 0 auto;
}

.sr-market-header {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.sr-market-eyebrow {
  margin: 0 0 0.9rem;
  color: #3ecf8e;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sr-market-title {
  display: grid;
  justify-items: center;
  margin: 0;
  color: #fafafa;
  font-size: clamp(2rem, 3.65vw, 3.72rem);
  line-height: 1.05;
  font-weight: 740;
  letter-spacing: -0.035em;
}

.sr-market-title-line {
  display: block;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .sr-market-title {
    font-size: clamp(1.78rem, 7.2vw, 2.85rem);
    letter-spacing: -0.025em;
  }
}

.sr-market-copy {
  max-width: 650px;
  margin: 1rem auto 0;
  color: #a7afa9;
  font-size: 1.02rem;
  line-height: 1.75;
}

.sr-market-console {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  align-items: center;
  gap: 0;
  margin-top: 3rem;
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;
  background:
    radial-gradient(circle at 32% 50%, rgba(62, 207, 142, 0.07), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.012);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 28px 80px rgba(0, 0, 0, 0.22);
}

.sr-market-stack {
  position: relative;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  justify-self: center;
  width: min(100%, 268px);
  padding: 0.2rem 0.9rem 0.2rem 0.2rem;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.sr-market-stack::after {
  content: "";
  position: absolute;
  top: -0.2rem;
  right: 0;
  bottom: -0.2rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.sr-market-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 3.35rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.016);
  color: #9ca59f;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.sr-market-tab:hover,
.sr-market-tab.is-active {
  border-color: rgba(62, 207, 142, 0.28);
  background: rgba(62, 207, 142, 0.07);
  color: #f2f5f2;
}

.sr-market-tab.is-active::after {
  content: "";
  position: absolute;
  top: 0.65rem;
  right: -0.9rem;
  bottom: 0.65rem;
  width: 2px;
  border-radius: 999px;
  background: #3ecf8e;
  box-shadow: 0 0 18px rgba(62, 207, 142, 0.38);
  pointer-events: none;
}

.sr-market-tab span:first-child {
  font-size: 0.92rem;
  font-weight: 650;
}

.sr-market-tab span:last-child {
  color: #3ecf8e;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
}

.sr-market-tab.is-active span:last-child {
  opacity: 1;
}

.sr-market-panel {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: clamp(1.25rem, 2.6vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-left-color: rgba(62, 207, 142, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 78% 0%, rgba(62, 207, 142, 0.09), transparent 22rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.018);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 28px 80px rgba(0, 0, 0, 0.26);
}

.sr-market-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(62, 207, 142, 0), rgba(62, 207, 142, 0.22), rgba(62, 207, 142, 0));
  pointer-events: none;
}

.sr-market-panel-top {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.sr-market-active-label {
  color: #3ecf8e;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sr-market-panel h3 {
  margin: 0.45rem 0 0;
  color: #f7f8f7;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.05;
  font-weight: 740;
  letter-spacing: -0.03em;
}

.sr-market-panel p {
  max-width: 650px;
  margin: 1rem 0 0;
  color: #a1aaa4;
  font-size: 0.96rem;
  line-height: 1.7;
}

.sr-market-badge {
  flex: 0 0 auto;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(62, 207, 142, 0.2);
  border-radius: 999px;
  color: #3ecf8e;
  background: rgba(62, 207, 142, 0.055);
  font-size: 0.72rem;
  font-weight: 700;
}

.sr-market-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.sr-market-logic {
  margin-top: 1.35rem;
  padding: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.016);
}

.sr-market-process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.sr-market-step {
  position: relative;
  min-height: 112px;
  padding: 0.85rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.16);
}

.sr-market-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.65rem;
  width: 0.65rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(62, 207, 142, 0.34), rgba(62, 207, 142, 0));
}

.sr-market-step span {
  display: block;
  color: #3ecf8e;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.sr-market-step strong {
  display: block;
  margin-top: 0.45rem;
  color: #f1f4f1;
  font-size: 0.9rem;
  font-weight: 720;
}

.sr-market-step em {
  display: block;
  margin-top: 0.38rem;
  color: #87918b;
  font-size: 0.73rem;
  line-height: 1.45;
  font-style: normal;
}

.sr-market-packet {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(62, 207, 142, 0.07), transparent 16rem),
    rgba(0, 0, 0, 0.13);
}

.sr-market-block {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.16);
}

.sr-market-block-title {
  color: #f1f4f1;
  font-size: 0.9rem;
  font-weight: 700;
}

.sr-market-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.sr-market-chip {
  padding: 0.42rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  color: #b5bdb8;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.75rem;
}

.sr-market-workflows {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.sr-market-workflow {
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 10px;
  color: #c9d0cb;
  background: rgba(255, 255, 255, 0.018);
  font-size: 0.8rem;
  line-height: 1.45;
}

.sr-market-output {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.sr-market-output-row {
  display: grid;
  grid-template-columns: 4.8rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.62rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 10px;
  color: #d9dfdb;
  background: rgba(255, 255, 255, 0.018);
  font-size: 0.78rem;
}

.sr-market-output-row span:first-child {
  color: #6f7972;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .sr-market-console {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 1rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .sr-market-stack {
    display: flex;
    justify-self: stretch;
    width: 100%;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .sr-market-tab {
    min-width: 170px;
  }

  .sr-market-stack::after,
  .sr-market-tab.is-active::after,
  .sr-market-panel::before {
    display: none;
  }

  .sr-market-grid {
    grid-template-columns: 1fr;
  }

  .sr-market-process {
    grid-template-columns: 1fr;
  }

  .sr-market-step {
    min-height: auto;
  }

  .sr-market-step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .sr-market-section {
    padding: 4.5rem 0 5rem;
  }

  .sr-market-inner {
    width: min(100% - 2rem, 1200px);
  }

  .sr-market-panel {
    min-height: auto;
  }
}
