.support-page {
  background: #f5f7f6;
  color: #12201b;
}

.support-page .site-header {
  background: rgba(250, 252, 251, 0.92);
  border-bottom: 1px solid rgba(18, 32, 27, 0.08);
  backdrop-filter: blur(18px);
}

.support-page .brand,
.support-page .nav-links a {
  color: #12201b;
}

.support-page .nav-links a:hover {
  color: #0f7f5f;
}

.support-nav-link {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.support-nav-badge {
  align-items: center;
  background: #e23b3b;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  height: 20px;
  justify-content: center;
  line-height: 1;
  min-width: 20px;
  padding: 0 5px;
}

.support-shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: 118px 20px 48px;
}

.support-contact-section {
  background:
    radial-gradient(circle at 12% 18%, rgba(15, 127, 95, 0.13), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f4fbf8 100%);
  border: 1px solid rgba(18, 32, 27, 0.08);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(18, 32, 27, 0.08);
  margin-bottom: 18px;
  overflow: hidden;
  padding: clamp(22px, 4vw, 38px);
  position: relative;
}

.support-contact-section::after {
  background: linear-gradient(180deg, rgba(15, 127, 95, 0.18), rgba(18, 32, 27, 0));
  content: "";
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  width: 6px;
}

.support-contact-head {
  max-width: 720px;
}

.support-contact-head h1 {
  color: #12201b;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1;
  margin: 0;
}

.support-contact-head p {
  color: #52645e;
  font-size: 17px;
  line-height: 1.55;
  margin: 14px 0 0;
}

.support-contact-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.support-contact-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(18, 32, 27, 0.1);
  border-radius: 8px;
  color: #12201b;
  display: grid;
  gap: 12px;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  min-height: 82px;
  padding: 14px;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.support-contact-card:hover {
  border-color: rgba(15, 127, 95, 0.42);
  box-shadow: 0 14px 34px rgba(18, 32, 27, 0.1);
  transform: translateY(-1px);
}

.support-contact-card-primary {
  background: #12201b;
  border-color: #12201b;
  color: #ffffff;
}

.support-contact-card span:not(.support-contact-icon) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.support-contact-card strong {
  font-size: 16px;
  line-height: 1.2;
}

.support-contact-card small {
  color: #66766f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.support-contact-card-primary small {
  color: rgba(255, 255, 255, 0.74);
}

.support-contact-card em {
  color: #0f7f5f;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.support-contact-card-primary em {
  color: #8ff0cf;
}

.support-contact-icon {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.support-contact-icon svg {
  display: block;
  height: 25px;
  width: 25px;
}

.support-contact-icon svg path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.support-contact-icon-telegram {
  background: #27a6e5;
  color: #ffffff;
}

.support-contact-icon-telegram svg path {
  fill: currentColor;
  stroke: none;
}

.support-contact-icon-email {
  background: #eef7f2;
  color: #0f7f5f;
}

.support-contact-icon-ticket {
  background: #fff5df;
  color: #9d6710;
}

.support-anchor {
  display: block;
  height: 1px;
  margin-top: -92px;
  position: absolute;
  width: 1px;
}

.support-auth-view,
.support-dashboard {
  display: grid;
  gap: 18px;
  scroll-margin-top: 104px;
}

.support-auth-view[hidden],
.support-dashboard[hidden],
.support-empty[hidden],
.support-compose[hidden],
.support-ticket-detail[hidden],
.support-nav-badge[hidden] {
  display: none !important;
}

.support-auth-view {
  align-items: stretch;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  min-height: 520px;
  position: relative;
}

.support-auth-view.is-ticket-targeted .support-auth-card,
.support-dashboard.is-ticket-targeted,
.support-compose.is-ticket-targeted {
  animation: support-target-pulse 1.2s ease;
}

@keyframes support-target-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(15, 127, 95, 0.28), 0 18px 48px rgba(18, 32, 27, 0.08);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(15, 127, 95, 0), 0 18px 48px rgba(18, 32, 27, 0.08);
  }
}

.support-auth-card,
.support-auth-side,
.support-hero,
.support-sidebar,
.support-ticket-panel,
.support-compose,
.support-ticket-detail,
.support-empty {
  background: #ffffff;
  border: 1px solid rgba(18, 32, 27, 0.08);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(18, 32, 27, 0.08);
}

.support-auth-card {
  align-self: center;
  padding: clamp(24px, 4vw, 42px);
}

.support-auth-card h1,
.support-hero h1,
.support-panel-head h2,
.support-sidebar h2,
.support-empty h2 {
  color: #12201b;
  line-height: 1.04;
  margin: 0;
}

.support-auth-card h1 {
  font-size: clamp(34px, 5vw, 58px);
  max-width: 680px;
}

.support-auth-card p,
.support-auth-side p,
.support-hero p,
.support-sidebar p,
.support-empty p,
.support-ticket-item p,
.support-panel-head p,
.support-message p {
  color: #52645e;
  line-height: 1.55;
}

.support-kicker {
  align-items: center;
  color: #0f7f5f;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.support-form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.support-form label,
.support-reply-form label {
  color: #2d3b36;
  font-size: 13px;
  font-weight: 800;
}

.support-form input,
.support-form textarea,
.support-reply-form textarea {
  background: #f7faf8;
  border: 1px solid rgba(18, 32, 27, 0.14);
  border-radius: 8px;
  color: #12201b;
  font: inherit;
  min-height: 48px;
  outline: none;
  padding: 12px 14px;
  resize: vertical;
  width: 100%;
}

.support-form input:focus,
.support-form textarea:focus,
.support-reply-form textarea:focus {
  border-color: #0f7f5f;
  box-shadow: 0 0 0 4px rgba(15, 127, 95, 0.12);
}

.support-file-input {
  height: 1px !important;
  margin: -1px !important;
  opacity: 0;
  overflow: hidden;
  padding: 0 !important;
  pointer-events: none;
  position: absolute;
  width: 1px !important;
}

.support-attachment-picker {
  display: grid;
  gap: 8px;
}

.support-attachment-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.support-attach-button {
  align-items: center;
  background: #eef4f1;
  border: 1px solid rgba(18, 32, 27, 0.1);
  border-radius: 8px;
  color: #12201b;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  min-height: 42px;
  padding: 9px 13px;
}

.support-attach-button svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 18px;
}

.support-attach-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.support-attachment-count {
  color: #52645e;
  font-size: 13px;
  font-weight: 800;
}

.support-attachment-hint {
  color: #73817c !important;
  font-size: 12px;
  margin: 0;
}

.support-image-preview {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(76px, 92px));
}

.support-image-preview-card {
  aspect-ratio: 1;
  border: 1px solid rgba(18, 32, 27, 0.12);
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.support-image-preview-card img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.support-image-remove {
  align-items: center;
  background: rgba(18, 32, 27, 0.84);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 18px;
  height: 26px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 2px;
  position: absolute;
  right: 5px;
  top: 5px;
  width: 26px;
}

.support-primary,
.support-secondary,
.support-danger,
.support-icon-button {
  align-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.support-primary {
  background: #12201b;
  box-shadow: 0 12px 30px rgba(18, 32, 27, 0.18);
  color: #fff;
}

.support-primary:hover,
.support-secondary:hover,
.support-danger:hover,
.support-icon-button:hover {
  transform: translateY(-1px);
}

.support-primary:disabled,
.support-secondary:disabled,
.support-danger:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.support-secondary {
  background: #eef4f1;
  color: #12201b;
}

.support-danger {
  background: #fff0ef;
  color: #a12722;
}

.support-icon-button {
  aspect-ratio: 1;
  background: #12201b;
  color: #fff;
  padding: 0;
  width: 44px;
}

.support-icon-button svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 22px;
}

.support-auth-actions,
.support-form-actions,
.support-hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.support-auth-actions {
  margin-top: 16px;
}

.support-auth-actions a {
  color: #0f7f5f;
  font-weight: 800;
  text-decoration: none;
}

.support-auth-side {
  background:
    radial-gradient(circle at 20% 10%, rgba(15, 127, 95, 0.16), transparent 28%),
    linear-gradient(145deg, #12201b, #203f35);
  color: #fff;
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3vw, 32px);
}

.support-auth-side div {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 18px;
}

.support-auth-side span {
  color: #9ee6c7;
  display: block;
  font-weight: 900;
  margin-bottom: 10px;
}

.support-auth-side strong {
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
}

.support-auth-side p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.support-status {
  color: #52645e;
  font-size: 13px;
  font-weight: 700;
  min-height: 20px;
}

.support-status.error {
  color: #a12722;
}

.support-status.success {
  color: #0f7f5f;
}

.support-hero {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 24px;
}

.support-hero h1 {
  font-size: clamp(30px, 4vw, 48px);
}

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

.support-sidebar,
.support-ticket-panel {
  min-height: 620px;
}

.support-sidebar {
  overflow: hidden;
}

.support-sidebar-head {
  align-items: flex-start;
  border-bottom: 1px solid rgba(18, 32, 27, 0.08);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 20px;
}

.support-sidebar-head h2 {
  font-size: 22px;
}

.support-sidebar-head p {
  font-size: 13px;
  margin: 5px 0 0;
}

.support-ticket-list {
  display: grid;
  gap: 8px;
  max-height: 540px;
  overflow: auto;
  padding: 12px;
}

.support-ticket-item {
  background: #f8fbf9;
  border: 1px solid rgba(18, 32, 27, 0.08);
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 8px;
  padding: 14px;
  text-align: left;
  width: 100%;
}

.support-ticket-item:hover,
.support-ticket-item.is-active {
  background: #edf7f2;
  border-color: rgba(15, 127, 95, 0.28);
}

.support-ticket-item-top {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.support-ticket-item strong {
  color: #12201b;
  font-size: 15px;
  line-height: 1.25;
}

.support-ticket-item-meta {
  color: #73817c;
  font-size: 12px;
  font-weight: 700;
}

.support-ticket-item p {
  font-size: 13px;
  margin: 0;
}

.support-mini-pill,
.support-status-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 7px 9px;
  white-space: nowrap;
}

.support-mini-pill.is-pending,
.support-status-pill.is-pending {
  background: #fff3d5;
  color: #805500;
}

.support-mini-pill.is-answered,
.support-status-pill.is-answered {
  background: #dff8eb;
  color: #0f6f48;
}

.support-mini-pill.is-closed,
.support-status-pill.is-closed {
  background: #e9edf0;
  color: #546069;
}

.support-ticket-panel {
  overflow: hidden;
}

.support-empty {
  align-items: center;
  border: 0;
  box-shadow: none;
  display: grid;
  justify-items: center;
  min-height: 620px;
  padding: 32px;
  text-align: center;
}

.support-empty-icon {
  align-items: center;
  background: #edf7f2;
  border-radius: 8px;
  color: #0f7f5f;
  display: inline-flex;
  height: 64px;
  justify-content: center;
  margin-bottom: 18px;
  width: 64px;
}

.support-empty-icon svg {
  fill: none;
  height: 32px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 32px;
}

.support-compose,
.support-ticket-detail {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: 620px;
  padding: 24px;
}

.support-panel-head {
  align-items: flex-start;
  border-bottom: 1px solid rgba(18, 32, 27, 0.08);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: -24px -24px 22px;
  padding: 24px;
}

.support-panel-head h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.support-panel-head p {
  margin: 6px 0 0;
}

.support-thread {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.support-message {
  border: 1px solid rgba(18, 32, 27, 0.08);
  border-radius: 8px;
  max-width: 84%;
  padding: 14px;
}

.support-message.is-user {
  background: #edf7f2;
  justify-self: end;
}

.support-message.is-admin {
  background: #f8fbf9;
  justify-self: start;
}

.support-message-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.support-message-head strong {
  color: #12201b;
  font-size: 13px;
}

.support-message-head span {
  color: #73817c;
  font-size: 12px;
  font-weight: 700;
}

.support-message p {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.support-message-gallery {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  margin-top: 10px;
  max-width: 520px;
}

.support-message p + .support-message-gallery {
  margin-top: 12px;
}

.support-message-image-link {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: #e7eeea;
  border-radius: 7px;
  color: #0f7f5f;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  text-decoration: none;
}

.support-message-image-link img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.18s ease;
  width: 100%;
}

.support-message-image-link:hover img {
  transform: scale(1.025);
}

.support-reply-form {
  background: #ffffff;
  border-top: 1px solid rgba(18, 32, 27, 0.08);
  bottom: 0;
  display: grid;
  gap: 10px;
  margin: 0 -24px -24px;
  padding: 18px 24px 24px;
  position: sticky;
}

.support-reply-form.is-disabled {
  background: #f6f7f7;
}

.support-list-empty {
  color: #73817c;
  font-weight: 700;
  padding: 18px;
  text-align: center;
}

@media (max-width: 900px) {
  .support-shell {
    padding: 92px 14px 32px;
  }

  .support-auth-view,
  .support-dashboard,
  .support-compose {
    scroll-margin-top: 84px;
  }

  .support-contact-section {
    margin-bottom: 14px;
    padding: 20px;
  }

  .support-contact-head h1 {
    font-size: 38px;
  }

  .support-contact-head p {
    font-size: 15px;
    margin-top: 10px;
  }

  .support-contact-grid {
    gap: 10px;
    margin-top: 16px;
  }

  .support-contact-card {
    min-height: 72px;
    padding: 12px;
  }

  .support-auth-view,
  .support-contact-grid,
  .support-layout {
    grid-template-columns: 1fr;
  }

  .support-auth-view {
    min-height: auto;
  }

  .support-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .support-sidebar,
  .support-ticket-panel,
  .support-empty,
  .support-compose,
  .support-ticket-detail {
    min-height: auto;
  }

  .support-ticket-list {
    max-height: 360px;
  }

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

@media (max-width: 560px) {
  .support-auth-card,
  .support-auth-side,
  .support-contact-section,
  .support-hero,
  .support-sidebar-head,
  .support-compose,
  .support-ticket-detail {
    padding: 18px;
  }

  .support-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .support-contact-head h1 {
    font-size: 34px;
  }

  .support-contact-head p {
    font-size: 14px;
  }

  .support-contact-card {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 68px;
  }

  .support-contact-card em {
    grid-column: 2;
  }

  .support-contact-icon {
    height: 48px;
    width: 48px;
  }

  .support-panel-head {
    align-items: stretch;
    flex-direction: column;
    margin: -18px -18px 18px;
    padding: 18px;
  }

  .support-reply-form {
    margin: 0 -18px -18px;
    padding: 14px 18px 18px;
  }

  .support-form-actions,
  .support-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .support-primary,
  .support-secondary,
  .support-danger {
    width: 100%;
  }
}
