/* Support and reviews, v3. Built on app.css: night-violet cards, warm light, Unbounded figures.
   Support is a two-column desk with a chat well; reviews open with a lit rating stage. */

/* Support: layout */
.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--space-6);
  align-items: start;
}
.support-card { padding: var(--space-7); }
.support-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3) var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}
.support-card__titles { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.support-card__sub { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); font-weight: 600; line-height: 20px; color: var(--text-2); }
.support-card__sub .icon { flex: none; color: var(--accent-2); }
.support-card__head > .badge { margin-top: 2px; }

/* Support: form */
.support-form { display: flex; flex-direction: column; gap: var(--space-5); }
.support-form__selects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.support-form .select:disabled { color: var(--text-2); }
.support-form.is-disabled .file-drop { opacity: .55; cursor: not-allowed; }
.support-form.is-disabled .file-drop:hover { border-color: rgba(255, 170, 130, .32); background: rgba(23, 13, 36, .6); }
.support-unread { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-meta); font-weight: 700; color: var(--accent-2); }
.support-hint .alert { align-items: center; flex-wrap: wrap; }
.support-hint .alert > .icon { margin-top: 0; }
.support-hint .alert > .grow { flex: 1 1 280px; }

/* Support: the chat well */
.chat {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-card);
  border: 1px solid var(--line-warm);
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(255, 61, 141, .07), transparent 70%),
    radial-gradient(60% 60% at 0% 100%, rgba(140, 60, 255, .08), transparent 70%),
    rgba(12, 6, 20, .6);
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, .35);
}
.chat__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-4);
  flex-wrap: wrap;
  padding: 14px var(--space-4) 14px 14px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-card) var(--r-card) 0 0;
  background: rgba(30, 17, 48, .5);
}
.chat__bar-main { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: var(--space-3); }
.chat__bar-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--accent);
  background: linear-gradient(180deg, rgba(255, 122, 61, .18), rgba(255, 61, 141, .1));
  border: 1px solid var(--line-warm);
}
.chat__bar-icon--sk { border: 0; }
.chat__bar-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chat__bar-title { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-1) 10px; min-height: 26px; font-size: 16px; font-weight: 800; line-height: 1.35; letter-spacing: -.005em; }
.chat__bar-number { font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.chat__bar-meta { display: flex; flex-wrap: nowrap; align-items: center; gap: 0 var(--space-2); min-width: 0; font-size: var(--fs-xs); font-weight: 600; line-height: 20px; color: var(--text-3); }
/* The topic keeps to one truncated line, so the dot and the date never dangle onto a second line */
.chat__bar-meta > span:first-child { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__bar-meta > span:last-child { flex: none; white-space: nowrap; }
.chat__bar-meta .mono { color: var(--text-2); }
.chat__bar-sep { flex: none; width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }
.chat__bar-actions { flex: none; display: flex; }
.chat__bar-actions:not(.has-action) { display: none; }
.chat__bar-action { display: contents; }
.chat__bar-sk { height: 16px; width: 180px; margin: 3px 0; }
.chat__bar-sk--meta { height: 10px; width: 260px; max-width: 100%; }

.chat__scroll {
  min-height: 300px;
  max-height: 520px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-5);
  border-radius: 0 0 var(--r-card) var(--r-card);
  scrollbar-width: thin;
}
.chat__scroll:focus-visible { outline-offset: -2px; }
.chat__list { display: flex; flex-direction: column; gap: var(--space-3); }
.chat__list > .empty-state { padding: var(--space-8) var(--space-4); }

.chat__day {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-1) 0;
  font-size: var(--fs-meta);
  font-weight: 700;
  line-height: 16px;
  color: var(--text-3);
}
.chat__day::before, .chat__day::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-soft)); }
.chat__day::after { background: linear-gradient(90deg, var(--line-soft), transparent); }
.chat__day span { padding: 4px 12px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-soft); }

/* Bubbles: staff on the left in violet with the shop mark, the buyer on the right in warm light */
.msg { display: flex; align-items: flex-end; gap: 10px; min-width: 0; }
.msg--user { justify-content: flex-end; }
.msg--system { justify-content: center; }
.msg.is-new, .chat__day.is-new { animation: rise-in var(--t-enter) var(--ease) both; }
.msg__avatar { flex: none; width: 32px; height: 32px; line-height: 0; border-radius: 10px; box-shadow: 0 8px 18px -8px rgba(255, 80, 90, .6); }
.msg__avatar .logo-mark { width: 32px; height: 32px; }

.msg__bubble {
  max-width: min(78%, 560px);
  min-width: 0;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--text);
  overflow-wrap: anywhere;
}
.msg--staff .msg__bubble {
  border-bottom-left-radius: var(--r-xs);
  background: linear-gradient(180deg, rgba(66, 38, 102, .78), rgba(42, 24, 68, .78));
  border: 1px solid rgba(196, 150, 255, .18);
  box-shadow: 0 12px 28px -20px rgba(0, 0, 0, .9), var(--hl);
}
.msg--user .msg__bubble {
  border-bottom-right-radius: var(--r-xs);
  background: var(--grad-soft), var(--raised);
  border: 1px solid var(--line-strong);
  box-shadow: 0 14px 30px -22px rgba(255, 90, 80, .5), inset 0 1px 0 rgba(255, 220, 190, .08);
}
.msg__author { display: block; margin-bottom: var(--space-1); font-size: var(--fs-meta); font-weight: 800; line-height: 18px; letter-spacing: .02em; color: var(--accent-2); }
.msg__text p + p { margin-top: var(--space-2); }
.msg__text a { color: var(--accent-2); text-decoration: underline; text-decoration-color: rgba(255, 179, 71, .35); text-underline-offset: 3px; }
.msg__text a:hover { text-decoration-color: currentColor; }
.msg__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-1);
  margin-top: 6px;
  font-size: var(--fs-meta);
  font-weight: 600;
  line-height: 16px;
  color: var(--text-3);
}
.msg--user .msg__meta { color: rgba(255, 220, 200, .62); }
.msg--user .msg__meta .icon { color: var(--accent-2); }

.msg__media { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.msg__author + .msg__media, .msg__text + .msg__media { margin-top: var(--space-2); }
.msg__image {
  position: relative;
  display: block;
  width: 100%;
  max-width: 300px;
  border-radius: var(--r-control);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--bg-deep);
  cursor: zoom-in;
}
.msg__image img { width: 100%; min-height: 80px; max-height: 240px; object-fit: cover; }
.msg__zoom {
  position: absolute;
  right: var(--space-2);
  bottom: var(--space-2);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text);
  background: rgba(18, 10, 30, .72);
  border: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease);
}
.msg__image:hover .msg__zoom, .msg__image:focus-visible .msg__zoom { opacity: 1; }
.msg__video { margin: 0; width: 100%; max-width: 320px; }
.msg__video video { width: 100%; max-height: 280px; border-radius: var(--r-control); background: #000; border: 1px solid var(--line-soft); }
.msg__video figcaption { display: flex; align-items: center; gap: var(--space-2); min-width: 0; margin-top: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); }
.msg__video figcaption .icon { color: var(--accent-2); }
.msg__size { flex: none; font-size: var(--fs-meta); color: var(--text-3); }

.msg__system {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-2);
  max-width: 92%;
  padding: 6px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 20px;
  color: var(--text-2);
  text-align: center;
}
.msg__system .icon { color: var(--accent-2); }
.msg__system time { font-size: var(--fs-meta); color: var(--text-3); }

.chat__skeleton { display: flex; flex-direction: column; gap: var(--space-3); }
.chat__sk-row { display: flex; align-items: flex-end; gap: 10px; }
.chat__sk-mark { flex: none; width: 32px; height: 32px; border-radius: 10px; }
.chat__sk { display: block; height: 56px; width: 56%; border-radius: 18px; }
.chat__sk--left { border-bottom-left-radius: var(--r-xs); }
.chat__sk--right { align-self: flex-end; width: 44%; border-bottom-right-radius: var(--r-xs); }
.chat__sk--short { width: 32%; height: 44px; }

.chat__jump {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--space-3);
  width: max-content;
  margin-inline: auto;
  background: rgba(30, 17, 48, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: fade-in var(--t-menu) var(--ease);
}

/* Support: composer */
.support-input { min-height: 120px; max-height: 280px; }
.support-count { font-size: var(--fs-meta); font-weight: 700; color: var(--text-3); }
.support-count.is-near { color: var(--warn); }
.support-attach .file-drop { min-height: 80px; }
.support-attach .file-drop__icon { position: relative; overflow: hidden; }
.support-attach .file-drop__icon.has-preview { background: #000; }
.support-attach .file-drop__icon img,
.support-attach .file-drop__icon video { width: 100%; height: 100%; object-fit: cover; }
.support-drop__badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(12, 6, 20, .4);
}
.support-limits { display: flex; align-items: flex-start; gap: 6px; }
.support-limits .icon { flex: none; margin-top: 3px; color: var(--accent-2); }
.support-actions { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-3); margin-top: var(--space-1); }
.support-actions__note { font-size: var(--fs-xs); font-weight: 600; color: var(--text-3); text-align: center; }
.support-shortcut { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1); font-size: var(--fs-xs); font-weight: 600; color: var(--text-3); }
.support-shortcut span { margin-left: var(--space-1); }

/* Support: aside */
.support-aside {
  position: sticky;
  top: calc(var(--header-h) + var(--space-6));
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-7) var(--space-6);
  overflow: hidden;
}
.support-aside::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 180px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(80% 100% at 100% 0%, rgba(255, 61, 141, .12), transparent 70%);
}
.support-aside > * { position: relative; }
.support-aside__lead { margin-top: var(--space-2); font-size: var(--fs-sm); line-height: 1.6; color: var(--text-2); }

/* Client number: the one figure here worth keeping, set on a lit inset */
.support-client {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px var(--space-4);
  border-radius: var(--r-card);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(110% 120% at 100% 0%, rgba(255, 61, 141, .2), transparent 60%),
    radial-gradient(90% 120% at 0% 100%, rgba(255, 179, 71, .12), transparent 60%),
    rgba(12, 6, 20, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 16px 40px -24px rgba(255, 80, 90, .45);
}
.support-client .copy-field { min-height: 0; padding: 0; gap: var(--space-3); background: none; border: 0; box-shadow: none; }
.support-client .copy-field__value {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .06em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  word-break: normal;
}
.support-client__placeholder { font-family: var(--mono); font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: .06em; color: var(--text-3); opacity: .7; }
.support-client__hint { font-size: var(--fs-xs); font-weight: 500; line-height: 1.5; color: var(--text-2); }

.support-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.support-facts li { display: flex; align-items: flex-start; gap: var(--space-3); }
.support-facts__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: var(--accent);
  background: linear-gradient(180deg, rgba(255, 122, 61, .16), rgba(255, 61, 141, .1));
  border: 1px solid var(--line-warm);
}
.support-facts__text { padding-top: 6px; font-size: var(--fs-sm); font-weight: 500; line-height: 20px; color: var(--text-2); }
.support-facts .mono { color: var(--text); }

.support-contacts { padding-top: var(--space-6); border-top: 1px solid var(--line-soft); }
.support-contacts__title { display: block; margin-bottom: var(--space-3); }
.support-contacts__list { display: flex; flex-direction: column; gap: var(--space-2); }
.support-contact {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 60px;
  padding: 10px 14px 10px 10px;
  border-radius: var(--r-control-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.support-contact:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .055); }
.support-contact__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
}
.support-contact__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.support-contact__label { font-size: var(--fs-meta); font-weight: 600; line-height: 16px; color: var(--text-3); }
.support-contact__value { font-size: var(--fs-sm); font-weight: 700; line-height: 20px; color: var(--text); overflow-wrap: anywhere; }
.support-contact__go { flex: none; color: var(--text-3); transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.support-contact:hover .support-contact__go { color: var(--accent-2); transform: translate(1px, -1px); }

/* Support: lightbox */
.lightbox-modal .modal__content { padding: var(--space-4); }
.lightbox { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; }
.lightbox__cap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; min-height: 40px; padding-right: 52px; }
.lightbox__name { display: inline-flex; align-items: center; gap: var(--space-2); min-width: 0; max-width: 100%; font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.lightbox__name .icon { color: var(--accent-2); }
.lightbox__img { display: block; width: auto; max-width: 100%; max-height: 76vh; margin: 0 auto; border-radius: var(--r-card); object-fit: contain; background: #000; }

/* Reviews: the rating stage */
.reviews-summary {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 300px;
  gap: var(--space-7) var(--space-8);
  align-items: center;
  padding: var(--space-8) var(--space-8) var(--space-8) 48px;
  margin-bottom: var(--space-10);
  box-shadow: 0 40px 100px -50px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.reviews-summary.is-error { display: block; padding: var(--space-2); }

.reviews-score { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); min-width: 0; }
.reviews-score__avg { display: flex; align-items: baseline; gap: var(--space-2); margin-top: var(--space-1); }
.reviews-score__num {
  padding-right: .04em;
  font-family: var(--font-display);
  font-size: clamp(72px, 3vw + 44px, 104px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.045em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 14px 34px rgba(255, 80, 90, .38));
}
.reviews-score__of { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: var(--text-3); }
.reviews-score__avg.is-empty .reviews-score__num { background: none; color: rgba(255, 246, 239, .22); -webkit-text-fill-color: currentColor; filter: none; }
.reviews-score__stars { line-height: 0; }
.reviews-score__stars .stars__base { color: rgba(255, 246, 239, .16); }
.reviews-score__count { font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); }

.reviews-dist {
  list-style: none;
  margin: 0;
  padding: var(--space-1) 0 var(--space-1) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  border-left: 1px solid var(--line-soft);
}
.reviews-dist__row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 14px;
  height: 20px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-3);
}
.reviews-dist__label { display: inline-flex; align-items: center; gap: 5px; }
.reviews-dist__label .icon { color: var(--accent-2); opacity: .7; }
.reviews-dist__track { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3); }
.reviews-dist__bar {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: rgba(255, 214, 190, .3);
  transform-origin: left center;
  animation: reviews-bar-in 900ms var(--ease) both;
}
.reviews-dist__row:nth-child(2) .reviews-dist__bar { animation-delay: 60ms; }
.reviews-dist__row:nth-child(3) .reviews-dist__bar { animation-delay: 120ms; }
.reviews-dist__row:nth-child(4) .reviews-dist__bar { animation-delay: 180ms; }
.reviews-dist__row:nth-child(5) .reviews-dist__bar { animation-delay: 240ms; }
@keyframes reviews-bar-in { from { transform: scaleX(0); } to { transform: none; } }
.reviews-dist__count { text-align: right; }
.reviews-dist__row.is-lead { color: var(--text); }
.reviews-dist__row.is-lead .reviews-dist__label .icon { opacity: 1; }
.reviews-dist__row.is-lead .reviews-dist__bar { background: var(--grad); box-shadow: 0 0 16px rgba(255, 90, 80, .55); }

/* The call to leave a review sits on a glass card inside the stage */
.reviews-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-4);
  min-width: 0;
  padding: var(--space-6);
  border-radius: var(--r-card-lg);
  border: 1px solid var(--line-strong);
  background: rgba(20, 10, 34, .55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.reviews-cta__head { display: flex; flex-direction: column; gap: 6px; }
.reviews-cta__title { font-size: 20px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.reviews-cta__text { font-size: var(--fs-sm); line-height: 1.55; color: var(--text-2); }
.reviews-cta__hint { display: flex; align-items: flex-start; gap: var(--space-2); font-size: var(--fs-xs); font-weight: 600; line-height: 20px; color: var(--text-3); }
.reviews-cta__hint .icon { flex: none; margin-top: 2px; color: var(--accent-2); }

.reviews-sk--label { width: 96px; }
.reviews-sk--avg { width: 168px; height: 88px; border-radius: var(--r-card); }
.reviews-sk--line { width: 132px; height: 18px; }
.reviews-sk--digit { height: 12px; }
.reviews-sk--bar { height: 8px; border-radius: 4px; }
.reviews-sk--btn { width: 100%; height: 48px; border-radius: var(--r-pill); }
.reviews-sk--round { border-radius: 50%; }
.reviews-sk--name { width: 48%; }
.reviews-sk--date { width: 32%; }
.reviews-sk--product { width: 60%; height: 28px; border-radius: var(--r-pill); }

/* Reviews: list */
.reviews-section__head { align-items: center; }
.reviews-section__title-row { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3) var(--space-4); min-width: 0; }
.reviews-section__hint { font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.reviews-meta {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .04);
  font-size: var(--fs-meta);
  font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
}
/* Two masonry columns: short reviews don't leave holes next to long ones */
.reviews-grid { columns: 2; column-gap: var(--space-5); }
.reviews-grid > * { break-inside: avoid; margin-bottom: var(--space-5); }
.review-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
  padding: var(--space-6);
  border-radius: var(--r-card-lg);
}
.review-card:hover { border-color: var(--line-strong); }
.review-card__head { display: flex; align-items: center; gap: 14px; }
.review-card__avatar { flex: none; line-height: 0; border-radius: 50%; box-shadow: 0 8px 22px -10px rgba(255, 80, 90, .6); }
.review-card__avatar[data-hue="1"] .avatar { background: linear-gradient(160deg, #4b1f52, #2a1236) padding-box, var(--grad) border-box; }
.review-card__avatar[data-hue="2"] .avatar { background: linear-gradient(160deg, #2e2464, #1a1440) padding-box, var(--grad) border-box; }
.review-card__avatar[data-hue="3"] .avatar { background: linear-gradient(160deg, #522339, #2c1220) padding-box, var(--grad) border-box; }
.review-card__who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.review-card__author { font-size: 16px; font-weight: 800; line-height: 22px; letter-spacing: -.005em; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-card__date { font-size: var(--fs-meta); font-weight: 600; line-height: 16px; color: var(--text-3); }
.review-card__rating { flex: none; line-height: 0; }
.review-card__product {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: var(--space-2);
  max-width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0 14px 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-warm);
  background: rgba(255, 122, 61, .06);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text);
}
.review-card__product .icon { flex: none; color: var(--accent-2); }
.review-card__product-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-card__variant { font-weight: 600; color: var(--text-3); }
.review-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.review-card__text { font-size: var(--fs-body); font-weight: 500; line-height: 1.65; color: var(--text); }
.review-card__text.is-clamped {
  max-height: calc(1.65em * 6);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
  mask-image: linear-gradient(180deg, #000 60%, transparent);
}
.review-card__more { padding-left: 0; }
.review-card__empty { font-size: var(--fs-sm); font-weight: 600; color: var(--text-3); }
.review-card__reply {
  margin-top: auto;
  padding: var(--space-4) 18px;
  border-radius: var(--r-card);
  border: 1px solid var(--line-warm);
  background: rgba(255, 122, 61, .07);
}
.review-card__reply-head { display: flex; margin-bottom: 10px; }
.review-card__reply-head .logo-mark { flex: none; }
.review-card__reply-text { font-size: var(--fs-sm); }
.reviews-more { display: flex; justify-content: center; margin-top: var(--space-8); }

/* Reviews: form modal */
.review-form { gap: var(--space-5); }
.review-form__head { display: flex; flex-direction: column; gap: var(--space-2); padding-right: var(--space-8); }
.review-form__title { font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.review-form__lead { font-size: var(--fs-sm); color: var(--text-2); }
.review-form__sign {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  min-height: 52px;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--r-control-lg);
  border: 1px solid var(--line-warm);
  background: rgba(12, 6, 20, .55);
  font-size: var(--fs-sm);
}
.review-form__sign-label { font-size: var(--fs-kicker); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.review-form__sign-name { min-width: 0; font-weight: 800; color: var(--text); overflow-wrap: anywhere; }
.review-form__sign-edit { margin-left: auto; font-size: var(--fs-xs); }
.review-form__caption { font-size: var(--fs-meta); font-weight: 700; color: var(--text-3); }
.review-form__caption.is-set { color: var(--accent-2); }
.review-form__caption.is-preview { color: var(--text-2); }
.review-form__rating .stars-input {
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-input);
  background: var(--input);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25);
}
.review-form__rating .stars-input__star { border-radius: 50%; }
.review-form .stars-input__radio:checked ~ .stars-input__star,
.review-form .stars-input__star:hover,
.review-form .stars-input__star:hover ~ .stars-input__star { color: var(--accent-2); filter: drop-shadow(0 0 8px rgba(255, 170, 70, .45)); }
.review-form__rating.has-error .stars-input { border-color: var(--neg); box-shadow: var(--ring-danger); }
.review-form__count { font-size: var(--fs-meta); font-weight: 700; color: var(--text-3); }
.review-form__count.is-near { color: var(--warn); }
.review-form__submit { display: flex; flex-direction: column; gap: var(--space-2); }
.review-form__submit .hint { text-align: center; }

.review-done { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); padding-top: var(--space-3); text-align: center; }
.review-done__check {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: var(--space-3);
  border-radius: 50%;
  color: var(--on-accent);
  background: var(--grad);
  box-shadow: 0 0 0 10px rgba(255, 122, 61, .1), 0 0 0 20px rgba(255, 61, 141, .05), 0 24px 60px -12px rgba(255, 80, 90, .8), inset 0 2px 0 rgba(255, 255, 255, .4);
  animation: review-pop 600ms var(--ease) both;
}
@keyframes review-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.review-done__title { font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.review-done__text { max-width: 360px; font-size: var(--fs-sm); color: var(--text-2); }
.review-done__actions { display: flex; flex-direction: column; gap: var(--space-2); width: 100%; margin-top: var(--space-5); }

/* Responsive */
@media (max-width: 1180px) {
  .support-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .reviews-summary { grid-template-columns: 220px minmax(0, 1fr) 280px; gap: var(--space-6); padding: var(--space-7); }
  .reviews-dist { padding-left: var(--space-6); }
}
@media (max-width: 1024px) {
  .support-layout { grid-template-columns: minmax(0, 1fr); }
  .support-aside { position: relative; top: auto; }
  .reviews-summary { grid-template-columns: 220px minmax(0, 1fr); }
  .reviews-cta { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-3) var(--space-6); }
  .reviews-cta__head { grid-column: 1; grid-row: 1; }
  .reviews-cta .btn { grid-column: 2; grid-row: 1 / span 2; width: auto; }
  .reviews-cta__hint { grid-column: 1; grid-row: 2; }
}
@media (max-width: 860px) {
  .reviews-grid { columns: 1; }
}
@media (max-width: 768px) {
  .support-card, .support-aside { padding: var(--space-6) var(--space-4); }
  .support-card__head { margin-bottom: var(--space-5); }
  .chat__scroll { min-height: 260px; max-height: min(520px, 62vh); padding: var(--space-4) var(--space-3); }
  .chat__bar { padding: var(--space-3); }
  .chat__bar-meta { flex-direction: column; align-items: flex-start; }
  .chat__bar-meta > span:first-child { max-width: 100%; }
  .chat__bar-sep { display: none; }
  .msg { gap: var(--space-2); }
  .msg__bubble { max-width: 86%; }
  .msg__avatar, .msg__avatar .logo-mark, .chat__sk-mark { width: 28px; height: 28px; }
  .msg__avatar { border-radius: 9px; }
  .reviews-summary { padding: var(--space-6) var(--space-5); margin-bottom: var(--space-9); border-radius: var(--r-card-lg); }
  .review-card { padding: var(--space-5) var(--space-4); border-radius: var(--r-card); }
}
@media (max-width: 640px) {
  .support-card__titles { flex: 1 1 200px; }
  .support-refresh { width: var(--btn-h); padding: 0; flex: none; }
  .support-refresh__label { display: none; }
  .chat__bar-icon { display: none; }
  .support-form__selects { grid-template-columns: minmax(0, 1fr); }
  .chat__bar-actions.has-action { width: 100%; }
  .chat__bar-actions.has-action .chat__bar-action .btn { flex: 1; }
  .msg__image, .msg__video { max-width: 100%; }
  .reviews-summary { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .reviews-score { align-items: center; text-align: center; }
  .reviews-dist { padding: var(--space-6) 0 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .reviews-cta { display: flex; padding: var(--space-5); }
  .reviews-cta .btn { width: 100%; }
  .reviews-section__head { align-items: flex-start; }
  .reviews-section__title-row { flex-wrap: nowrap; column-gap: var(--space-3); }
  .reviews-section__title-row h2 { font-size: 24px; }
  .reviews-section__hint { display: none; }
  .review-card__head { flex-wrap: wrap; }
  .review-form__head { padding-right: var(--space-7); }
  .review-form__sign-edit { margin-left: 0; }
  .lightbox-modal .modal__content { padding: var(--space-7) var(--space-3) var(--space-4); }
  .lightbox__cap { padding-right: 0; }
  .lightbox__img { max-height: 70vh; }
}
@media (max-width: 420px) {
  .reviews-section__title-row h2 { font-size: 22px; }
  .msg__bubble { max-width: 88%; padding: 10px 14px; }
  .support-client .copy-field__value, .support-client__placeholder { font-size: 19px; }
  .support-client .copy-field__btn { width: var(--btn-h); padding: 0; }
  .support-client .copy-field__btn-text { display: none; }
  .reviews-dist__row { gap: var(--space-3); }
}
@media (hover: none) {
  .msg__zoom { opacity: 1; }
}
@media (pointer: coarse), (max-width: 640px) {
  .support-shortcut { display: none; }
}
