/*
 * Reviews hub: the same graphite canvas and header geometry as the refreshed
 * product/information pages. Only sources and individual reviews are raised.
 */

html:has(main.reviews-hub) {
  background: #181b20 !important;
}

html body.reviews-hub-body {
  --reviews-page-width: 1180px;
  --reviews-page-gutter: clamp(14px, 3.5vw, 46px);
  --reviews-text: rgba(247, 249, 252, 0.96);
  --reviews-text-secondary: rgba(222, 228, 237, 0.74);
  --reviews-text-muted: rgba(202, 211, 223, 0.59);
  --reviews-border: rgba(255, 255, 255, 0.1);
  --reviews-border-strong: rgba(255, 255, 255, 0.17);
  --reviews-surface: rgba(255, 255, 255, 0.045);
  --reviews-surface-hover: rgba(255, 255, 255, 0.075);
  --reviews-green: #35e58d;
  color: var(--reviews-text);
  background:
    radial-gradient(circle at 15% 13%, rgba(53, 229, 141, 0.09), transparent 29%),
    radial-gradient(circle at 84% 17%, rgba(83, 151, 255, 0.07), transparent 31%),
    linear-gradient(180deg, #22262d 0%, #1d2127 48%, #181b20 100%) !important;
  background-attachment: fixed !important;
}

html body.reviews-hub-body::before {
  inset: -10% -8%;
  background:
    radial-gradient(circle at 18% 18%, rgba(53, 229, 141, 0.065), transparent 29%),
    radial-gradient(circle at 82% 18%, rgba(94, 158, 255, 0.05), transparent 30%) !important;
  filter: blur(90px) saturate(104%) !important;
  opacity: 0.72 !important;
}

html body.reviews-hub-body::after {
  opacity: 0.022;
}

html body.reviews-hub-body header,
html body.reviews-hub-body main.reviews-hub {
  width: min(var(--reviews-page-width), calc(100% - (var(--reviews-page-gutter) * 2))) !important;
  max-width: var(--reviews-page-width) !important;
  margin-inline: auto !important;
}

html body.reviews-hub-body header {
  width: min(calc(100% - clamp(28px, 7vw, 136px)), 1780px) !important;
  max-width: 1780px !important;
  margin-top: 8px !important;
  margin-bottom: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body.reviews-hub-body header :is(.nav, .nav-shell) {
  display: grid !important;
  grid-template-columns: auto auto minmax(140px, 1fr) auto !important;
  align-items: center !important;
  gap: clamp(10px, 1.35vw, 22px) !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 54px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body.reviews-hub-body header .logo-img {
  width: auto !important;
  height: clamp(30px, 2.5vw, 42px) !important;
  max-width: min(231px, 23vw) !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) drop-shadow(0 12px 24px rgba(0, 0, 0, 0.32)) !important;
}

html body.reviews-hub-body .header-product-pill {
  min-height: 42px !important;
  padding: 7px 18px 7px 9px !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #2bdc86 0%, #16b876 52%, #0e8a58 100%) !important;
  color: #03110a !important;
  box-shadow: 0 0 0 1px rgba(53, 216, 135, 0.16), 0 14px 34px rgba(24, 185, 120, 0.22) !important;
}

html body.reviews-hub-body header .header-quick-links {
  justify-self: center !important;
  gap: 8px !important;
}

html body.reviews-hub-body header .header-quick-link {
  min-height: 34px !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  color: rgba(255, 255, 255, 0.66) !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
  background: rgba(255, 255, 255, 0.045) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 8px 18px rgba(0, 0, 0, 0.12) !important;
}

html body.reviews-hub-body header .header-quick-link:hover,
html body.reviews-hub-body header .header-quick-link:focus-visible {
  color: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  background: rgba(255, 255, 255, 0.09) !important;
}

html body.reviews-hub-body header .header-quick-link--telegram,
html body.reviews-hub-body header .header-quick-link--telegram:hover,
html body.reviews-hub-body header .header-quick-link--telegram:focus-visible {
  color: #06110b !important;
  background: linear-gradient(135deg, #2bdc86, #16b876, #0e8a58) !important;
  border-color: rgba(53, 216, 135, 0.3) !important;
  box-shadow: 0 14px 30px rgba(24, 185, 120, 0.2) !important;
}

html body.reviews-hub-body header .header-tools {
  justify-self: end !important;
}

html body.reviews-hub-body .lang-current {
  min-height: 42px !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  color: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.11) !important;
  background: rgba(10, 12, 18, 0.7) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.09) !important;
}

html body.reviews-hub-body .lang-current span,
html body.reviews-hub-body .lang-current .arrow {
  color: rgba(255, 255, 255, 0.86) !important;
}

html body.reviews-hub-body header.is-scrolled :is(.nav, .nav-shell) {
  background: rgba(38, 42, 49, 0.82) !important;
  box-shadow: 0 12px 36px rgba(8, 10, 14, 0.22) !important;
  backdrop-filter: blur(16px) saturate(112%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(112%) !important;
}

html body.reviews-hub-body main.reviews-hub {
  display: grid;
  gap: 0;
  padding: clamp(26px, 3vw, 38px) 0 72px !important;
}

.reviews-hub *,
.reviews-hub *::before,
.reviews-hub *::after {
  box-sizing: border-box;
}

.reviews-hub__back {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 9px;
  min-height: 40px;
  margin: 0 0 clamp(24px, 3.5vw, 42px);
  padding: 0 15px;
  border: 1px solid var(--reviews-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.reviews-hub__back svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reviews-hub__back:hover {
  border-color: rgba(53, 229, 141, 0.38);
  background: rgba(53, 229, 141, 0.09);
  color: #fff;
}

.reviews-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.7fr);
  gap: clamp(42px, 7vw, 94px);
  align-items: end;
  padding: 0 0 clamp(54px, 7vw, 84px);
}

.reviews-hero__copy,
.reviews-section-heading > *,
.reviews-feed__header > *,
.reviews-source__copy,
.review-card__content {
  min-width: 0;
}

.reviews-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: rgba(83, 235, 158, 0.88);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reviews-hero h2 {
  max-width: 780px;
  margin: 0 0 18px;
  color: var(--reviews-text);
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(2.8rem, 7.5vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.reviews-hero--summary {
  margin-top: clamp(54px, 7vw, 82px);
  padding-top: clamp(42px, 5.5vw, 66px);
  border-top: 1px solid var(--reviews-border);
}

.reviews-hero__copy > p {
  max-width: 690px;
  margin: 0;
  color: var(--reviews-text-secondary);
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.7;
}

.reviews-stats {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--reviews-border-strong);
}

.reviews-stat {
  display: grid;
  grid-template-columns: minmax(86px, auto) minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 17px 0;
  border-bottom: 1px solid var(--reviews-border);
}

.reviews-stat strong {
  color: var(--reviews-text);
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1;
}

.reviews-stat span {
  color: var(--reviews-text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.reviews-sources,
.reviews-feed,
.reviews-trust {
  padding: clamp(42px, 5.5vw, 66px) 0 0;
  border-top: 1px solid var(--reviews-border);
}

.reviews-section-heading,
.reviews-feed__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 25px;
}

.reviews-section-heading h2,
.reviews-feed__header h2,
.reviews-trust h2 {
  margin: 0;
  color: var(--reviews-text);
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.reviews-section-heading > p {
  max-width: 380px;
  margin: 0 0 4px;
  color: var(--reviews-text-muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: right;
}

.reviews-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.reviews-source {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 15px;
  min-width: 0;
  min-height: 155px;
  padding: 20px;
  border: 1px solid var(--reviews-border);
  border-radius: 22px;
  background: var(--reviews-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  color: var(--reviews-text);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.reviews-source:hover {
  transform: translateY(-3px);
  border-color: var(--reviews-border-strong);
  background: var(--reviews-surface-hover);
}

.reviews-source__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.075);
}

.reviews-source--telegram .reviews-source__icon {
  background: rgba(42, 171, 238, 0.1);
}

.reviews-source__logo {
  display: block;
  width: 29px;
  height: 29px;
  object-fit: contain;
  border-radius: 8px;
}

.reviews-source--telegram .reviews-source__logo {
  width: 31px;
  height: 31px;
  border-radius: 50%;
}

.reviews-source__copy {
  display: grid;
  align-content: center;
  gap: 5px;
}

.reviews-source__name {
  color: var(--reviews-text);
  font-size: 15px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.reviews-source__meta,
.reviews-source__status {
  color: var(--reviews-text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.reviews-source__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
}

.reviews-source__status::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #35e58d;
  box-shadow: 0 0 0 4px rgba(53, 229, 141, 0.1);
  content: "";
}

.reviews-source.is-waiting .reviews-source__status::before {
  background: #8b97a9;
  box-shadow: 0 0 0 4px rgba(139, 151, 169, 0.1);
}

.reviews-source--loading,
.review-card--loading {
  overflow: hidden;
  min-height: 155px;
  background:
    linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.055) 50%, transparent 65%),
    var(--reviews-surface);
  background-size: 220% 100%;
  animation: reviews-shimmer 1.45s linear infinite;
}

.reviews-feed {
  padding-top: 0;
  border-top: 0;
}

.reviews-feed__header h1 {
  margin: 0;
  color: var(--reviews-text);
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.reviews-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.reviews-filter,
.reviews-more {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--reviews-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--reviews-text-secondary);
  font: 700 12px/1 "Manrope", sans-serif;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.reviews-filter:hover,
.reviews-filter.is-active {
  border-color: rgba(53, 229, 141, 0.34);
  background: rgba(53, 229, 141, 0.1);
  color: #fff;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.review-card {
  display: flex;
  min-width: 0;
  min-height: 230px;
  flex-direction: column;
  padding: 21px;
  overflow: hidden;
  border: 1px solid var(--reviews-border);
  border-radius: 22px;
  background: var(--reviews-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.review-card__top,
.review-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-card__source {
  min-width: 0;
  overflow: hidden;
  color: var(--reviews-text-secondary);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-card__rating {
  flex: 0 0 auto;
  color: #ffd86b;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.review-card__text {
  margin: 20px 0;
  padding: 5px 12px 5px 14px;
  border-left: 2px solid rgba(83, 235, 158, 0.48);
  border-radius: 0 10px 10px 0;
  color: rgba(248, 251, 255, 0.92) !important;
  background: linear-gradient(90deg, rgba(83, 235, 158, 0.055), transparent 72%);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.62;
  letter-spacing: -0.005em;
  text-shadow: 0 1px 16px rgba(255, 255, 255, 0.045);
  overflow-wrap: anywhere;
}

.review-card__footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.review-card__meta {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.review-card__meta strong {
  overflow: hidden;
  color: var(--reviews-text-secondary);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-card__meta span {
  color: var(--reviews-text-muted);
  font-size: 10px;
}

.review-card__link {
  flex: 0 0 auto;
  color: rgba(83, 235, 158, 0.88);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.review-card__link:hover {
  color: #8af2bc;
}

.reviews-empty {
  padding: 38px 22px;
  border: 1px dashed var(--reviews-border-strong);
  border-radius: 22px;
  text-align: center;
}

.reviews-empty strong {
  color: var(--reviews-text);
}

.reviews-empty p {
  margin: 8px 0 0;
  color: var(--reviews-text-muted);
  font-size: 13px;
}

.reviews-more {
  display: block;
  min-width: 160px;
  margin: 24px auto 0;
}

.reviews-more[hidden] {
  display: none;
}

.reviews-trust {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  margin-top: clamp(54px, 7vw, 82px);
}

.reviews-trust p {
  max-width: 690px;
  margin: 14px 0 0;
  color: var(--reviews-text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.reviews-trust__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.reviews-trust__actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid rgba(53, 229, 141, 0.34);
  border-radius: 999px;
  background: rgba(53, 229, 141, 0.12);
  color: #edfff5;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.reviews-trust__actions a.is-secondary {
  border-color: var(--reviews-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--reviews-text-secondary);
}

.reviews-hub :is(a, button):focus-visible {
  outline: 2px solid rgba(83, 235, 158, 0.82);
  outline-offset: 3px;
}

@keyframes reviews-shimmer {
  to {
    background-position: -220% 0;
  }
}

@media (max-width: 980px) {
  html body.reviews-hub-body header {
    width: calc(100% - 28px) !important;
  }

  html body.reviews-hub-body header :is(.nav, .nav-shell) {
    grid-template-columns: auto auto 1fr !important;
  }

  html body.reviews-hub-body header .header-quick-links {
    display: none !important;
  }

  .reviews-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  }

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

@media (max-width: 760px) {
  html body.reviews-hub-body {
    --reviews-page-gutter: 14px;
    background-attachment: scroll !important;
  }

  html body.reviews-hub-body header {
    width: calc(100% - 28px) !important;
    margin-top: 4px !important;
  }

  html body.reviews-hub-body main.reviews-hub {
    padding-top: 22px !important;
    padding-bottom: 54px !important;
  }

  .reviews-hero,
  .reviews-trust {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .reviews-hero {
    align-items: start;
    padding-bottom: 48px;
  }

  .reviews-section-heading,
  .reviews-feed__header {
    display: grid;
    gap: 12px;
    align-items: start;
  }

  .reviews-section-heading > p {
    margin: 0;
    text-align: left;
  }

  .reviews-filters,
  .reviews-trust__actions {
    justify-content: flex-start;
  }

  .reviews-source-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .review-card {
    min-height: 205px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-source,
  .reviews-filter,
  .reviews-more {
    transition: none;
  }

  .reviews-source--loading,
  .review-card--loading {
    animation: none;
  }
}
