:root {
  --bg-0: #04030a;
  --bg-1: #0b0a1a;
  --bg-2: #120d25;
  --text: #f3ecff;
  --muted: #b3a8d8;
  --line: #3a2e61;
  --cyan: #31f7ff;
  --pink: #ff3ecf;
  --violet: #8b5cf6;
  --card: rgba(14, 11, 29, 0.72);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(49, 247, 255, 0.12), transparent 65%),
    radial-gradient(900px 500px at -10% 120%, rgba(255, 62, 207, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 50%, var(--bg-2));
  min-height: 100vh;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.03) 0px,
    rgba(255,255,255,.03) 1px,
    transparent 2px,
    transparent 4px
  );
  mix-blend-mode: soft-light;
  opacity: .25;
  z-index: 1;
}

.grid-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(179, 168, 216, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(179, 168, 216, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 45%, black 35%, transparent 90%);
  z-index: 0;
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .9;
}

.wrap {
  width: min(75vw, 1600px);
  margin: 0 auto;
  padding: 52px 28px;
  position: relative;
  z-index: 2;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(7px);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(49,247,255,.9), rgba(139,92,246,.65), rgba(255,62,207,.85));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .6;
  pointer-events: none;
}

.card.pad { padding: 40px; }

h1 { margin: 0 0 20px; font-size: 32px; letter-spacing: .8px; line-height: 1.3; }
h2 { margin: 14px 0 18px; font-size: 21px; line-height: 1.45; }
p { color: var(--muted); line-height: 1.9; margin: 14px 0 22px; }

.neon {
  color: #f6d7ff;
  text-shadow:
    0 0 8px rgba(255, 62, 207, .6),
    0 0 20px rgba(255, 62, 207, .45),
    0 0 34px rgba(49, 247, 255, .25);
}

.glitch {
  position: relative;
  display: inline-block;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.glitch::before {
  left: 1px;
  text-shadow: -1px 0 var(--cyan);
  clip-path: polygon(0 2%,100% 2%,100% 36%,0 36%);
  animation: glitchA 2.2s infinite linear alternate-reverse;
}
.glitch::after {
  left: -1px;
  text-shadow: 1px 0 var(--pink);
  clip-path: polygon(0 62%,100% 62%,100% 100%,0 100%);
  animation: glitchB 1.7s infinite linear alternate-reverse;
}
@keyframes glitchA { from { transform: translateX(0); } to { transform: translateX(2px); } }
@keyframes glitchB { from { transform: translateX(0); } to { transform: translateX(-2px); } }

.row { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 14px; }

.btn {
  margin-right: 4px;

  display: inline-block;
  border: 1px solid rgba(49,247,255,.55);
  border-radius: 12px;
  padding: 14px 22px;
  color: #dcfcff;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(49,247,255,.22), rgba(49,247,255,.07));
  box-shadow: inset 0 0 14px rgba(49,247,255,.1), 0 0 12px rgba(49,247,255,.2);
}
.btn:hover { filter: brightness(1.15); transform: translateY(-1px); }
.btn.secondary {
  border-color: rgba(255,62,207,.55);
  background: linear-gradient(180deg, rgba(255,62,207,.24), rgba(255,62,207,.08));
  box-shadow: inset 0 0 14px rgba(255,62,207,.12), 0 0 12px rgba(255,62,207,.22);
}
.btn.ghost {
  background: rgba(255,255,255,.03);
  border-color: var(--line);
  box-shadow: none;
}

input[type="text"],
label,
input[type="password"],
input[type="file"],
button,
select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(8, 8, 18, 0.9);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
}
input:focus, button:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(49,247,255,.18); }

button {
  cursor: pointer;
  border: none;
  font-weight: 700;
  letter-spacing: .2px;
  background: linear-gradient(90deg, rgba(49,247,255,.95), rgba(255,62,207,.9));
  color: #190a1e;
}

.message { margin-top: 18px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); line-height: 1.8; }
.message.ok { color: #c8ffe8; border-color: rgba(49,247,255,.5); background: rgba(49,247,255,.1); }
.message.err { color: #ffd0f0; border-color: rgba(255,62,207,.55); background: rgba(255,62,207,.12); }

.table-wrap { overflow: auto; border-radius: 14px; border: 1px solid var(--line); margin-top: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { border-bottom: 1px solid #2f2553; padding: 14px 16px; text-align: left; line-height: 1.6; }
th {
  color: #ffd6f7;
  background: rgba(14, 9, 28, 0.96);
  position: sticky;
  top: 0;
}

tbody tr:hover { background: rgba(49,247,255,.06); }

.links a { color: #99f9ff; margin-right: 18px; text-decoration: none; display:inline-block; margin-bottom:12px; line-height:1.8; }
.links a:hover { color: #ffc0ef; }

.tag {
  margin-right: 12px;

  display: inline-block;
  font-size: 12px;
  border: 1px solid rgba(49,247,255,.55);
  color: #b8fbff;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
}


.form-group { margin-bottom: 20px; }


.density-badge{font-size:12px;opacity:.8;letter-spacing:.8px}


.site-brand{position:fixed;top:14px;right:18px;z-index:3;padding:8px 12px;border:1px solid rgba(49,247,255,.45);border-radius:10px;background:rgba(8,8,18,.6);color:#eafcff;font-size:13px;letter-spacing:0;font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif;font-style:normal;font-weight:500;text-shadow:none;backdrop-filter:blur(4px);}
