/**
 * Ranking / countdown / maior-menor — campanha MSR (v2 premium)
 */
.msr-lb-panel {
  position: relative;
  padding: 1.35rem 1.05rem 1.4rem !important;
  border-radius: 1.25rem !important;
  margin: 0.85rem 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
/* linha de destaque no topo do painel */
.msr-lb-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--incrivel-checkout-color-p, var(--primary-color, #34d399)),
    var(--incrivel-checkout-color-s, var(--secondary-color, #fb923c)),
    transparent
  );
  opacity: 0.85;
}
.msr-lb-panel__head {
  text-align: center;
  margin-bottom: 1.15rem;
}
.msr-lb-panel__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--incrivel-checkout-color-p, var(--primary-color, #34d399));
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}
.msr-lb-panel__title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--incrivel-cardColor, #f3f4f6);
  line-height: 1.2;
}
.msr-lb-panel__desc {
  margin-top: 0.5rem;
  font-size: 0.83rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.64);
}
.msr-lb-subtitle {
  margin: 1.15rem 0 0.7rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
}
.msr-lb-subtitle::before,
.msr-lb-subtitle::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18%;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.msr-lb-subtitle::before { left: 6%; }
.msr-lb-subtitle::after { right: 6%; }

/* ===== Countdown ===== */
.msr-lb-countdown {
  margin: 0 0 1.1rem;
  padding: 0.9rem 0.7rem;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.msr-lb-countdown__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.7rem;
  text-align: center;
}
.msr-lb-countdown__grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.45rem;
  width: 100%;
}
.msr-lb-countdown__cell {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 0.6rem 0.2rem;
  border-radius: 0.7rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.msr-lb-countdown__val {
  display: block;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.18);
}
.msr-lb-countdown__lbl {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.56rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== Pódio do ranking ===== */
.msr-lb-podium {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.5rem;
}
.msr-lb-podium__item {
  flex: 1 1 0;
  min-width: 0;
  max-width: 34%;
  border-radius: 1rem;
  padding: 0.95rem 0.4rem 0.85rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-sizing: border-box;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.msr-lb-podium__item--1 {
  order: 2;
  min-height: 142px;
  padding-top: 1.5rem;
  border-color: var(--incrivel-checkout-color-p, var(--primary-color, #34d399));
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.22), rgba(255, 255, 255, 0.03));
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.38),
    0 0 26px -6px var(--incrivel-checkout-color-p, #34d399);
  transform: translateY(-6px);
  z-index: 2;
}
.msr-lb-podium__item--1::before {
  content: "👑";
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.15rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}
.msr-lb-podium__item--2 {
  order: 1;
  min-height: 114px;
}
.msr-lb-podium__item--3 {
  order: 3;
  min-height: 106px;
}
.msr-lb-podium__medal {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.18);
}
.msr-lb-podium__rank {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.28);
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
}
.msr-lb-podium__item--1 .msr-lb-podium__rank {
  color: var(--incrivel-checkout-color-p, var(--primary-color, #34d399));
  background: rgba(0, 0, 0, 0.35);
}
.msr-lb-podium__name {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--incrivel-cardColor, #f3f4f6);
  word-break: break-word;
}
.msr-lb-podium__meta {
  margin-top: 0.4rem;
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--incrivel-checkout-color-p, var(--primary-color, #34d399));
  background: rgba(255, 255, 255, 0.06);
  padding: 0.18rem 0.52rem;
  border-radius: 999px;
}

/* ===== Lista 4º+ ===== */
.msr-lb-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.msr-lb-list__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  border-radius: 0.5rem;
  transition: background 0.2s ease;
}
.msr-lb-list__item:hover {
  background: rgba(255, 255, 255, 0.03);
}
.msr-lb-list__pos {
  flex: 0 0 2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}
.msr-lb-list__name {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  color: var(--incrivel-cardColor, #e5e7eb);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.msr-lb-list__qty {
  flex: 0 0 auto;
  font-weight: 800;
  color: var(--incrivel-checkout-color-p, var(--primary-color, #34d399));
}
.msr-lb-empty {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.48);
  margin: 0.5rem 0 0;
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* ===== Maior e menor cota ===== */
.msr-lb-mm-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.65rem;
  width: 100%;
}
.msr-lb-mm-card {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 1rem;
  padding: 1.15rem 0.6rem 1.05rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
.msr-lb-mm-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.msr-lb-mm-card--high {
  border-color: var(--incrivel-checkout-color-p, var(--primary-color, #34d399));
  background: linear-gradient(165deg, rgba(52, 211, 153, 0.14), rgba(255, 255, 255, 0.02));
}
.msr-lb-mm-card--high::before {
  background: var(--incrivel-checkout-color-p, var(--primary-color, #34d399));
}
.msr-lb-mm-card--low {
  border-color: var(--incrivel-checkout-color-s, var(--secondary-color, #fb923c));
  background: linear-gradient(165deg, rgba(251, 146, 60, 0.14), rgba(255, 255, 255, 0.02));
}
.msr-lb-mm-card--low::before {
  background: var(--incrivel-checkout-color-s, var(--secondary-color, #fb923c));
}
.msr-lb-mm-card__icon {
  width: 2.7rem;
  height: 2.7rem;
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--incrivel-checkout-color-p, var(--primary-color, #34d399));
}
.msr-lb-mm-card--low .msr-lb-mm-card__icon {
  color: var(--incrivel-checkout-color-s, var(--secondary-color, #fb923c));
}
.msr-lb-mm-card__label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.msr-lb-mm-card__number {
  margin-top: 0.35rem;
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--incrivel-cardColor, #fff);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  word-break: break-all;
}
.msr-lb-mm-card__owner {
  margin-top: 0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.64);
  word-break: break-word;
}

@media (max-width: 480px) {
  .msr-lb-panel__title { font-size: 1.15rem; }
  .msr-lb-podium__name { font-size: 0.7rem; }
  .msr-lb-podium__item--1 { min-height: 130px; }
  .msr-lb-mm-card__number { font-size: 1.3rem; }
  .msr-lb-countdown__val { font-size: 1.1rem; }
  .msr-lb-countdown__lbl { font-size: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .msr-lb-podium__item,
  .msr-lb-list__item {
    transition: none;
  }
}
