/* ==========================================================================
   Support page — chat with the team
   ========================================================================== */

.support-head {
  display: grid;
  gap: 6px;
  animation: dvRise 0.6s var(--ease-out) both;
}
.support-head__title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.support-head__sub {
  font-size: 15px;
  color: var(--muted);
}

.support-wrap {
  margin-top: clamp(16px, 3vw, 28px);
  display: grid;
  gap: 14px;
  animation: dvRise 0.6s 0.1s var(--ease-out) both;
}

/* quick questions */
.support-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.support-topic {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  width: auto;
  white-space: nowrap;
  flex-shrink: 0;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  transition: border-color 0.25s var(--ease-out), background-color 0.25s var(--ease-out),
    color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.support-topic:hover {
  border-color: var(--ink);
}
.support-topic svg { width: 15px; height: 15px; color: var(--olive-deep); }

.support-chat .dv-chat {
  height: clamp(440px, 62vh, 660px);
  animation: none;
}
.support-chat .dv-chat__head { background: var(--ink); border-bottom: 0; }
.support-chat .dv-chat__who b { color: var(--white); }
.support-chat .dv-chat__who > span { color: rgba(255, 255, 255, 0.55); }
.support-chat .dv-chat__badge { background: var(--lime); color: var(--ink); }
/* guarantor avatar must not blend into the black chat head */
.support-chat .dv-chat__head .chat-avatar--ink { background: var(--lime); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .support-head, .support-wrap { animation: none; }
}

/* admin: tickets list */
.ticket-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  animation: msgIn 0.3s var(--ease-out);
}
.ticket-row:hover { border-color: var(--ink); transform: translateX(4px); }
.ticket-row.is-selected { border-color: var(--ink); background: var(--lime); }
.ticket-row__who { min-width: 130px; }
.ticket-row__who b { display: block; font-size: 14.5px; font-weight: 600; }
.ticket-row__who span { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.ticket-row__msg { flex: 1; font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-row__status { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-soft); white-space: nowrap; }
.ticket-row.is-selected .ticket-row__status { background: var(--ink); color: var(--lime); }
