.ecomrank-section {
  padding: 5.8rem 0 5.5rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 0, 68, .22), transparent 32%),
    linear-gradient(135deg, #252525 0%, #171717 100%);
}

.ecomrank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .72fr);
  gap: 3.2rem;
  align-items: center;
}

.ecomrank-content {
  max-width: 780px;
}

.ecomrank-eyebrow {
  width: max-content;
  margin: 0 0 1rem;
  padding: .45rem .72rem;
  border-radius: 999px;
  background: rgba(255, 0, 68, .14);
  border: 1px solid rgba(255, 0, 68, .28);
  color: #ff5d82;
  font-size: .82rem;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.ecomrank-title {
  max-width: 760px;
}

.ecomrank-title span {
  display: inline;
  color: var(--color-main);
}

.ecomrank-lead {
  margin: 1.35rem 0 0;
  max-width: 760px;
  color: rgba(255, 255, 255, .82);
  font-size: 1.18rem;
  line-height: 1.68;
  font-weight: 600;
}

.ecomrank-text {
  margin: .95rem 0 0;
  max-width: 720px;
  color: rgba(255, 255, 255, .62);
  font-size: 1.02rem;
  line-height: 1.68;
}

.ecomrank-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 1rem;
  align-items: center;
  margin-top: 1.8rem;
}

.ecomrank-actions .ecomrank-cta {
  width: auto;
  min-width: 210px;
  height: 56px;
  padding: 0 1.55rem;
  font-size: 1rem;
}

.ecomrank-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: .75rem 1rem;
  border-radius: 999px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  font-size: .95rem;
  line-height: 1;
  font-weight: 900;
}

.ecomrank-link:hover {
  color: #fff;
  border-color: rgba(255, 0, 68, .48);
  background: rgba(255, 0, 68, .14);
}

.ecomrank-image-card {
  position: relative;
  width: min(100%, 500px);
  justify-self: end;
  border-radius: 30px;
  padding: .65rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)),
    rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, .34), 0 0 0 1px rgba(255, 255, 255, .04) inset;
}

.ecomrank-image-card:before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: 0;
  background: radial-gradient(circle, rgba(255, 0, 68, .18), transparent 58%);
  pointer-events: none;
}

.ecomrank-image-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 1rem 2.6rem rgba(0, 0, 0, .28);
}

.ecomrank-panel {
  position: relative;
  min-height: 420px;
  padding: 1.45rem;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .055)),
    rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(255, 255, 255, .04);
  overflow: hidden;
}

.ecomrank-panel:before {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .08);
  pointer-events: none;
}

.ecomrank-panel-head {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .35rem;
  padding: .9rem .95rem 1.15rem;
  border-radius: 22px;
  background: rgba(0, 0, 0, .18);
}

.ecomrank-panel-head span {
  color: rgba(255, 255, 255, .58);
  font-size: .88rem;
  line-height: 1.2;
  font-weight: 900;
}

.ecomrank-panel-head strong {
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: .95;
  font-weight: 800;
  letter-spacing: -.06em;
}

.ecomrank-panel-head small {
  color: rgba(255, 255, 255, .66);
  font-size: .9rem;
  line-height: 1.35;
  font-weight: 700;
}

.ecomrank-panel-chart {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: .55rem;
  height: 120px;
  margin: 1.15rem .45rem;
  padding: 0 .25rem;
}

.ecomrank-panel-chart i {
  display: block;
  flex: 1;
  min-width: 0;
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, #ff3d6e, #ff0044);
  box-shadow: 0 .75rem 1.6rem rgba(255, 0, 68, .22);
}

.ecomrank-panel-chart i:nth-child(1) { height: 42%; opacity: .62; }
.ecomrank-panel-chart i:nth-child(2) { height: 58%; opacity: .72; }
.ecomrank-panel-chart i:nth-child(3) { height: 76%; opacity: .86; }
.ecomrank-panel-chart i:nth-child(4) { height: 52%; opacity: .7; }
.ecomrank-panel-chart i:nth-child(5) { height: 92%; }

.ecomrank-panel-rows {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .65rem;
}

.ecomrank-panel-row {
  display: grid;
  gap: .42rem;
  padding: .72rem .82rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
}

.ecomrank-panel-row span {
  color: rgba(255, 255, 255, .82);
  font-size: .88rem;
  line-height: 1.2;
  font-weight: 800;
}

.ecomrank-panel-row b {
  display: block;
  width: var(--row-width);
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-main), #ff8a00);
}

.ecomrank-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.ecomrank-card {
  position: relative;
  min-height: 190px;
  padding: 1.35rem 1.3rem 1.5rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
  overflow: hidden;
}

.ecomrank-card:before {
  content: "";
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-main);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .52), 0 .45rem 1rem rgba(255, 0, 68, .24);
}

.ecomrank-card:after {
  content: "";
  position: absolute;
  right: 1.72rem;
  top: 1.62rem;
  width: 12px;
  height: 7px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(-45deg);
}

.ecomrank-card-num {
  position: absolute;
  right: .9rem;
  bottom: -.18rem;
  color: rgba(255, 255, 255, .08);
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.08em;
}

.ecomrank-card h3 {
  position: relative;
  z-index: 1;
  max-width: 86%;
  margin: 0 0 .85rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.18rem;
  line-height: 1.28;
  font-weight: 900;
  letter-spacing: -.015em;
}

.ecomrank-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, .64);
  font-size: .95rem;
  line-height: 1.6;
}

@media (max-width: 1199.98px) {
  .ecomrank-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ecomrank-content {
    max-width: none;
  }

  .ecomrank-image-card {
    justify-self: start;
    width: min(100%, 520px);
  }

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

@media (max-width: 767.98px) {
  .ecomrank-section {
    padding: 3.6rem 0 3.8rem;
  }

  .ecomrank-layout {
    gap: 1.4rem;
  }

  .ecomrank-eyebrow {
    margin-bottom: .85rem;
    font-size: .72rem;
  }

  .ecomrank-lead {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.58;
  }

  .ecomrank-text {
    font-size: .94rem;
    line-height: 1.58;
  }

  .ecomrank-actions {
    display: grid;
    gap: .7rem;
    margin-top: 1.35rem;
  }

  .ecomrank-actions .ecomrank-cta,
  .ecomrank-link {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    height: auto;
    justify-content: center;
    font-size: .94rem;
  }

  .ecomrank-image-card {
    width: 100%;
    padding: .42rem;
    border-radius: 22px;
  }

  .ecomrank-image-card img {
    border-radius: 18px;
  }

  .ecomrank-cards {
    grid-template-columns: 1fr;
    gap: .8rem;
  }

  .ecomrank-card {
    min-height: 0;
    padding: 1.15rem 3.9rem 1.35rem 1.15rem;
    border-radius: 20px;
  }

  .ecomrank-card h3 {
    font-size: 1.08rem;
  }

  .ecomrank-card p {
    font-size: .92rem;
  }
}
