:root {
  --support-bg-0: #09090d;
  --support-bg-1: #0d0d10;
  --support-bg-2: #15151b;
  --support-bg-3: #202028;
  --support-line: rgba(255, 255, 255, 0.1);
  --support-line-soft: rgba(255, 255, 255, 0.08);
  --support-text: #f8f8f8;
  --support-muted: #aeb3c3;
  --support-red: #d7232b;
  --support-red-strong: #b61a20;
  --support-red-soft: rgba(215, 35, 43, 0.2);
  --support-red-soft-strong: rgba(215, 35, 43, 0.28);
  --support-red-soft-focus: rgba(215, 35, 43, 0.14);
  --support-green-soft: rgba(16, 185, 129, 0.2);
}

* {
  box-sizing: border-box;
}

.support-page {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--support-text);
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 18%, rgba(215, 35, 43, 0.18), transparent 40%),
    radial-gradient(circle at 82% 2%, rgba(215, 35, 43, 0.22), transparent 46%),
    #0d0d10;
}

.support-page .noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 20% 10%, #fff 0.5px, transparent 0.5px),
    radial-gradient(circle at 80% 30%, #fff 0.5px, transparent 0.5px),
    radial-gradient(circle at 30% 70%, #fff 0.4px, transparent 0.4px),
    radial-gradient(circle at 70% 90%, #fff 0.4px, transparent 0.4px);
  background-size: 180px 180px, 220px 220px, 160px 160px, 200px 200px;
}

.support-page a {
  color: inherit;
  text-decoration: none;
}

.support-page button,
.support-page input,
.support-page textarea,
.support-page select {
  font: inherit;
}

.support-header {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 28px));
  max-width: 1280px;
  margin: 14px auto 0;
  background: transparent;
  backdrop-filter: none;
}

.topbar {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--support-line);
  border-radius: 14px;
  background: rgba(13, 13, 16, 0.7);
  padding: 8px 12px;
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand__logo {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.brand__text {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.brand__domain {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b9c0cf;
}

.brand__city {
  font-size: 1.03rem;
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.54rem 0.95rem;
  color: #ffd6d9;
  font-size: 0.95rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  transition: 0.18s ease;
}

.social-link:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: linear-gradient(145deg, var(--support-red), var(--support-red-strong));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.56rem 1rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  box-shadow: 0 12px 28px rgba(215, 35, 43, 0.35);
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 34px rgba(215, 35, 43, 0.42);
  filter: brightness(1.03);
}

.cta:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
}

.cta--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--support-line);
  color: #d7dde9;
  box-shadow: none;
}

.cta--ghost:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.support-main {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 28px));
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 0 28px;
  display: grid;
  gap: 14px;
}

.support-hero {
  border: 1px solid var(--support-line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 84% 20%, rgba(215, 35, 43, 0.1), transparent 58%),
    linear-gradient(145deg, rgba(13, 13, 17, 0.96), rgba(20, 20, 26, 0.93));
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 1.15rem 1.2rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #aeb7c8;
}

.support-hero h1 {
  margin: 0.5rem 0 0;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  letter-spacing: 0.01em;
  font-size: clamp(1.55rem, 1.85vw, 1.9rem);
  font-weight: 700;
}

.support-hero p {
  margin: 0.65rem 0 0;
  color: #b5bed0;
  line-height: 1.6;
}

.support-shell {
  border: 1px solid var(--support-line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(16, 16, 22, 0.96), rgba(22, 22, 29, 0.93));
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 1.08rem;
}

.support-auth,
.support-guest {
  display: grid;
  gap: 1rem;
}

.support-auth__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.support-auth__header h2 {
  margin: 0;
  font-family: "Bebas Neue", "Manrope", system-ui, sans-serif;
  letter-spacing: 0.03em;
  font-size: clamp(1.35rem, 2.1vw, 1.65rem);
  font-weight: 800;
}

.support-auth__header p {
  margin: 0.25rem 0 0;
  color: var(--support-muted);
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.support-ticket-list {
  display: grid;
  gap: 0.7rem;
}

.support-ticket-item {
  border: 1px solid var(--support-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.86rem;
  text-align: left;
  cursor: pointer;
  transition: 0.16s ease;
}

.support-ticket-item:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.support-ticket-item.is-active {
  border-color: var(--support-red-soft-strong);
  background: var(--support-red-soft);
}

.support-ticket-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  font-size: 0.77rem;
  color: #cfd6e4;
}

.support-ticket-item__topic {
  margin: 0.5rem 0 0;
  font-size: 0.94rem;
  font-weight: 800;
  color: #f8fafc;
}

.support-ticket-item__preview {
  margin: 0.4rem 0 0;
  color: #b0bbcf;
  line-height: 1.45;
  font-size: 0.84rem;
}

.support-ticket-item__time {
  margin-top: 0.5rem;
  color: #8f9ab0;
  font-size: 0.75rem;
  font-weight: 700;
}

.support-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.3rem 0.58rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.support-status--open {
  background: var(--support-red-soft);
  color: #ffd6d9;
}

.support-status--answered {
  background: var(--support-green-soft);
  color: #86efac;
}

.support-status--processed {
  background: rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
}

.support-thread {
  border: 1px solid var(--support-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  display: grid;
}

.support-thread--chat {
  grid-template-rows: auto minmax(260px, 1fr) auto;
  min-height: 0;
}

.support-thread--form {
  grid-template-rows: auto auto;
}

.support-thread__header {
  border-bottom: 1px solid var(--support-line);
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.support-thread__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.support-thread__sub {
  margin: 0.26rem 0 0;
  color: var(--support-muted);
  font-size: 0.88rem;
}

.support-messages {
  display: grid;
  gap: 0.68rem;
  padding: 0.95rem;
  background: linear-gradient(180deg, rgba(12, 12, 17, 0.9) 0%, rgba(20, 20, 28, 0.68) 72%);
  max-height: 66vh;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.support-message {
  max-width: min(88%, 640px);
  min-width: 0;
  border-radius: 14px;
  border: 1px solid var(--support-line);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.72rem 0.8rem;
}

.support-message--own {
  justify-self: end;
  border-color: var(--support-red-soft-strong);
  background: var(--support-red-soft);
}

.support-message--admin {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.12);
}

.support-message__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.22rem 0.6rem;
  font-size: 0.74rem;
  color: #c6cfde;
}

.support-message__author {
  font-weight: 800;
  min-width: 0;
}

.support-message__head time {
  margin: 0;
  justify-self: end;
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.support-message__text {
  margin: 0.46rem 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.56;
  color: #f6f8ff;
}

.support-message__media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 104px));
  justify-content: start;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.support-message__media-item {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  max-width: 104px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--support-line);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: #0f121b;
  cursor: zoom-in;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.support-message__media-item:hover {
  border-color: rgba(215, 35, 43, 0.42);
  transform: translateY(-1px);
}

.support-message__media-item:focus-visible {
  outline: 0;
  border-color: rgba(215, 35, 43, 0.54);
  box-shadow: 0 0 0 2px rgba(215, 35, 43, 0.24);
}

.support-message__media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.support-lightbox-open {
  overflow: hidden;
}

.support-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  padding: 14px;
}

.support-lightbox.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.support-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 14, 0.84);
  backdrop-filter: blur(4px);
}

.support-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 1040px);
  margin: 0;
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background:
    radial-gradient(circle at 72% 18%, rgba(215, 35, 43, 0.16), transparent 58%),
    linear-gradient(150deg, rgba(12, 13, 19, 0.97), rgba(20, 21, 29, 0.95));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.5);
  padding: 0.95rem 0.95rem 0.72rem;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.support-lightbox__frame {
  min-height: 220px;
  height: clamp(240px, 72vh, 760px);
  height: clamp(240px, 72dvh, 760px);
  max-height: calc(100vh - 112px);
  max-height: calc(100dvh - 112px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(4, 6, 10, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.support-lightbox__frame img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.support-lightbox__close,
.support-lightbox__nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(7, 10, 16, 0.85);
  color: #eef3ff;
  cursor: pointer;
}

.support-lightbox__close {
  top: 0.5rem;
  right: 0.5rem;
  width: 34px;
  height: 34px;
  font-size: 24px;
  line-height: 1;
}

.support-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  font-size: 24px;
  line-height: 1;
}

.support-lightbox__nav--prev {
  left: 0.5rem;
}

.support-lightbox__nav--next {
  right: 0.5rem;
}

.support-lightbox__close:hover,
.support-lightbox__nav:hover {
  border-color: rgba(215, 35, 43, 0.52);
  background: rgba(215, 35, 43, 0.2);
}

.support-lightbox__nav:disabled {
  display: none;
}

.support-lightbox__meta {
  margin-top: 0.62rem;
  text-align: center;
  color: #c8d1e2;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.support-thread__composer {
  border-top: 1px solid var(--support-line);
  padding: 0.9rem;
}

.support-form {
  display: grid;
  gap: 0.82rem;
}

.support-form__row {
  display: grid;
  gap: 0.72rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-label {
  display: grid;
  gap: 0.38rem;
}

.support-label span {
  font-size: 0.83rem;
  font-weight: 700;
  color: #d1d8e5;
}

.support-select,
.support-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--support-line);
  border-radius: 12px;
  padding: 0.68rem 0.8rem;
  background: rgba(9, 11, 17, 0.72);
  color: #f8fafc;
  font-size: 0.93rem;
  outline: none;
}

.support-select:focus,
.support-input:focus {
  border-color: rgba(215, 35, 43, 0.34);
  box-shadow: 0 0 0 2px var(--support-red-soft-focus);
}

.support-editor {
  position: relative;
  border: 1px solid var(--support-line);
  border-radius: 13px;
  background: rgba(8, 10, 16, 0.76);
  min-height: 138px;
}

.support-editor:focus-within {
  border-color: rgba(215, 35, 43, 0.34);
  box-shadow: 0 0 0 2px var(--support-red-soft-focus);
}

.support-editor__textarea {
  width: 100%;
  min-height: 138px;
  border: 0;
  border-radius: 13px;
  resize: vertical;
  padding: 0.9rem 2.9rem;
  font-size: 0.94rem;
  line-height: 1.56;
  color: #f8fafc;
  background: transparent;
  outline: none;
}

.support-editor__textarea::placeholder {
  color: #9ba7bd;
}

.support-editor__tool {
  position: absolute;
  bottom: 0.56rem;
  width: 33px;
  height: 33px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--support-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #dce3ef;
  cursor: pointer;
  transition: 0.16s ease;
}

.support-editor__tool:hover {
  border-color: var(--support-red-soft-strong);
  background: rgba(215, 35, 43, 0.22);
  color: #fff;
}

.support-editor__tool svg {
  width: 17px;
  height: 17px;
}

.support-editor__tool--emoji {
  left: 0.66rem;
}

.support-editor__tool--upload {
  right: 0.66rem;
}

.support-editor__meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.24rem;
}

.support-editor__note {
  color: #95a3ba;
  font-size: 0.8rem;
}

.support-emoji {
  position: absolute;
  left: 0.64rem;
  bottom: calc(100% + 0.46rem);
  z-index: 12;
}

.support-emoji__panel {
  width: min(320px, calc(100vw - 38px));
  max-height: 210px;
  overflow: auto;
  border: 1px solid var(--support-line);
  border-radius: 12px;
  background: rgba(15, 18, 27, 0.96);
  padding: 0.38rem;
  display: none;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
}

.support-emoji__panel.is-open {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.3rem;
}

.support-emoji__item {
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.3rem;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.support-emoji__item:hover {
  background: rgba(215, 35, 43, 0.2);
}

.support-media-preview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 104px));
  justify-content: start;
  gap: 0.5rem;
}

.support-media-preview__item {
  position: relative;
  border: 1px solid var(--support-line);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: #0f121b;
  width: 100%;
  max-width: 104px;
}

.support-media-preview__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.support-media-preview__remove {
  position: absolute;
  top: 0.34rem;
  right: 0.34rem;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.84);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.support-media-preview__remove:hover {
  background: #dc2626;
}

.support-form__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.support-note {
  margin: 0;
  border-radius: 12px;
  border: 1px solid var(--support-line);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.74rem 0.8rem;
  color: #b2bdd1;
  font-size: 0.89rem;
  line-height: 1.56;
}

.support-note.is-success {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.16);
  color: #86efac;
}

.support-note.is-error {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.16);
  color: #fecaca;
}

.support-empty {
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  text-align: center;
  color: #a8b4c9;
}

.support-empty h3 {
  margin: 0;
  font-size: 1.08rem;
  color: #f8fafc;
}

.support-empty p {
  margin: 0.5rem 0 0;
}

.support-guest__tabs {
  display: flex;
  align-items: center;
  gap: 0.52rem;
  flex-wrap: wrap;
}

.support-tab {
  border: 1px solid var(--support-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #dbe2ef;
  padding: 0.5rem 0.82rem;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
}

.support-tab.is-active {
  border-color: var(--support-red-soft-strong);
  background: var(--support-red-soft);
  color: #fecdd3;
}

.footer.support-footer {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 28px));
  max-width: 1280px;
  margin: 0 auto 18px;
  border: 1px solid var(--support-line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 18%, rgba(215, 35, 43, 0.1), transparent 60%),
    linear-gradient(145deg, rgba(13, 13, 17, 0.96), rgba(21, 21, 28, 0.93));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
  padding: 1.1rem 1.2rem;
  display: grid;
  gap: 0.9rem;
}

.footer.support-footer h3 {
  margin: 0.42rem 0 0;
  font-size: 1.24rem;
  font-weight: 800;
}

.footer.support-footer p {
  margin: 0.58rem 0 0;
  color: #b4bfd2;
  line-height: 1.6;
}

.footer__cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.56rem;
}

.mobile-bottom-bar {
  display: none;
}

@media (max-width: 1023px) {
  .support-layout {
    grid-template-columns: 1fr;
  }

  .support-thread--chat {
    grid-template-rows: auto minmax(220px, 1fr) auto;
  }

  .support-messages {
    max-height: min(56vh, 540px);
    max-height: min(56dvh, 540px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .support-header {
    display: none !important;
  }

  body.support-page::after {
    content: '';
    display: block;
    height: var(--mobile-bottom-bar-height, 86px);
  }

  .mobile-bottom-bar {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding-top: 10px;
    background: rgba(13, 13, 16, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 10000;
  }

  .mobile-bottom-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    font-weight: 700;
    width: 100%;
    transition: color 0.2s ease;
  }

  .mobile-bottom-bar__item.is-active,
  .mobile-bottom-bar__item:hover {
    color: #f8f8f8;
  }

  .mobile-bottom-bar__icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
  }

  .mobile-bottom-bar__item.is-active .mobile-bottom-bar__icon {
    color: #d7232b;
    transform: translateY(-2px) scale(1.08);
  }
}

@media (max-width: 767px) {
  .support-header {
    display: none !important;
  }

  .topbar {
    border-radius: 14px;
    padding: 8px 10px;
  }

  .brand__logo {
    width: 44px;
    height: 44px;
  }

  .brand__city {
    font-size: 0.93rem;
  }

  .social-link,
  .cta {
    min-height: 39px;
    font-size: 0.88rem;
    padding: 0.5rem 0.82rem;
  }

  .support-main {
    width: calc(100% - 16px);
    padding: 12px 0 30px;
    gap: 10px;
  }

  .support-shell,
  .support-hero,
  .footer.support-footer {
    border-radius: 18px;
    padding: 0.85rem;
  }

  .support-form__row {
    grid-template-columns: 1fr;
  }

  .support-ticket-item {
    padding: 0.75rem;
  }

  .support-message {
    max-width: 100%;
  }

  .support-message__head {
    gap: 0.35rem 0.6rem;
  }

  .support-message__head time {
    font-size: 0.7rem;
  }

  .support-auth__header h2 {
    font-size: 1.32rem;
    letter-spacing: 0.01em;
  }

  .support-editor__textarea {
    min-height: 124px;
    padding: 0.84rem 2.65rem;
  }

  .support-emoji__panel.is-open {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .support-message__head {
    grid-template-columns: 1fr;
  }

  .support-message__head time {
    justify-self: start;
  }

  .support-lightbox {
    padding: 8px;
  }

  .support-lightbox__dialog {
    width: 100%;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    padding: 0.56rem 0.5rem 0.46rem;
    border-radius: 12px;
  }

  .support-lightbox__frame {
    min-height: 180px;
    height: min(62vh, 500px);
    height: min(62dvh, 500px);
    max-height: calc(100vh - 92px);
    max-height: calc(100dvh - 92px);
  }

  .support-lightbox__frame img {
    max-height: 100%;
  }

  .support-lightbox__close {
    width: 30px;
    height: 30px;
    font-size: 22px;
    top: 0.28rem;
    right: 0.28rem;
  }

  .support-lightbox__nav {
    width: 32px;
    height: 32px;
    font-size: 22px;
    top: auto;
    bottom: 0.32rem;
    transform: none;
  }

  .support-lightbox__nav--prev {
    left: 0.44rem;
  }

  .support-lightbox__nav--next {
    right: 0.44rem;
  }

  .support-lightbox__meta {
    margin-top: 0.44rem;
    font-size: 0.84rem;
  }
}
