.fmg-featured {
  --navy: #141633;
  --purple: #7334f0;
  --border: #e5e7eb;
  --star-gold: #f59e0b;
  --star-gray: #d1d5db;
  font-family: "Nunito", sans-serif;
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  padding: 1.25rem 1rem 1rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(115, 52, 240, 0.18) 0%, rgba(115, 52, 240, 0) 55%),
    linear-gradient(160deg, #141633 0%, #1f2552 100%);
  box-shadow: 0 6px 18px rgba(20, 22, 51, 0.14), 0 24px 40px rgba(20, 22, 51, 0.2);
}

.fmg-featured__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 1.5rem 0;
  gap: 1rem;
}

.fmg-featured__title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.35rem, 1.2rem + 1vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: #ffffff;
  text-wrap: balance;
}

.fmg-featured__link {
  color: #d7c8ff;
  font-weight: 800;
  text-decoration: none;
  font-size: 1rem;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fmg-featured__link:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.fmg-featured__link:focus-visible {
  outline: none;
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(115, 52, 240, 0.2);
}

.fmg-featured__rail {
  display: block;
}

.fmg-featured__item {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #ffffff, #fbfcff);
  border: 1px solid var(--border);
  border-top-color: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transform: translateZ(0);
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    border-color 0.25s ease;
  box-shadow: 0 2px 6px rgba(20, 22, 51, 0.07), 0 16px 34px rgba(20, 22, 51, 0.1);
}

.fmg-featured__item::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, rgba(115, 52, 240, 0.38), rgba(20, 22, 51, 0.95));
  opacity: 0;
  transition: opacity 0.28s ease;
}

.fmg-featured__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(20, 22, 51, 0.08), 0 24px 38px rgba(20, 22, 51, 0.14);
  border-color: rgba(115, 52, 240, 0.42);
}

.fmg-featured__item:hover::after {
  opacity: 1;
}

.fmg-featured__item:focus-within::after {
  opacity: 1;
}

.fmg-featured__item:focus-within {
  border-color: rgba(115, 52, 240, 0.45);
  box-shadow: 0 0 0 3px rgba(115, 52, 240, 0.14), 0 4px 10px rgba(20, 22, 51, 0.08), 0 24px 38px rgba(20, 22, 51, 0.12);
}

.fmg-featured__item:active {
  transform: scale(0.992) translateY(1px);
  box-shadow: 0 1px 4px rgba(20, 22, 51, 0.08), 0 10px 22px rgba(20, 22, 51, 0.12);
}

.fmg-featured__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 280px;
  flex: 2;
}

.fmg-featured__logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  flex-shrink: 0;
  background: linear-gradient(155deg, #ffffff, #f8f9fd);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(20, 22, 51, 0.08), 0 8px 18px rgba(20, 22, 51, 0.08);
}

.fmg-featured__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fmg-featured__brandtext {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start;
}

.fmg-featured__provider {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  color: var(--navy);
  font-size: 1.25rem;
  letter-spacing: -0.012em;
  line-height: 1.2;
}

.fmg-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-top: 2px;
}

.fmg-stars {
  position: relative;
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  color: var(--star-gray);
  letter-spacing: 1px;
}

.fmg-stars__bg {
  white-space: nowrap;
}

.fmg-stars__fill {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  overflow: hidden;
  color: var(--star-gold);
}

.fmg-rating__value {
  color: #6b7280;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.fmg-rating__source {
  color: #00b67a;
  text-decoration: none;
  font-weight: 700;
}

.fmg-rating__source:hover {
  text-decoration: underline;
}

.fmg-featured__ribbon {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 99px;
  margin-top: 0.25rem;
}

.fmg-ribbon--blue {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #dbeafe;
}

.fmg-ribbon--yellow {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef9c3;
}

.fmg-ribbon--default {
  background: #f9fafb;
  color: #4b5563;
  border: 1px solid #f3f4f6;
}

.fmg-featured__prices {
  flex: 3;
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.PriceRow {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 140px;
}

.PriceRow__Label {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 800;
}

.PriceRow__Value {
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.PriceRow--avgmo .PriceRow__Value {
  color: var(--purple);
}

.fmg-featured__cta {
  flex: 1;
  text-align: right;
}

.fmg-btn,
.fmg-btn:visited {
  display: inline-block;
  background: linear-gradient(160deg, #7c3df4, #6b2fe3) !important;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition:
    transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    filter 0.2s ease;
  box-shadow: 0 2px 6px rgba(20, 22, 51, 0.08), 0 10px 22px rgba(115, 52, 240, 0.3);
}

.fmg-btn:hover {
  filter: brightness(1.03);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(20, 22, 51, 0.1), 0 14px 28px rgba(115, 52, 240, 0.35);
}

.fmg-btn:active {
  transform: scale(0.98) translateY(1px);
  box-shadow: 0 1px 4px rgba(20, 22, 51, 0.1), 0 8px 16px rgba(115, 52, 240, 0.24);
}

.fmg-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(115, 52, 240, 0.2), 0 4px 10px rgba(20, 22, 51, 0.1), 0 14px 28px rgba(115, 52, 240, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  .fmg-featured__item,
  .fmg-btn,
  .fmg-featured__link {
    transition: none;
  }

  .fmg-featured__item:hover,
  .fmg-featured__item:active,
  .fmg-btn:hover,
  .fmg-btn:active,
  .fmg-featured__link:hover {
    transform: none;
  }
}

@media (max-width: 900px) {
  .fmg-featured {
    margin-top: 0.6rem;
    padding: 1rem 0.85rem 0.85rem;
    border-radius: 22px;
  }

  .fmg-featured__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 0.95rem;
    gap: 0.7rem;
  }

  .fmg-featured__title {
    font-size: 1.22rem;
  }

  .fmg-featured__link {
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.01em;
  }

  .fmg-featured__rail {
    display: flex;
    overflow-x: auto;
    gap: 0.85rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-padding-left: 8px;
    scroll-padding-right: 8px;
    margin-left: 0;
    margin-right: 0;
    padding-left: 2px;
    padding-right: 2px;
    padding-bottom: 0.35rem;
  }

  .fmg-featured__rail::-webkit-scrollbar {
    display: none;
  }

  .fmg-featured__item {
    min-width: 88%;
    width: 88%;
    max-width: 88%;
    flex: 0 0 auto;
    scroll-snap-align: start;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 1.05rem;
    border-radius: 20px;
    gap: 1rem;
    margin-bottom: 0;
  }

  .fmg-featured__brand {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .fmg-featured__prices {
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px dashed var(--border);
    padding-top: 1rem;
  }

  .fmg-featured__cta {
    width: 100%;
    text-align: left;
    margin-top: 0.5rem;
  }

  .fmg-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .fmg-featured__prices {
    flex-direction: column;
    gap: 0.8rem;
    border-top: 1px solid var(--border);
  }

  .PriceRow {
    width: 100%;
    padding: 0.55rem 0.2rem;
  }

  .PriceRow__Label {
    font-size: 0.68rem;
  }

  .PriceRow__Value {
    font-size: 1.3rem;
  }
}
