.support-page {
  --support-steel: url("../images/texture-blackened-steel.webp");
  --support-brass: url("../images/texture-aged-brass.webp");
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: 92px minmax(0, 1fr);
  color: var(--bone);
  background: #050505;
}

body.admin-bar .support-page {
  min-height: calc(100svh - 32px);
}

.support-page__background,
.support-page__shade,
.support-speed-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.support-page__background {
  z-index: -4;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  filter: brightness(0.82) contrast(1.05) saturate(0.9);
}

.support-page__shade {
  z-index: -3;
  background: rgba(2, 2, 2, 0.1);
  box-shadow:
    inset 420px 0 210px rgba(0, 0, 0, 0.22),
    inset -180px 0 180px rgba(0, 0, 0, 0.14),
    inset 0 -180px 180px rgba(0, 0, 0, 0.22);
}

.support-speed-field {
  z-index: -2;
  opacity: calc(0.46 + (var(--speed-intensity, 0.65) * 0.18));
}

.support-layout {
  width: min(calc(100% - 72px), 1220px);
  margin-inline: auto;
  padding: clamp(18px, 2vh, 24px) 0 clamp(32px, 4vh, 52px);
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(500px, 524px);
  gap: 76px;
  align-items: start;
}

.support-intro {
  align-self: start;
  max-width: 620px;
  margin-top: clamp(138px, 15vh, 154px);
  text-shadow: 0 4px 34px rgba(0, 0, 0, 0.9);
}

.support-eyebrow,
.support-console__header p,
.support-field > span,
.support-upload strong,
.support-submit,
.support-console__status,
.support-file button {
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0.14em;
}

.support-eyebrow {
  max-width: 540px;
  margin: 0 0 24px;
  color: #e0a83d;
  font-size: clamp(18px, 1.35vw, 22px);
  text-align: center;
}

.support-intro h1 {
  max-width: 540px;
  margin: 0;
  color: #d5a55a;
  background-color: #d5a55a;
  background-image: var(--support-brass);
  background-position: center;
  background-size: 420px;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(68px, 5.6vw, 84px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0.012em;
  text-wrap: balance;
  filter: brightness(1.04) contrast(1.02);
}

.support-intro > p:last-child {
  max-width: 520px;
  margin: 24px 0 0;
  color: #e6e0d7;
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.55;
}

.support-console {
  position: relative;
  width: 100%;
  padding: 32px 30px 0;
  border: 2px solid #5f4a2b;
  outline: 1px solid rgba(218, 164, 63, 0.52);
  outline-offset: -9px;
  background-color: #11100e;
  background-image: var(--support-steel);
  background-size: 520px;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.72),
    0 0 0 5px #090908,
    0 0 0 7px rgba(103, 78, 40, 0.9),
    0 0 0 10px #080807,
    inset 0 0 0 5px #080807,
    inset 0 0 0 7px rgba(201, 146, 48, 0.18),
    inset 0 0 48px rgba(0, 0, 0, 0.76);
}

.support-console::before {
  content: "";
  position: absolute;
  inset: 13px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(211, 155, 56, 0.22);
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.55);
}

.support-console > * {
  position: relative;
  z-index: 1;
}

.support-console__header {
  margin-bottom: 15px;
  padding-bottom: 13px;
  display: block;
  text-align: center;
  border-bottom: 1px solid rgba(219, 160, 48, 0.2);
}

.support-console__header p {
  margin: 0;
  color: #e1ac45;
  font-size: 23px;
  line-height: 1;
}

.support-console__header span {
  display: block;
  margin-top: 5px;
  color: #bd9360;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
}

.support-notice {
  margin-bottom: 13px;
  padding: 10px 12px;
  border-left: 3px solid #e0a83d;
  color: #ece7de;
  background: rgba(15, 13, 9, 0.88);
  font-size: 13px;
  line-height: 1.45;
}

.support-notice--success {
  border-left-color: #8fc86c;
}

.support-form {
  display: grid;
  gap: 10px;
}

.support-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.support-field {
  display: grid;
  gap: 4px;
}

.support-field > span {
  color: #dfa63c;
  font-size: 14px;
  line-height: 1;
}

.support-field input,
.support-field select,
.support-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(210, 154, 52, 0.43);
  border-radius: 0;
  color: #eee9e0;
  background: rgba(8, 8, 7, 0.76);
  font: 400 14px/1.45 "Inter", system-ui, sans-serif;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.support-field input,
.support-field select {
  min-height: 41px;
  padding: 8px 13px;
}

.support-field textarea {
  min-height: 108px;
  padding: 11px 13px;
  resize: vertical;
}

.support-field select {
  appearance: auto;
  color-scheme: dark;
}

.support-field input::placeholder,
.support-field textarea::placeholder {
  color: #807b73;
}

.support-field input:hover,
.support-field select:hover,
.support-field textarea:hover {
  border-color: rgba(225, 172, 69, 0.66);
}

.support-field input:focus,
.support-field select:focus,
.support-field textarea:focus {
  outline: 0;
  border-color: #e1ac45;
  background-color: rgba(13, 12, 10, 0.95);
  box-shadow: 0 0 0 3px rgba(225, 172, 69, 0.12);
}

.support-upload-wrap {
  display: grid;
  gap: 7px;
  margin-top: 4px;
}

.support-upload {
  position: relative;
  min-height: 84px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  border: 1px dashed rgba(225, 172, 69, 0.78);
  color: var(--bone);
  background-color: rgba(7, 7, 6, 0.82);
  cursor: pointer;
  box-shadow: 0 0 16px rgba(225, 172, 69, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.support-upload:hover,
.support-upload.is-dragging {
  border-color: #e1ac45;
  box-shadow:
    0 0 0 1px rgba(225, 172, 69, 0.24),
    0 0 28px rgba(225, 172, 69, 0.22);
  transform: translateY(-1px);
}

.support-upload .dashicons {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  color: #e1ac45;
  border: 1px solid rgba(225, 172, 69, 0.82);
  border-radius: 50%;
  font-size: 27px;
  line-height: 48px;
}

.support-upload strong,
.support-upload small {
  display: block;
}

.support-upload strong {
  color: #e1ac45;
  font-size: 19px;
  line-height: 1;
}

.support-upload small {
  margin-top: 5px;
  color: #9b958b;
  font-size: 11px;
  line-height: 1.4;
}

.support-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.support-file {
  min-height: 70px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(225, 172, 69, 0.5);
  background: rgba(8, 8, 7, 0.92);
  box-shadow: 0 0 22px rgba(225, 172, 69, 0.1);
}

.support-file[hidden] {
  display: none;
}

.support-file > .dashicons {
  color: #e1ac45;
}

.support-file strong,
.support-file small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-file small {
  margin-top: 3px;
  color: #9b958b;
}

.support-file button {
  padding: 7px 9px;
  color: #e1ac45;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.support-file-error {
  margin: 0;
  color: #ff8d7f;
  font-size: 12px;
}

.support-file-error:empty {
  display: none;
}

.support-send-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 13px;
  align-items: stretch;
  margin-top: 3px;
}

.support-submit {
  position: relative;
  min-height: 58px;
  padding: 9px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #efd080;
  color: #171006;
  background-color: #c89437;
  background-image: var(--support-brass);
  background-position: center;
  background-size: 360px;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.42),
    inset 0 0 0 4px rgba(65, 42, 11, 0.18);
  font-size: 24px;
  cursor: pointer;
  transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.support-submit:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.48),
    0 0 26px rgba(225, 172, 69, 0.2),
    inset 0 0 0 4px rgba(65, 42, 11, 0.18);
}

.support-submit:focus-visible {
  outline: 2px solid #f4d58e;
  outline-offset: 3px;
}

.support-submit:disabled {
  cursor: wait;
  filter: saturate(0.58);
}

.support-anchor {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 58px;
  overflow: visible;
  border: 1px solid #a77627;
  border-radius: 50%;
  background-color: #080807;
  box-shadow:
    inset 0 0 0 5px #15120c,
    inset 0 0 0 6px rgba(225, 172, 69, 0.4),
    0 0 18px rgba(225, 172, 69, 0.18);
}

.support-anchor::before,
.support-anchor::after {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: -1;
  border: 1px solid rgba(225, 172, 69, 0.5);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.86);
  animation: support-anchor-wave 5.2s ease-out infinite;
}

.support-anchor::after {
  animation-delay: 2.6s;
}

.support-anchor img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(74%) sepia(78%) saturate(735%) hue-rotate(350deg) brightness(103%) contrast(91%);
  animation: support-anchor-glow 5.2s ease-in-out infinite;
}

.support-console__status {
  min-height: 51px;
  margin: 17px -30px 0;
  padding: 10px 30px;
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(225, 172, 69, 0.28);
  color: #dca33a;
  background-color: rgba(4, 4, 3, 0.86);
  font-size: 12px;
}

.support-console__status p {
  margin: 0;
  color: #d1cbc1;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0;
  text-align: right;
}

.support-console__status > span:nth-of-type(2) {
  color: #95d173;
}

.support-console__signal {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #91d071;
  box-shadow: 0 0 0 4px rgba(145, 208, 113, 0.07), 0 0 10px rgba(145, 208, 113, 0.36);
  animation: support-online-pulse 5.4s ease-in-out infinite;
}

@keyframes support-online-pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.88);
    box-shadow: 0 0 0 4px rgba(145, 208, 113, 0.04), 0 0 7px rgba(145, 208, 113, 0.22);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 0 0 7px rgba(145, 208, 113, 0.1), 0 0 20px rgba(145, 208, 113, 0.7);
  }
}

@keyframes support-anchor-wave {
  0% {
    opacity: 0;
    transform: scale(0.86);
  }
  18% {
    opacity: 0.48;
  }
  72%,
  100% {
    opacity: 0;
    transform: scale(1.68);
  }
}

@keyframes support-anchor-glow {
  0%,
  100% {
    opacity: 0.72;
    filter: brightness(0) saturate(100%) invert(74%) sepia(78%) saturate(735%) hue-rotate(350deg) brightness(94%) contrast(91%);
  }
  50% {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(74%) sepia(78%) saturate(735%) hue-rotate(350deg) brightness(122%) contrast(91%) drop-shadow(0 0 7px rgba(225, 172, 69, 0.72));
  }
}

@media (max-width: 1180px) {
  .support-layout {
    grid-template-columns: minmax(0, 1fr) minmax(480px, 500px);
    gap: 42px;
  }

  .support-intro h1 {
    font-size: clamp(68px, 7vw, 84px);
  }
}

@media (max-width: 960px) {
  .support-page {
    min-height: auto;
    overflow: visible;
    grid-template-rows: 76px auto;
  }

  body.admin-bar .support-page {
    min-height: auto;
  }

  .support-page__background {
    position: fixed;
    background-position: center top;
  }

  .support-page__shade {
    position: fixed;
  }

  .support-layout {
    width: min(calc(100% - 40px), 700px);
    padding: 38px 0 72px;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .support-intro {
    max-width: 620px;
    margin-top: 16px;
  }

  .support-intro h1 {
    max-width: 620px;
    font-size: clamp(62px, 10vw, 84px);
  }

  .support-console {
    width: min(100%, 620px);
    margin-inline: auto;
  }
}

@media (max-width: 782px) {
  body.admin-bar .support-page {
    min-height: auto;
  }
}

@media (max-width: 600px) {
  .support-page__background {
    background-position: 54% top;
    filter: brightness(0.62) contrast(1.08) saturate(0.84);
  }

  .support-page__shade {
    box-shadow:
      inset 100px 0 120px rgba(0, 0, 0, 0.22),
      inset -80px 0 120px rgba(0, 0, 0, 0.18),
      inset 0 -140px 140px rgba(0, 0, 0, 0.28);
  }

  .support-layout {
    width: calc(100% - 28px);
    padding: 26px 0 52px;
    gap: 32px;
  }

  .support-intro {
    margin-top: 8px;
  }

  .support-eyebrow {
    margin-bottom: 12px;
    font-size: 16px;
  }

  .support-intro h1 {
    font-size: clamp(52px, 14.6vw, 70px);
    line-height: 0.92;
  }

  .support-intro > p:last-child {
    margin-top: 18px;
    font-size: 16px;
  }

  .support-console {
    padding: 26px 16px 0;
  }

  .support-console::before {
    inset: 8px;
  }

  .support-console__header p {
    font-size: 21px;
  }

  .support-field input,
  .support-field select {
    min-height: 46px;
  }

  .support-field textarea {
    min-height: 126px;
  }

  .support-upload {
    min-height: 90px;
    padding: 15px;
    gap: 13px;
  }

  .support-upload .dashicons {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    font-size: 24px;
    line-height: 42px;
  }

  .support-upload strong {
    font-size: 17px;
  }

  .support-send-row {
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 9px;
  }

  .support-submit {
    min-height: 58px;
    padding-inline: 12px;
    font-size: 20px;
  }

  .support-anchor {
    min-height: 58px;
  }

  .support-anchor img {
    width: 32px;
    height: 32px;
  }

  .support-console__status {
    margin: 17px -16px 0;
    padding: 13px 16px;
    grid-template-columns: auto auto auto;
    gap: 9px;
  }

  .support-console__status p {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .support-console__signal,
  .support-anchor::before,
  .support-anchor::after,
  .support-anchor img {
    animation: none;
  }

  .support-upload,
  .support-submit {
    transition: none;
  }
}
