@import url("https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700;800&family=Unbounded:wght@600;700&display=swap");

* { box-sizing: border-box; outline: none; scrollbar-width: none; -ms-overflow-style: none; }

html {
  margin: 0;
  min-height: 100%;
  background: #06070c;
  font-family: "Onest", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

body {
  margin: 0;
  min-height: 100dvh;
  position: relative;
  isolation: isolate;
  background: transparent;
  color: #f2f3f7;
  font-family: "Onest", "Segoe UI", system-ui, sans-serif;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 72% -12%, rgba(255, 255, 255, 0.16), transparent 44%),
    #06070c;
  pointer-events: none;
}
.bg::before {
  content: none;
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 32px);
  opacity: 1;
}
.bg-video {
  display: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.18)),
    radial-gradient(ellipse at center, transparent 32%, rgba(0, 0, 0, 0.28) 100%);
}

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 32px 16px calc(96px + env(safe-area-inset-bottom));
}

.corner-bar {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 22px;
}
.top-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.prod-upd {
  color: #d7dbe4;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-align: right;
  flex: 0 0 auto;
}
.prod-upd[hidden] { display: none; }
@media (max-width: 900px) {
  .top-actions, #auth-slot, .corner-bar { flex-wrap: wrap; justify-content: flex-end; }
  .top-meta { flex-wrap: wrap; justify-content: flex-end; max-width: 100%; }
  .prod-upd {
    flex: 1 0 100%;
    max-width: min(280px, 72vw);
    white-space: normal;
    font-size: 12px;
  }
}
.prod-status {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: help;
  flex: 0 0 auto;
}
.prod-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}
.prod-status[data-state="tech"] .prod-status-dot {
  background: #ffd54a;
  box-shadow: 0 0 0 3px rgba(255, 213, 74, 0.22), 0 0 10px rgba(255, 213, 74, 0.7);
}
.prod-status[data-state="updating"] .prod-status-dot {
  background: #ff5a5a;
  box-shadow: 0 0 0 3px rgba(255, 90, 90, 0.22), 0 0 10px rgba(255, 90, 90, 0.7);
}
.prod-status[data-state="ready"] .prod-status-dot {
  background: #4ee08a;
  box-shadow: 0 0 0 3px rgba(78, 224, 138, 0.22), 0 0 10px rgba(78, 224, 138, 0.7);
}
.prod-status-tip {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  transform: translateY(4px);
  z-index: 40;
  min-width: max-content;
  max-width: min(320px, calc(100vw - 24px));
  padding: 8px 12px;
  border-radius: 10px;
  background: #1c1d24;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  color: #f2f3f7;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.35;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.prod-status-tip::before {
  content: "";
  position: absolute;
  top: -5px;
  right: 6px;
  border: 5px solid transparent;
  border-bottom-color: #1c1d24;
  border-top-width: 0;
}
.prod-status:hover .prod-status-tip,
.prod-status:focus-visible .prod-status-tip {
  opacity: 1;
  transform: none;
}

.act-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
}
.act-link svg { display: block; width: 20px; height: 20px; flex: 0 0 20px; }

.lang {
  position: relative;
  display: flex;
  align-items: center;
}
.lang-now {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 2px;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.lang-caret {
  display: block;
  width: 10px;
  height: 6px;
  transition: transform .16s ease;
}
.lang.open .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  min-width: 76px;
  padding: 4px 0;
  border-radius: 12px;
  background: #1c1d24;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 16px;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.lang-menu button:hover,
.lang-menu button[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.05);
}

.tg-ico {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #7dd3fc;
  text-decoration: none;
}

.brand {
  text-align: center;
}
.brand a.home-back {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

.brand img {
  width: 92px;
  height: 92px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.brand h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.code {
  margin: 10px 0 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #3ecfff;
}

.island {
  width: min(100%, 420px);
  background: rgba(18, 20, 27, 0.88);
  border: 0;
  border-radius: 16px;
  padding: 18px 16px 16px;
}

.island h2 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.island h2 + form {
  margin-top: 18px;
}

.hint {
  margin: 6px 0 14px;
  color: #8b90a0;
  font-size: 13px;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 12px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: #12141b;
  border: 0;
}

.row.on,
.row:has(input:checked) {
  background: #161b28;
}

.row span {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
}

.row small {
  color: #8b90a0;
  font-size: 12px;
}

.row b {
  color: #f2f3f7;
  font-weight: 700;
  white-space: nowrap;
}

.row input { accent-color: #2470c8; width: 18px; height: 18px; }

.agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 10px;
  font-size: 13px;
  color: #c5c8d2;
  line-height: 1.4;
}

.agree input { margin-top: 3px; accent-color: #2470c8; }
.agree a, .support a, .docs a, .doc a { color: #3ecfff; }

.support, .tg-link {
  margin: 12px 0 0;
  font-size: 13px;
  color: #8b90a0;
  text-align: center;
  overflow-wrap: anywhere;
}

.tg-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #e8edf5;
  text-decoration: none;
}
.island h2.tg-mark {
  letter-spacing: 0;
  text-transform: none;
  font-size: 16px;
}
.tg-mark svg {
  width: 18px;
  height: 18px;
  color: #2aabee;
  flex: 0 0 18px;
}
.tg-link a.tg-mark,
.tg-link a { color: #2aabee; }

.docs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(100%, 420px);
}

.docs a {
  min-height: 44px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  border: 0;
  border-radius: 12px;
  background: rgba(18, 20, 27, 0.88);
  font-size: 13px;
  padding: 10px 12px;
}

.cookie {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #12141b;
  border: 0;
  z-index: 5;
}

.cookie[hidden] { display: none; }

.cookie p {
  margin: 0;
  flex: 1;
  font-size: 13px;
  color: #c5c8d2;
}

.cookie button {
  min-height: 40px;
  min-width: 64px;
  border: 0;
  border-radius: 10px;
  background: #2470c8;
  color: #fff;
  font: inherit;
}

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px calc(40px + env(safe-area-inset-bottom));
  line-height: 1.55;
}

.doc h1 { font-size: 26px; margin: 0 0 8px; }
.doc h2 { font-size: 17px; margin: 22px 0 8px; }
.doc p, .doc li { color: #d7dae4; font-size: 15px; }
.doc ul { padding-left: 20px; }
.doc .meta { color: #8b90a0; font-size: 13px; }
.doc .back {
  display: inline-block;
  margin-bottom: 16px;
  text-decoration: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 13px;
  color: #8b90a0;
}

.field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  outline: none;
  border-radius: 12px;
  background: #0b0d12;
  color: #f2f3f7;
  font: inherit;
  padding: 0 12px;
  box-sizing: border-box;
}

.field input:focus {
  outline: none;
  border-color: rgba(62, 207, 255, 0.55);
  background: #10141c;
  box-shadow: 0 0 0 3px rgba(62, 207, 255, 0.14);
}
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.auth-input input:-webkit-autofill,
.auth-input input:-webkit-autofill:hover,
.auth-input input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f2f3f7;
  caret-color: #f2f3f7;
  box-shadow: 0 0 0 1000px #0b0d12 inset;
  -webkit-box-shadow: 0 0 0 1000px #0b0d12 inset;
  border-color: transparent;
  transition: background-color 99999s ease-out;
}

.captcha {
  margin: 12px 0 8px;
  min-height: 78px;
  display: flex;
  justify-content: center;
}
.captcha[hidden] { display: none; }

.err, .ok {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.4;
}

.err { color: #ff8b8b; }
.ok { color: #8b90a0; }
.ok.on { color: #3ecfff; }

.buy {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  border: 0;
  border-radius: 12px;
  background: #2470c8;
  color: #fff;
  font: inherit;
  font-size: 15px;
  opacity: 0.7;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buy:enabled,
.buy.tg {
  opacity: 1;
  cursor: pointer;
}

.buy:disabled { cursor: not-allowed; }
.buy[hidden] { display: none; }

.buy.tg {
  background: #2aabee;
  margin-top: 10px;
}

.buy.ghost {
  margin-top: 10px;
  background: rgba(18, 20, 27, 0.72);
  border: 0;
  color: #f2f3f7;
  opacity: 1;
}

.nav {
  display: block;
  margin-top: 14px;
  text-align: center;
  color: #3ecfff;
  font-size: 13px;
  text-decoration: none;
}
.auth-switch {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  color: #8b90a0;
}
.auth-switch a {
  margin-left: 6px;
  color: #3ecfff;
  text-decoration: none;
}
.auth-switch a:hover { text-decoration: underline; }
.auth-switch button,
.nav[data-auth] {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: #3ecfff;
  cursor: pointer;
}
.auth-switch button { margin-left: 6px; }
.auth-switch button:hover { text-decoration: underline; }

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px 16px;
}
.auth-modal[hidden] { display: none; }
.auth-dim {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 12, 0.64);
}
.auth-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  color-scheme: dark;
}
.auth-sheet .island h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 32px;
  color: #fff;
}
.auth-sheet .island h2 .auth-ico {
  color: #3ecfff;
  flex: 0 0 auto;
}
.auth-lab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.auth-lab .auth-ico { color: #8b90a0; }
.auth-input {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  background: #0b0d12;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-sizing: border-box;
}
.auth-input:focus-within {
  border-color: rgba(62, 207, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(62, 207, 255, 0.14);
}
.auth-input .auth-ico {
  color: #3ecfff;
  flex: 0 0 auto;
  opacity: 0.9;
}
.auth-sheet .auth-input input,
.auth-input input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #f2f3f7;
  color-scheme: dark;
}
.auth-sheet .auth-input input:focus,
.auth-input input:focus {
  background: transparent;
  border: 0;
  box-shadow: none;
}
.auth-sheet .buy { gap: 8px; }
.auth-sheet .buy .auth-ico { color: currentColor; }
.auth-switch button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}
.auth-switch button .auth-ico { color: #3ecfff; }
.auth-x {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #c5c8d2;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.auth-x:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.out-warn {
  margin: 14px 0 0;
  color: #c5c8d2;
  font-size: 14px;
  line-height: 1.55;
}
.out-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.out-actions .menu-lead-buy {
  flex: 1;
  margin-top: 0;
  min-width: 0;
  justify-content: center;
  cursor: pointer;
}
body.auth-open { overflow: hidden; }

#consent-go:enabled,
#login-go,
#reg-go:enabled,
#p-pass-save:enabled,
#buy:enabled {
  opacity: 1;
  cursor: pointer;
}

.pass-meter {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}
.pass-meter[hidden] { display: none; }
.pass-meter-bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(110, 116, 132, 0.22);
  overflow: hidden;
}
.pass-meter-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #ff6b6b;
  transition: width .18s ease, background .18s ease;
}
.pass-meter[data-level="1"] .pass-meter-bar i { background: #ff6b6b; }
.pass-meter[data-level="2"] .pass-meter-bar i { background: #f0b429; }
.pass-meter[data-level="3"] .pass-meter-bar i { background: #3ecfff; }
.pass-meter[data-level="4"] .pass-meter-bar i { background: #3ee08a; }
.pass-meter-lab {
  font-size: 12px;
  color: #8b90a0;
}

@media (min-width: 720px) {
  .brand img { width: 110px; height: 110px; }
  .brand h1 { font-size: 36px; }
  .island { padding: 22px 20px 18px; }
}
