:root {
  color-scheme: dark;
  --background: #060606;
  --panel: #101011;
  --panel-deep: #0c0c0d;
  --text: #ffffff;
  --muted: #9f9fa4;
  --line: #29292c;
  --line-strong: #4b4b4f;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 38px 22px;
  background: radial-gradient(circle at 18% 0%, #151517 0, #0a0a0b 39%, #060606 100%);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  font: inherit;
}

button {
  appearance: none;
}

.support-shell {
  width: min(760px, 100%);
  margin: 0 auto;
}

.support-header {
  position: relative;
  display: block;
  margin: 0 4px 22px;
  padding-right: 170px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  width: 100%;
}

.brand > div {
  min-width: 0;
}

.support-header img {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 11px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.44);
}

.support-header h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(27px, 5vw, 32px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -1.2px;
}

.support-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.language-control {
  position: absolute;
  top: 8px;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.language-inline-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.language-switch {
  display: inline-grid;
  grid-template-columns: repeat(3, 42px);
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(12, 12, 13, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 8px 22px rgba(0, 0, 0, 0.24);
}

.language-option {
  width: 42px;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
  transform: none;
}

.language-option:hover {
  border-color: #343438;
  background: #151517;
  color: #ffffff;
}

.language-option.is-active {
  border-color: #ffffff;
  background: #ffffff;
  color: #090909;
}

.language-option.is-active:hover {
  background: #ececed;
  color: #090909;
}

.support-panel {
  padding: 28px 30px 30px;
  border: 1px solid #242426;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(19, 19, 20, 0.97), rgba(12, 12, 13, 0.97));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
}

.intro {
  padding: 0 0 23px;
}

.intro h2 {
  margin: 0 0 9px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.intro p {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.cards {
  display: grid;
  gap: 14px;
}

.card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "heading action"
    "value action";
  gap: 16px 24px;
  align-items: center;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 8, 9, 0.76);
  transition: border-color 160ms ease, background-color 160ms ease;
  transform: none;
}

.card:hover,
.card:focus-within {
  border-color: #3a3a3e;
  background: rgba(10, 10, 11, 0.92);
}

.card-heading {
  grid-area: heading;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.card-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #101011;
  font-size: 19px;
  line-height: 1;
}

.card h3 {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.card-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.network {
  margin-left: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.35px;
}

code {
  grid-area: value;
  display: block;
  min-width: 0;
  padding: 10px 12px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #060607;
  color: #f1f1f2;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
  user-select: all;
}

.button {
  grid-area: action;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 158px;
  min-height: 42px;
  padding: 0 17px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
  transform: none;
}

.card,
.card:hover,
.card:active,
.button,
.button:hover,
.button:active,
.button:focus-visible {
  transform: none !important;
  translate: none !important;
}

.button:focus-visible,
.language-option:focus-visible,
code:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.primary {
  border: 1px solid #fff;
  background: #fff;
  color: #090909;
}

.primary:hover {
  background: #e8e8e9;
}

.secondary {
  border: 1px solid var(--line-strong);
  background: #101011;
  color: #fff;
}

.secondary:hover {
  border-color: #fff;
}

.secondary.is-copied {
  border-color: #fff;
  background: #fff;
  color: #090909;
}

.footer-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.copy-status,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 680px) {
  body {
    padding: 24px 14px;
  }

  .support-header {
    margin-inline: 2px;
    padding-right: 0;
    padding-top: 58px;
  }

  .language-control {
    top: 0;
    right: 0;
  }

  .brand {
    align-items: flex-start;
  }

  .support-header img {
    width: 52px;
    height: 52px;
  }

  .support-panel {
    padding: 22px;
    border-radius: 16px;
  }

  .card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "value"
      "action";
    gap: 14px;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .support-header {
    padding-top: 54px;
  }

  .language-inline-label {
    font-size: 11px;
  }

  .language-switch {
    grid-template-columns: repeat(3, 40px);
  }

  .language-option {
    width: 40px;
  }
}

@media (max-width: 420px) {
  body {
    padding-inline: 10px;
  }


  .support-header h1 {
    font-size: 24px;
    letter-spacing: -0.8px;
  }

  .support-panel {
    padding: 18px;
  }

  .card {
    padding: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
