:root {
  --bg: #050814;
  --bg-elevated: rgba(8, 14, 30, 0.92);
  --surface: rgba(8, 16, 36, 0.78);
  --surface-strong: rgba(10, 19, 44, 0.92);
  --surface-soft: rgba(13, 24, 52, 0.68);
  --text: #f2fbff;
  --muted: #8ea8bf;
  --muted-strong: #b8cfe1;
  --border: rgba(89, 217, 255, 0.16);
  --line: rgba(111, 248, 255, 0.35);
  --primary: #3cf4ff;
  --primary-dark: #0ba8d3;
  --register: #8d6dff;
  --register-dark: #6652ff;
  --buy: #1f9dff;
  --buy-dark: #0a6cff;
  --faq: #ff9b2f;
  --faq-dark: #ff6a00;
  --guide: #5f85ff;
  --guide-dark: #3455ff;
  --danger: #ff547c;
  --success: #61ffb4;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --panel-width: 620px;
  --form-width: 540px;
  --glow-primary: 0 0 0 1px rgba(60, 244, 255, 0.18), 0 0 30px rgba(60, 244, 255, 0.12), 0 18px 50px rgba(0, 0, 0, 0.42);
  --glow-register: 0 0 0 1px rgba(141, 109, 255, 0.18), 0 0 30px rgba(141, 109, 255, 0.12), 0 18px 50px rgba(0, 0, 0, 0.42);
  --glow-buy: 0 0 0 1px rgba(31, 157, 255, 0.18), 0 0 30px rgba(31, 157, 255, 0.12), 0 18px 50px rgba(0, 0, 0, 0.42);
  --glow-guide: 0 0 0 1px rgba(95, 133, 255, 0.18), 0 0 30px rgba(95, 133, 255, 0.12), 0 18px 50px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

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

body.theme-cyber {
  position: relative;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font: 16px/1.6 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 15% 20%, rgba(60, 244, 255, 0.16), transparent 25%),
    radial-gradient(circle at 85% 14%, rgba(141, 109, 255, 0.16), transparent 24%),
    radial-gradient(circle at 70% 78%, rgba(255, 106, 0, 0.16), transparent 28%),
    linear-gradient(180deg, #071022 0%, #040813 48%, #03050e 100%);
}

body.theme-cyber::before,
body.theme-cyber::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body.theme-cyber::before {
  background:
    linear-gradient(rgba(111, 248, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 248, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 90%);
  opacity: 0.32;
  animation: grid-drift 18s linear infinite;
}

body.theme-cyber::after {
  background:
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.03) 48%, transparent 100%),
    radial-gradient(circle at center, rgba(60, 244, 255, 0.05), transparent 56%);
  mix-blend-mode: screen;
  opacity: 0.8;
}

img {
  display: block;
  max-width: 100%;
}

a,
button,
input,
textarea,
select {
  font: inherit;
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid rgba(60, 244, 255, 0.9);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px 0 16px;
  background:
    linear-gradient(180deg, rgba(4, 9, 20, 0.96) 0%, rgba(4, 9, 20, 0.68) 75%, rgba(4, 9, 20, 0) 100%);
  backdrop-filter: blur(16px);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(60, 244, 255, 0.6), transparent);
  box-shadow: 0 0 18px rgba(60, 244, 255, 0.32);
}

.header-topline {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  margin-bottom: 18px;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(60, 244, 255, 0.26);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(12, 20, 44, 0.92), rgba(7, 14, 31, 0.92)),
    rgba(10, 17, 39, 0.82);
  box-shadow: var(--glow-primary);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.06em;
  text-align: center;
  text-shadow: 0 0 12px rgba(60, 244, 255, 0.26);
}

.brand::before,
.brand::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 13px;
  pointer-events: none;
}

.brand::before {
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.brand::after {
  inset: auto 12px -5px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(60, 244, 255, 0.8), transparent);
  box-shadow: 0 0 16px rgba(60, 244, 255, 0.42);
}

.header-actions {
  position: absolute;
  top: 50%;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transform: translateY(-50%);
}

.header-download {
  display: inline-flex;
  align-items: center;
}

.site-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(10, 18, 38, 0.78);
  box-shadow: 0 0 0 1px rgba(60, 244, 255, 0.08), 0 10px 24px rgba(0, 0, 0, 0.38);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.site-status-pill-success {
  color: var(--success);
  border-color: rgba(97, 255, 180, 0.28);
}

.site-status-pill-danger {
  color: var(--danger);
  border-color: rgba(255, 84, 124, 0.28);
}

.site-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
  animation: node-blink 1.8s ease-in-out infinite;
}

.header-dropdown {
  position: relative;
}

.header-dropdown > summary {
  list-style: none;
}

.header-dropdown > summary::-webkit-details-marker {
  display: none;
}

.header-dropdown[open] > summary {
  transform: translateY(-1px);
}

.header-dropdown[open] .btn-header__caret {
  transform: rotate(180deg);
}

.header-dropdown__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 8px;
  min-width: 210px;
  padding: 12px;
  border: 1px solid rgba(95, 133, 255, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(11, 17, 36, 0.96), rgba(7, 12, 28, 0.96));
  box-shadow: var(--glow-guide);
}

.header-dropdown__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  width: 100%;
  padding: 0 16px;
  border: 1px solid rgba(95, 133, 255, 0.18);
  border-radius: 14px;
  background: rgba(10, 19, 43, 0.84);
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-dropdown__item:hover {
  transform: translateY(-1px);
  border-color: rgba(95, 133, 255, 0.42);
  box-shadow: 0 0 22px rgba(95, 133, 255, 0.16);
}

.header-dropdown__item--primary {
  color: #ecf7ff;
  border-color: rgba(95, 133, 255, 0.36);
  background: linear-gradient(135deg, rgba(95, 133, 255, 0.22), rgba(52, 85, 255, 0.28));
}

.tabs,
.subtabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(95, 133, 255, 0.18);
  border-radius: 22px;
  background: rgba(9, 16, 34, 0.76);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 18px 40px rgba(0, 0, 0, 0.34);
}

.tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  margin: 0 auto;
}

.tab-link,
.subtab-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tab-link__icon,
.subtab-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 18px;
  line-height: 1;
}

.tab-link__label,
.subtab-link__label {
  display: inline-block;
}

.tab-link::after,
.subtab-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tab-link:hover,
.subtab-link:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.tab-link:hover::after,
.subtab-link:hover::after,
.tab-link.is-active::after,
.subtab-link.is-active::after {
  opacity: 1;
}

.tab-link.is-active,
.subtab-link.is-active {
  color: #f7fdff;
  transform: translateY(-1px);
}

.tab-link--recharge.is-active,
.subtab-link--android.is-active {
  border-color: rgba(60, 244, 255, 0.42);
  background: linear-gradient(135deg, rgba(60, 244, 255, 0.18), rgba(11, 168, 211, 0.24));
  box-shadow: 0 0 18px rgba(60, 244, 255, 0.16);
}

.tab-link--register.is-active,
.subtab-link--ios.is-active {
  border-color: rgba(141, 109, 255, 0.42);
  background: linear-gradient(135deg, rgba(141, 109, 255, 0.18), rgba(102, 82, 255, 0.26));
  box-shadow: 0 0 18px rgba(141, 109, 255, 0.16);
}

.tab-link--buy.is-active {
  border-color: rgba(31, 157, 255, 0.42);
  background: linear-gradient(135deg, rgba(31, 157, 255, 0.18), rgba(10, 108, 255, 0.24));
  box-shadow: 0 0 18px rgba(31, 157, 255, 0.16);
}

.subtab-link--faq.is-active {
  border-color: rgba(255, 155, 47, 0.42);
  background: linear-gradient(135deg, rgba(255, 155, 47, 0.18), rgba(255, 106, 0, 0.24));
  box-shadow: 0 0 18px rgba(255, 155, 47, 0.16);
}

.tab-link--guide.is-active {
  border-color: rgba(95, 133, 255, 0.42);
  background: linear-gradient(135deg, rgba(95, 133, 255, 0.18), rgba(52, 85, 255, 0.26));
  box-shadow: 0 0 18px rgba(95, 133, 255, 0.16);
}

.guide-switcher .subtab-link {
  color: var(--muted-strong);
  box-shadow: none;
}

.guide-switcher .subtab-link--android {
  border-color: rgba(60, 244, 255, 0.16);
  background: rgba(60, 244, 255, 0.08);
  color: rgba(193, 252, 255, 0.94);
}

.guide-switcher .subtab-link--ios {
  border-color: rgba(141, 109, 255, 0.16);
  background: rgba(141, 109, 255, 0.08);
  color: rgba(224, 214, 255, 0.94);
}

.guide-switcher .subtab-link--faq {
  border-color: rgba(255, 155, 47, 0.16);
  background: rgba(255, 155, 47, 0.08);
  color: rgba(255, 230, 197, 0.94);
}

.guide-switcher .subtab-link:hover {
  color: inherit;
  border-color: inherit;
  background: inherit;
  transform: none;
}

.guide-switcher .subtab-link:hover::after {
  opacity: 0;
}

.site-main {
  padding: 26px 0 48px;
}

.panel {
  margin-top: 18px;
}

.card,
.disclaimer,
.maintenance-card {
  border-radius: var(--radius-xl);
}

.card {
  position: relative;
  width: min(var(--panel-width), 100%);
  margin: 0 auto;
  padding: 34px 30px 30px;
  overflow: hidden;
  border: 1px solid rgba(89, 217, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(12, 20, 43, 0.88), rgba(7, 13, 28, 0.9)),
    var(--surface);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 24px 70px rgba(0, 0, 0, 0.44);
}

.card::before,
.card::after {
  position: absolute;
  pointer-events: none;
}

.card::before {
  top: 16px;
  right: 20px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
}

.card::after {
  content: "";
  inset: 0;
  background:
    linear-gradient(180deg, rgba(60, 244, 255, 0.03), transparent 24%),
    radial-gradient(circle at top right, rgba(95, 133, 255, 0.1), transparent 28%);
  opacity: 0.9;
}

#recharge .card::before {
  content: "充值";
  color: rgba(60, 244, 255, 0.92);
  border-color: rgba(60, 244, 255, 0.35);
}

#register .card::before {
  content: "注册";
  color: rgba(141, 109, 255, 0.95);
  border-color: rgba(141, 109, 255, 0.38);
}

#buy .card::before {
  content: "购卡";
  color: rgba(31, 157, 255, 0.95);
  border-color: rgba(31, 157, 255, 0.38);
}

#guide .card::before {
  content: "教程";
  color: rgba(95, 133, 255, 0.95);
  border-color: rgba(95, 133, 255, 0.38);
}

.server-message-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto 18px;
}

.server-message-stack.is-inline {
  margin-top: 0;
}

.server-message-stack:empty {
  display: none;
}

.form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  max-width: var(--form-width);
  margin: 0 auto;
  text-align: left;
}

.form-fieldset {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-fieldset:disabled {
  opacity: 0.54;
}

.field label {
  position: relative;
  display: block;
  margin-bottom: 8px;
  padding-left: 12px;
  color: #d8ecff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.field label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--primary);
  box-shadow: 0 0 8px rgba(60, 244, 255, 0.5);
  transform: translateY(-50%);
}

#register .field label::before {
  background: var(--register);
  box-shadow: 0 0 8px rgba(141, 109, 255, 0.5);
}

#buy .field label::before {
  background: var(--buy);
  box-shadow: 0 0 8px rgba(31, 157, 255, 0.5);
}

.field input {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid rgba(89, 217, 255, 0.22);
  border-radius: 14px;
  background: rgba(5, 11, 25, 0.88);
  color: var(--text);
  font-size: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.field input::placeholder {
  color: rgba(184, 207, 225, 0.42);
}

.field input:focus {
  border-color: rgba(60, 244, 255, 0.62);
  background: rgba(8, 15, 33, 0.96);
  box-shadow: 0 0 0 4px rgba(60, 244, 255, 0.12), 0 0 26px rgba(60, 244, 255, 0.08);
  transform: translateY(-1px);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, border-color 0.18s ease;
}

.btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 18px;
  line-height: 1;
}

.btn__label {
  display: inline-block;
}

.btn-block {
  width: 100%;
  min-height: 58px;
  font-size: 18px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: not-allowed;
  transform: none;
  opacity: 0.6;
}

.btn-primary {
  color: #effcff;
  border-color: rgba(60, 244, 255, 0.34);
  background: linear-gradient(135deg, rgba(60, 244, 255, 0.2), rgba(11, 168, 211, 0.3));
  box-shadow: var(--glow-primary);
}

.btn-recharge {
  border-color: rgba(60, 244, 255, 0.42);
  background: linear-gradient(135deg, rgba(60, 244, 255, 0.22), rgba(11, 168, 211, 0.34));
  box-shadow: var(--glow-primary);
}

.btn-register {
  border-color: rgba(141, 109, 255, 0.42);
  background: linear-gradient(135deg, rgba(141, 109, 255, 0.22), rgba(102, 82, 255, 0.34));
  box-shadow: var(--glow-register);
}

.btn-buy {
  border-color: rgba(31, 157, 255, 0.42);
  background: linear-gradient(135deg, rgba(31, 157, 255, 0.22), rgba(10, 108, 255, 0.34));
  box-shadow: var(--glow-buy);
}

.btn-guide {
  border-color: rgba(95, 133, 255, 0.42);
  background: linear-gradient(135deg, rgba(95, 133, 255, 0.24), rgba(52, 85, 255, 0.34));
  box-shadow: var(--glow-guide);
}

.btn-secondary {
  color: var(--muted-strong);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(11, 18, 40, 0.82);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.btn-header {
  gap: 10px;
  min-width: 136px;
  min-height: 44px;
  padding: 0 16px;
  font-size: 13px;
}

.btn-header__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 16px rgba(95, 133, 255, 0.18);
  font-size: 12px;
  line-height: 1;
}

.btn-header__label {
  white-space: nowrap;
}

.btn-header__caret {
  font-size: 11px;
  opacity: 0.82;
  transition: transform 0.18s ease;
}

.btn-link {
  text-decoration: none;
}

.callout {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(60, 244, 255, 0.22);
  border-radius: 14px;
  background: rgba(8, 17, 38, 0.76);
  color: var(--muted-strong);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.callout-important {
  border-color: rgba(255, 84, 124, 0.3);
  color: #ffd8e2;
  background: rgba(42, 8, 21, 0.6);
}

.callout-success {
  border-color: rgba(97, 255, 180, 0.28);
  color: #d9fff1;
  background: rgba(7, 36, 23, 0.6);
}

.callout-inline {
  box-shadow: 0 0 22px rgba(60, 244, 255, 0.08);
}

.credentials-callout {
  display: grid;
  gap: 12px;
}

.credentials-grid {
  display: grid;
  gap: 10px;
}

.credentials-grid code {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  border: 1px solid rgba(60, 244, 255, 0.16);
  border-radius: 999px;
  background: rgba(5, 11, 25, 0.86);
}

.noscript-callout {
  margin: 0 auto 20px;
  width: min(var(--panel-width), 100%);
}

.visually-hidden-copy-input {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.guide-card {
  position: relative;
  z-index: 1;
  padding: 22px 20px;
  border: 1px solid rgba(95, 133, 255, 0.16);
  border-radius: 18px;
  background: rgba(7, 14, 30, 0.72);
  text-align: left;
}

.guide-card-wide {
  margin-top: 12px;
}

.guide-card-compact {
  padding-top: 16px;
  padding-bottom: 16px;
}

.guide-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guide-page--android h3 {
  color: var(--primary);
}

.guide-page--ios h3 {
  color: var(--register);
}

.guide-page--faq h3 {
  color: var(--faq);
}

.guide-switcher,
.guide-pages,
.server-message-stack,
.subtabs {
  margin-left: auto;
  margin-right: auto;
}

.guide-switcher {
  margin-top: 0;
}

.guide-pages {
  margin-top: 16px;
}

.guide-page[hidden] {
  display: none !important;
}

.steps {
  margin: 0;
  padding-left: 22px;
}

.steps li + li {
  margin-top: 8px;
}

.steps li::marker {
  color: var(--primary);
  font-weight: 800;
}

.faq details {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(8, 14, 30, 0.86);
}

.faq details + details {
  margin-top: 10px;
}

.faq summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.faq ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.cta-row--buy {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.note {
  color: var(--muted);
  font-size: 14px;
}

.note-strong {
  color: #d7f0ff;
  font-weight: 900;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  text-align: center;
  text-shadow: 0 0 12px rgba(31, 157, 255, 0.34);
}

.note-strong__accent {
  color: #ff4d6d;
  font-weight: 900;
  text-shadow: 0 0 16px rgba(255, 77, 109, 0.5);
}

.warning,
.note-danger {
  color: #ff8ba8;
  font-weight: 800;
}

.site-footer {
  padding: 0 0 46px;
}

.disclaimer {
  width: min(var(--panel-width), 100%);
  margin: 0 auto;
  padding: 28px 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 12, 26, 0.8);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  text-align: center;
}

.disclaimer h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.disclaimer p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.warning__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 999px;
  background: rgba(255, 186, 73, 0.16);
  color: #ffd27a;
  font-size: 14px;
  vertical-align: -4px;
}

.maintenance-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0 56px;
}

.maintenance-panel {
  width: 100%;
}

.maintenance-card {
  width: min(780px, 100%);
  margin: 0 auto;
  padding: 44px 38px;
  border: 1px solid rgba(255, 84, 124, 0.24);
  background:
    linear-gradient(180deg, rgba(22, 9, 26, 0.88), rgba(11, 8, 18, 0.92));
  box-shadow: 0 0 0 1px rgba(255, 84, 124, 0.12), 0 0 34px rgba(255, 84, 124, 0.12), 0 28px 80px rgba(0, 0, 0, 0.44);
  text-align: center;
}

.maintenance-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(255, 84, 124, 0.28);
  border-radius: 999px;
  background: rgba(255, 84, 124, 0.12);
  color: #ffd8e2;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.maintenance-card h1 {
  margin: 14px 0 16px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.maintenance-copy {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted-strong);
}

.maintenance-copy p {
  margin: 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 12, 0.76);
  backdrop-filter: blur(7px);
}

.modal-dialog {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  margin: 11vh auto 0;
  padding: 24px;
  border: 1px solid rgba(60, 244, 255, 0.22);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(12, 20, 43, 0.95), rgba(7, 13, 28, 0.96));
  box-shadow: var(--glow-primary);
}

.modal-title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 24px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.modal-desc {
  margin: 0 0 14px;
  color: var(--muted);
}

.kv {
  padding: 14px;
  border: 1px solid rgba(60, 244, 255, 0.16);
  border-radius: 16px;
  background: rgba(5, 11, 25, 0.82);
}

.kv-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kv-row + .kv-row {
  margin-top: 10px;
}

.kv-row span {
  min-width: 72px;
  color: var(--muted);
  font: 700 12px/1.2 "Cascadia Code", "Consolas", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kv-row code {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: "Cascadia Code", "Consolas", monospace;
  user-select: all;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.toast-container {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-width: 240px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid rgba(60, 244, 255, 0.18);
  border-radius: 14px;
  background: rgba(8, 15, 33, 0.94);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02), 0 18px 40px rgba(0, 0, 0, 0.44);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.24s ease, opacity 0.24s ease;
  pointer-events: auto;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-success {
  border-color: rgba(97, 255, 180, 0.28);
}

.toast-error {
  border-color: rgba(255, 84, 124, 0.28);
}

.toast-info {
  border-color: rgba(95, 133, 255, 0.3);
}

@keyframes grid-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, 64px, 0);
  }
}

@keyframes node-blink {
  0%,
  100% {
    opacity: 0.9;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.18);
  }
}

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

@media (max-width: 960px) {
  .shell {
    width: min(100vw - 22px, 1120px);
  }

  .header-topline {
    min-height: auto;
    gap: 16px;
    padding-top: 8px;
  }

  .brand {
    min-height: 42px;
    padding: 0 16px;
    font-size: 15px;
  }

  .header-actions {
    position: static;
    transform: none;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 14px 0 14px;
  }

  .tabs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .tabs .tab-link {
    flex: 0 0 auto;
    width: auto;
    min-width: 112px;
    padding: 0 16px;
    font-size: 15px;
    scroll-snap-align: start;
  }

  .subtabs {
    width: 100%;
    justify-content: center;
  }

  .subtab-link,
  .btn,
  .header-dropdown__item {
    width: 100%;
  }

  .header-dropdown__menu {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    min-width: min(280px, calc(100vw - 32px));
  }

  .card,
  .disclaimer,
  .maintenance-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .card::before {
    top: 12px;
    right: 14px;
    font-size: 10px;
  }

  .form,
  .server-message-stack {
    max-width: 100%;
  }

  .cta-row {
    align-items: stretch;
  }

  .disclaimer h3,
  .modal-title {
    font-size: 22px;
  }
}
