/* ==========================================================================
   Depoimentos — estilo Arena (home): fundo, hover, reveal, mobile-first
   ========================================================================== */

.testimonials-page {
  position: relative;
  overflow-x: clip;
  padding-bottom: 0;
  background: var(--color-bg);
}

/* Ambiente global da página */
.testimonials-page__ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(124, 92, 255, 0.14), transparent 58%),
    radial-gradient(ellipse 45% 40% at 0% 45%, rgba(167, 139, 250, 0.06), transparent 50%),
    radial-gradient(ellipse 45% 40% at 100% 70%, rgba(91, 61, 240, 0.08), transparent 50%);
}

.testimonials-page > *:not(.testimonials-page__ambient) {
  position: relative;
  z-index: 1;
}

/* Faixas com fundo (destaques) */
.testimonials-band {
  position: relative;
  overflow: hidden;
}

.testimonials-band__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(124, 92, 255, 0.12), transparent 62%),
    radial-gradient(ellipse 40% 50% at 0% 40%, rgba(167, 139, 250, 0.05), transparent 55%);
}

.testimonials-band::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(124, 92, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 100%;
  opacity: 0.45;
  mask-image: linear-gradient(180deg, transparent, black 15%, black 85%, transparent);
}

/* --- Hero ---------------------------------------------------------------- */
.testimonials-hero {
  position: relative;
  padding-block: calc(var(--header-h) + 1.25rem) 1.75rem;
  overflow: hidden;
}

.testimonials-hero__bg,
.testimonials-hero__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.testimonials-hero__bg {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124, 92, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 50%, rgba(250, 204, 21, 0.07), transparent 50%);
  animation: testimonials-hero-glow 9s ease-in-out infinite alternate;
}

.testimonials-hero__mesh {
  opacity: 0.4;
  background-image:
    linear-gradient(90deg, rgba(124, 92, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(124, 92, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, black 0%, transparent 90%);
}

@keyframes testimonials-hero-glow {
  from { opacity: 0.85; transform: scale(1); }
  to { opacity: 1; transform: scale(1.03); }
}

.testimonials-hero .arena-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.testimonials-hero__title {
  margin: 0.45rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.testimonials-hero__title em {
  font-style: normal;
  font-weight: 800;
  background: linear-gradient(135deg, #e9d5ff 0%, var(--color-accent-soft) 40%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.testimonials-hero__lead {
  margin: 0 0 1.15rem;
  max-width: 38rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #cbd5e1;
}

.testimonials-hero__rating {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-bottom: 1.25rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(250, 204, 21, 0.28);
  background: rgba(250, 204, 21, 0.08);
  box-shadow: 0 0 24px rgba(250, 204, 21, 0.08);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .testimonials-hero__rating:hover {
    border-color: rgba(250, 204, 21, 0.45);
    box-shadow: 0 0 32px rgba(250, 204, 21, 0.18);
    transform: translateY(-2px);
  }
}

.testimonials-hero__rating-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #fde68a, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.testimonials-hero__rating-stars {
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  color: #facc15;
  text-shadow: 0 0 12px rgba(250, 204, 21, 0.35);
}

.testimonials-hero__rating-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
}

.testimonials-hero__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  width: 100%;
  max-width: 22rem;
}

@media (min-width: 420px) {
  .testimonials-hero__actions {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }
}

.testimonials-hero__btn {
  width: 100%;
  justify-content: center;
  min-height: 2.75rem;
}

/* Métricas do hero — mesmo espírito de .home-closing__benefits */
.testimonials-hero__metrics {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .testimonials-hero__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .testimonials-hero__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

.testimonials-hero__metric {
  position: relative;
  padding: 1.2rem 1.1rem 1.15rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    border-color 0.25s ease,
    transform 0.25s var(--ease-out),
    box-shadow 0.25s ease;
}

.testimonials-hero__metric::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(124, 92, 255, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .testimonials-hero__metric:hover {
    border-color: rgba(124, 92, 255, 0.32);
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(124, 92, 255, 0.12);
  }

  .testimonials-hero__metric:hover::after {
    opacity: 1;
  }
}

.testimonials-hero__metric--accent {
  border-color: rgba(34, 197, 94, 0.22);
}

.testimonials-hero__metric--accent::after {
  background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(34, 197, 94, 0.14), transparent 55%);
}

@media (hover: hover) and (pointer: fine) {
  .testimonials-hero__metric--accent:hover {
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 14px 36px rgba(34, 197, 94, 0.1);
  }
}

.testimonials-hero__metric-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.85rem;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(124, 92, 255, 0.22), rgba(91, 61, 240, 0.08));
  color: #ddd6fe;
  box-shadow:
    0 4px 16px rgba(124, 92, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition:
    background 0.3s ease,
    transform 0.35s var(--ease-out),
    box-shadow 0.3s ease,
    color 0.25s ease;
  animation: testimonials-metric-icon-float 4.5s ease-in-out infinite;
}

.testimonials-hero__metric-icon::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(167, 139, 250, 0.5),
    rgba(124, 92, 255, 0.15),
    rgba(167, 139, 250, 0.35)
  );
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  animation: testimonials-metric-icon-border 5s ease infinite;
  pointer-events: none;
}

.testimonials-hero__metric-icon svg {
  position: relative;
  z-index: 1;
  transition: transform 0.35s var(--ease-out), filter 0.3s ease;
}

.testimonials-hero__metric:nth-child(1) .testimonials-hero__metric-icon { animation-delay: 0s; }
.testimonials-hero__metric:nth-child(2) .testimonials-hero__metric-icon { animation-delay: 0.6s; }
.testimonials-hero__metric:nth-child(3) .testimonials-hero__metric-icon { animation-delay: 1.2s; }
.testimonials-hero__metric:nth-child(4) .testimonials-hero__metric-icon { animation-delay: 1.8s; }

.testimonials-hero__metric--accent .testimonials-hero__metric-icon {
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.28), rgba(22, 163, 74, 0.1));
  color: #bbf7d0;
  box-shadow:
    0 4px 16px rgba(34, 197, 94, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.testimonials-hero__metric--accent .testimonials-hero__metric-icon::before {
  background: linear-gradient(
    135deg,
    rgba(74, 222, 128, 0.55),
    rgba(34, 197, 94, 0.15),
    rgba(74, 222, 128, 0.35)
  );
}

@media (hover: hover) and (pointer: fine) {
  .testimonials-hero__metric:hover .testimonials-hero__metric-icon {
    background: linear-gradient(145deg, rgba(139, 109, 255, 0.38), rgba(91, 61, 240, 0.18));
    transform: translateY(-3px) scale(1.08);
    color: #f5f3ff;
    box-shadow:
      0 10px 28px rgba(124, 92, 255, 0.32),
      0 0 24px rgba(124, 92, 255, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  .testimonials-hero__metric:hover .testimonials-hero__metric-icon::before {
    opacity: 1;
  }

  .testimonials-hero__metric:hover .testimonials-hero__metric-icon svg {
    transform: scale(1.08);
    filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.55));
  }

  .testimonials-hero__metric--accent:hover .testimonials-hero__metric-icon {
    background: linear-gradient(145deg, rgba(52, 211, 153, 0.4), rgba(22, 163, 74, 0.2));
    box-shadow:
      0 10px 28px rgba(34, 197, 94, 0.28),
      0 0 20px rgba(34, 197, 94, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  .testimonials-hero__metric--accent:hover .testimonials-hero__metric-icon svg {
    filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.5));
  }
}

@keyframes testimonials-metric-icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes testimonials-metric-icon-border {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.testimonials-hero__metric-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.5vw, 1.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.testimonials-hero__metric--accent .testimonials-hero__metric-title {
  background: linear-gradient(135deg, #bbf7d0 0%, #4ade80 50%, #22c55e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.testimonials-hero__metric-text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--color-muted);
}

@media (min-width: 900px) {
  .testimonials-hero {
    padding-block: calc(var(--header-h) + 2rem) 2.5rem;
  }

  .testimonials-hero .arena-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: end;
    gap: 2rem;
  }

  .testimonials-hero__actions {
    max-width: 20rem;
  }
}

/* --- Section head -------------------------------------------------------- */
.testimonials-head {
  margin-bottom: 1.15rem;
}

.testimonials-head .arena-kicker {
  margin-bottom: 0.35rem;
}

.testimonials-head__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.testimonials-head__title em {
  font-style: normal;
  color: var(--color-accent-soft);
}

.testimonials-head__lead {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-muted);
}

/* --- Featured ------------------------------------------------------------ */
.testimonials-featured {
  padding-block: 1.75rem 2rem;
  border-top: 1px solid rgba(124, 92, 255, 0.14);
}

.testimonials-featured__scroll {
  position: relative;
}

.testimonials-featured__hint {
  margin: 0 0 0.5rem;
  padding-inline: var(--gutter);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  opacity: 0.85;
  transition: opacity 0.35s ease;
}

.testimonials-featured__hint.is-hidden {
  opacity: 0;
}

@media (min-width: 900px) {
  .testimonials-featured__hint {
    display: none;
  }
}

.testimonials-featured__scroll::before,
.testimonials-featured__scroll::after {
  content: '';
  position: absolute;
  top: 1.5rem;
  bottom: 0.35rem;
  width: clamp(1.5rem, 8vw, 3rem);
  z-index: 2;
  pointer-events: none;
}

.testimonials-featured__scroll::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-bg) 20%, transparent);
}

.testimonials-featured__scroll::after {
  right: 0;
  background: linear-gradient(270deg, var(--color-bg) 20%, transparent);
}

@media (min-width: 900px) {
  .testimonials-featured__scroll::before,
  .testimonials-featured__scroll::after {
    display: none;
  }
}

.testimonials-featured__track {
  display: flex;
  gap: 0.85rem;
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  padding-bottom: 0.35rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.testimonials-featured__track::-webkit-scrollbar {
  display: none;
}

.testimonials-featured__track .t-card {
  flex: 0 0 min(86vw, 18.5rem);
  scroll-snap-align: start;
  max-width: 18.5rem;
}

@media (min-width: 900px) {
  .testimonials-featured__track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .testimonials-featured__track .t-card {
    flex: none;
    max-width: none;
    width: auto;
  }
}

/* --- Cards (estilo home-reviews) ----------------------------------------- */
.t-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  padding: 1.2rem 1.1rem 1.05rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(124, 92, 255, 0.2);
  background: linear-gradient(
    155deg,
    rgba(30, 27, 48, 0.92) 0%,
    rgba(18, 21, 31, 0.98) 55%,
    rgba(14, 16, 24, 1) 100%
  );
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    opacity 0.22s ease;
}

.t-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-accent) 25%,
    var(--color-accent-soft) 50%,
    #c4b5fd 75%,
    transparent
  );
  opacity: 0.75;
  transition: opacity 0.35s ease;
}

.t-card::after {
  content: '\201C';
  position: absolute;
  top: 0.4rem;
  right: 0.75rem;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  font-weight: 800;
  color: rgba(124, 92, 255, 0.1);
  pointer-events: none;
  transition: color 0.35s ease;
}

.t-card__shine {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 55%;
  height: 55%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.12), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.t-card--featured {
  border-color: rgba(124, 92, 255, 0.32);
}

.t-card__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.t-card__stars {
  flex-shrink: 0;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #fde68a, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.3));
}

.t-card__tag {
  flex-shrink: 0;
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.22rem 0.5rem;
  border-radius: var(--radius-pill);
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.25s var(--ease-out);
}

.t-card__tag--premier { color: #ddd6fe; background: rgba(124, 92, 255, 0.2); border-color: rgba(124, 92, 255, 0.35); }
.t-card__tag--gc { color: #fde68a; background: rgba(234, 179, 8, 0.15); border-color: rgba(234, 179, 8, 0.35); }
.t-card__tag--faceit { color: #bae6fd; background: rgba(56, 189, 248, 0.12); border-color: rgba(56, 189, 248, 0.3); }
.t-card__tag--duo { color: #a7f3d0; background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.3); }

.t-card__body {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: 0 0 0.9rem;
}

.t-card__body p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.62;
  color: rgba(248, 250, 252, 0.92);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.t-card--featured .t-card__body p {
  font-size: 0.9375rem;
}

.t-card__foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(124, 92, 255, 0.14);
  min-width: 0;
}

.t-card__avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--color-accent), #5b3df0);
  box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.28);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.t-card[data-service='gc'] .t-card__avatar {
  background: linear-gradient(135deg, #ca8a04, #eab308);
  box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.32);
}

.t-card[data-service='faceit'] .t-card__avatar {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.32);
}

.t-card[data-service='duo'] .t-card__avatar {
  background: linear-gradient(135deg, #059669, #34d399);
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.32);
}

.t-card__who {
  min-width: 0;
  flex: 1;
}

.t-card__name {
  display: block;
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.t-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.15rem;
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #86efac;
  padding: 0.12rem 0.4rem;
  border-radius: var(--radius-pill);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.22);
}

/* Hover desktop — igual home-reviews */
@media (hover: hover) and (pointer: fine) {
  .t-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(167, 139, 250, 0.45);
    box-shadow:
      0 20px 48px rgba(0, 0, 0, 0.4),
      0 0 40px rgba(124, 92, 255, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .t-card:hover::before {
    opacity: 1;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-soft), #ddd6fe);
  }

  .t-card:hover::after {
    color: rgba(124, 92, 255, 0.18);
  }

  .t-card:hover .t-card__shine {
    opacity: 1;
  }

  .t-card:hover .t-card__avatar {
    transform: scale(1.06);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.35), 0 0 20px rgba(124, 92, 255, 0.25);
  }
}

/* Filtro animado */
.t-card.is-filtered-out {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
}

.t-card.is-filtered-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.t-card[hidden] {
  display: none !important;
}

/* --- Wall + filters ------------------------------------------------------ */
.testimonials-wall {
  padding-block: 2rem 2.5rem;
}

.testimonials-filters-wrap {
  position: sticky;
  top: calc(var(--header-h, 4rem) + 0.5rem);
  z-index: 3;
  margin-bottom: 1.15rem;
  padding: 0.7rem;
  border-radius: 1rem;
  border: 1px solid rgba(124, 92, 255, 0.18);
  background: rgba(10, 12, 18, 0.9);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.testimonials-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

@media (min-width: 480px) {
  .testimonials-filters {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.testimonials-filters__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.35rem;
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s var(--ease-out),
    box-shadow 0.2s ease;
}

@media (min-width: 640px) {
  .testimonials-filters__btn {
    font-size: 0.75rem;
    padding: 0.45rem 0.5rem;
  }
}

@media (hover: hover) and (pointer: fine) {
  .testimonials-filters__btn:not(:disabled):not(.is-active):hover {
    color: var(--color-text);
    border-color: rgba(124, 92, 255, 0.4);
    background: rgba(124, 92, 255, 0.12);
    transform: translateY(-1px);
  }
}

.testimonials-filters__btn.is-active {
  color: #fff;
  border-color: rgba(167, 139, 250, 0.5);
  background: linear-gradient(135deg, var(--color-accent) 0%, #6d4aff 100%);
  box-shadow: 0 4px 20px var(--color-accent-glow);
}

.testimonials-filters__btn.is-disabled,
.testimonials-filters__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.testimonials-filters__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.25);
}

.testimonials-filters__btn.is-active .testimonials-filters__count {
  background: rgba(255, 255, 255, 0.22);
}

.testimonials-filters__meta {
  margin: 0.55rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.testimonials-filters__meta #testimonialsVisibleCount {
  font-weight: 700;
  color: var(--color-accent-soft);
}

.testimonials-wall__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 600px) {
  .testimonials-wall__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .testimonials-wall__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.testimonials-wall__grid.is-empty {
  display: none;
}

.testimonials-wall__empty {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-muted);
  border: 1px dashed rgba(124, 92, 255, 0.3);
  border-radius: 1rem;
  background: rgba(124, 92, 255, 0.05);
}

.testimonials-wall__empty[hidden] {
  display: none;
}

/* --- Trust + CTA --------------------------------------------------------- */
.testimonials-trust {
  padding-block: 1.5rem 2rem;
  border-top: 1px solid rgba(124, 92, 255, 0.12);
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(124, 92, 255, 0.08), transparent 55%),
    color-mix(in srgb, var(--color-surface) 90%, transparent);
}

.testimonials-trust__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .testimonials-trust__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.testimonials-trust__list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 0.5rem;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-muted);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s var(--ease-out),
    color 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .testimonials-trust__list li:hover {
    border-color: rgba(124, 92, 255, 0.28);
    background: rgba(124, 92, 255, 0.08);
    color: var(--color-text);
    transform: translateY(-2px);
  }

  .testimonials-trust__list li:hover svg {
    transform: scale(1.08);
  }
}

.testimonials-trust__list svg {
  color: var(--color-accent-soft);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out);
}

.testimonials-cta {
  padding-block: 0 2.5rem;
}

.testimonials-cta__box {
  position: relative;
  overflow: hidden;
  padding: clamp(1.35rem, 4vw, 2rem);
  border-radius: 1.15rem;
  border: 1px solid rgba(124, 92, 255, 0.28);
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(124, 92, 255, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(91, 61, 240, 0.1), transparent 50%),
    var(--color-elevated);
  text-align: center;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.testimonials-cta__box::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 0.8s ease;
}

@media (hover: hover) and (pointer: fine) {
  .testimonials-cta__box:hover {
    border-color: rgba(167, 139, 250, 0.45);
    box-shadow:
      0 16px 48px rgba(0, 0, 0, 0.4),
      0 0 48px rgba(124, 92, 255, 0.12);
  }

  .testimonials-cta__box:hover::before {
    transform: translateX(100%);
  }
}

.testimonials-cta__title {
  position: relative;
  z-index: 1;
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 700;
}

.testimonials-cta__text {
  position: relative;
  z-index: 1;
  margin: 0 0 1.15rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-muted);
}

.testimonials-cta__actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  max-width: 20rem;
  margin-inline: auto;
}

@media (min-width: 480px) {
  .testimonials-cta__actions {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }
}

.testimonials-cta__btn {
  width: 100%;
  justify-content: center;
  min-height: 2.75rem;
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-hero__bg {
    animation: none;
  }

  .testimonials-cta__box::before {
    display: none;
  }

  .t-card.is-filtered-out,
  .t-card.is-filtered-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
