:root {
  color-scheme: dark;
  --bg: #05070c;
  --panel: rgba(255, 255, 255, .055);
  --panel-strong: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(0, 255, 213, .32);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, .62);
  --soft: rgba(255, 255, 255, .38);
  --primary: #00ffd5;
  --primary-2: #7c5cff;
  --danger: #ff4d6d;
  --warning: #ffd166;
  --ok: #68ff9d;
  --shadow: 0 0 40px rgba(0, 255, 213, .15);
  --radius: 16px;
  --nav-h: 72px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 16%, rgba(0, 255, 213, .12), transparent 32rem),
    radial-gradient(circle at 86% 18%, rgba(124, 92, 255, .12), transparent 34rem),
    linear-gradient(180deg, #05070c 0%, #080d14 48%, #05070c 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.three-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: .82;
  pointer-events: none;
}

.site-shell {
  position: relative;
  z-index: 1;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav-h);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(5, 7, 12, .72);
  backdrop-filter: blur(22px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 0 28px rgba(0, 255, 213, .25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  transition: .18s ease;
}

.nav-links a:hover,
.ghost-link:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, .055);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, .07);
  box-shadow: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 255, 213, .42);
  background: rgba(255, 255, 255, .095);
  box-shadow: var(--shadow);
}

.btn.primary {
  color: #02110f;
  border-color: rgba(0, 255, 213, .7);
  background: linear-gradient(135deg, var(--primary), #8ffff0);
  font-weight: 800;
}

.btn.danger {
  border-color: rgba(255, 77, 109, .42);
  color: #fff;
  background: rgba(255, 77, 109, .14);
}

.btn.small {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 10px;
  font-size: 13px;
}

.lang-toggle {
  min-width: 48px;
}

.glass {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .035));
  box-shadow: 0 18px 70px rgba(0, 0, 0, .28), var(--shadow);
  backdrop-filter: blur(22px);
}

.section {
  padding: 86px 0;
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-copy {
  max-width: 700px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.grid {
  display: grid;
  gap: 16px;
}

.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .052);
  backdrop-filter: blur(18px);
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: rgba(255, 255, 255, .76);
  font-size: 13px;
  font-weight: 700;
}

.input,
.select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 13px;
  color: var(--text);
  outline: none;
  background: rgba(0, 0, 0, .23);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.input:focus,
.select:focus {
  border-color: rgba(0, 255, 213, .58);
  box-shadow: 0 0 0 4px rgba(0, 255, 213, .1);
  background: rgba(0, 0, 0, .34);
}

.input::placeholder {
  color: rgba(255, 255, 255, .32);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.notice {
  min-height: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.notice.error {
  color: #ff9aad;
}

.notice.ok {
  color: var(--ok);
}

.avatar {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(0, 255, 213, .28);
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(0, 255, 213, .22), rgba(124, 92, 255, .22));
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(0, 255, 213, .22);
  border-radius: 999px;
  color: rgba(255, 255, 255, .84);
  background: rgba(0, 255, 213, .08);
  font-size: 12px;
  font-weight: 700;
}

.mono {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  word-break: break-all;
}

.muted {
  color: var(--muted);
}

.hide {
  display: none !important;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  text-align: left;
  vertical-align: middle;
}

th {
  color: rgba(255, 255, 255, .58);
  font-size: 12px;
  text-transform: uppercase;
}

td {
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
}

tr:last-child td {
  border-bottom: 0;
}

tr.clickable {
  cursor: pointer;
}

tr.clickable:hover {
  background: rgba(255, 255, 255, .045);
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    padding: 0 9px;
    font-size: 13px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }
}
