:root {
  --bg: #080b10;
  --panel: #101622;
  --line: #2a3447;
  --ink: #edf2fb;
  --muted: #9aa9bf;
  --accent: #8de6ff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 8% 0%, rgba(113, 222, 255, 0.14), transparent 34%),
    radial-gradient(circle at 92% 100%, rgba(113, 222, 255, 0.08), transparent 38%),
    var(--bg);
  background-attachment: fixed;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
}

main {
  width: min(860px, 92vw);
  margin: 28px auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 18px;
}

h1 {
  margin: 0;
  font-family: "Audiowide", "Rajdhani", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

h2 {
  margin: 14px 0 6px;
  font-size: 1.2rem;
}

.important-notice {
  margin: 14px 0;
  border: 1px solid #3b4f6c;
  border-radius: 10px;
  background: #0c1728;
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(141, 230, 255, 0.28);
}

.important-notice h2 {
  margin-top: 0;
}

.important-notice p,
.important-notice li {
  color: #bfcee6;
}

p,
li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.license-text {
  margin: 8px 0 0;
  border: 1px solid #32445f;
  border-radius: 10px;
  background: #0a1322;
  color: #c8d6ea;
  padding: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.42;
}

a {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #4b8fff;
  outline-offset: 2px;
  border-radius: 8px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.top h1 {
  flex: 1 1 320px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.top-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

.back {
  text-decoration: none;
  border: 1px solid #364760;
  border-radius: 999px;
  padding: 7px 12px;
  color: #dce7fb;
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
}

.lang-switch {
  position: relative;
  display: flex;
  width: 68px;
}

.lang-toggle {
  border: 1px solid #3a4a66;
  background: #111b2d;
  color: #d6e4fd;
  border-radius: 8px;
  padding: 7px 22px 7px 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  text-align: left;
  background-image:
    linear-gradient(45deg, transparent 50%, #9db0cf 50%),
    linear-gradient(135deg, #9db0cf 50%, transparent 50%);
  background-position:
    calc(100% - 13px) calc(50% - 2px),
    calc(100% - 8px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid #3a4a66;
  border-radius: 10px;
  background: #0f1728;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-2px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.lang-switch.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-item {
  border: 1px solid transparent;
  border-radius: 8px;
  background: #111b2d;
  color: #d6e4fd;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 7px 8px;
  cursor: pointer;
  text-align: center;
}

.lang-item.is-active {
  border-color: var(--accent);
  color: #082028;
  background: var(--accent);
}

@media (max-width: 640px) {
  .top h1 {
    flex-basis: 100%;
  }

  .top-controls {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  .top-controls {
    justify-content: flex-start;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .back {
    font-size: 0.95rem;
    padding: 6px 10px;
  }

  .lang-switch {
    width: 64px;
  }
}

.support-form {
  margin: 10px 0 14px;
  border: 1px solid #31445f;
  border-radius: 12px;
  background: #0c1728;
  padding: 12px;
  display: grid;
  gap: 10px;
}

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

.support-field label {
  color: #d6e4fd;
  font-weight: 700;
}

.support-input,
.support-textarea {
  width: 100%;
  border: 1px solid #395070;
  border-radius: 9px;
  background: #0a1322;
  color: #edf2fb;
  padding: 10px;
  font: inherit;
}

.support-textarea {
  resize: vertical;
  min-height: 130px;
}

.support-input::placeholder,
.support-textarea::placeholder {
  color: #8fa4c0;
}

.support-submit {
  justify-self: start;
  border: 1px solid #4aa4be;
  border-radius: 999px;
  background: #71deff;
  color: #082028;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.support-submit:disabled {
  cursor: default;
  opacity: 0.6;
}

.support-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.support-status {
  margin: 0;
  display: none;
}

.support-status.is-visible {
  display: block;
}

.support-status.is-ok {
  color: #8ff2b0;
}

.support-status.is-error {
  color: #ffb0b0;
}

.support-status.is-progress {
  color: #c8d4e9;
}

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

.support-turnstile {
  min-height: 65px;
}

.community-links {
  margin: 10px 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.community-link {
  text-decoration: none;
  border: 1px solid #364760;
  border-radius: 999px;
  padding: 7px 12px;
  color: #dce7fb;
  font-weight: 700;
}

.community-link:hover,
.community-link:focus-visible {
  border-color: var(--accent);
  background: #15314b;
  color: #e9f7ff;
}

.cards {
  margin: 10px 0 14px;
  display: grid;
  gap: 10px;
}

.cards article {
  border: 1px solid #2d374b;
  border-radius: 10px;
  background: #0d1320;
  padding: 10px;
}

.cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pricing-cards {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pricing-cards h3 {
  margin-top: 0;
}

.pricing-cards p {
  margin: 8px 0 0;
}

@media (max-width: 720px) {
  .cards.two {
    grid-template-columns: 1fr;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }
}
