:root {
  --bg: #140818;
  --ink: #f8f2ff;
  --muted: #cbb9de;
  --line: rgba(255, 255, 255, 0.14);
  --card: rgba(255, 255, 255, 0.08);
  --purple: #c084fc;
  --deep: #7c3aed;
  --pink: #f9a8d4;
  --lime: #d9f99d;
  --danger: #fb7185;
  --shadow: 0 20px 60px rgba(40, 0, 60, 0.35);
  font-family: ui-rounded, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(192, 132, 252, 0.35), transparent 55%),
    radial-gradient(900px 500px at 110% 10%, rgba(244, 114, 182, 0.28), transparent 50%),
    var(--bg);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--lime); }

.glow {
  position: fixed;
  z-index: 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.45;
  pointer-events: none;
  animation: float 14s ease-in-out infinite;
}
.glow-a { background: #a855f7; top: 8%; left: -80px; }
.glow-b { background: #f472b6; right: -90px; top: 30%; animation-delay: -4s; }
.glow-c { background: #818cf8; left: 30%; bottom: -120px; animation-delay: -8s; }
@keyframes float {
  50% { transform: translateY(-24px) scale(1.05); }
}

#app { position: relative; z-index: 1; }

.shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.side {
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: rgba(20, 8, 24, 0.45);
  backdrop-filter: blur(16px);
}
.brand { display: flex; gap: 12px; align-items: center; padding: 6px 8px 18px; }
.mark {
  width: 42px; height: 42px; border-radius: 16px;
  display: grid; place-items: center; font-weight: 800;
  background: linear-gradient(135deg, #e9d5ff, #c084fc 40%, #f9a8d4);
  color: #3b0764;
}
.brand b { display: block; font-size: 20px; }
.brand span { color: var(--muted); font-size: 12px; }
.nav { display: flex; flex-direction: column; gap: 6px; }
.nav button, .ghost, .primary, .danger {
  border: 0; border-radius: 999px;
}
.nav button {
  text-align: left;
  background: transparent;
  color: var(--muted);
  padding: 10px 14px;
}
.nav button.active, .nav button:hover { background: rgba(192, 132, 252, 0.18); color: white; }
.main { padding: 28px 6vw 80px; max-width: 980px; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.login-card { width: min(440px, 100%); }
h1 { font-size: 40px; line-height: 1.05; margin: 8px 0; }
h2 { margin: 0 0 8px; font-size: 28px; }
p { color: var(--muted); line-height: 1.6; }
.hero {
  display: flex; justify-content: space-between; gap: 18px; align-items: stretch;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.55), rgba(244, 114, 182, 0.28));
}
.money { font-size: 56px; font-weight: 800; letter-spacing: -1px; }
.lime { color: var(--lime); }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 6px 10px;
  background: rgba(217, 249, 157, 0.16); color: var(--lime); font-size: 13px;
}
.grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; }
.stack { display: grid; gap: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); flex: 1; }
input, select, textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  outline: none;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--purple); }
.primary { background: linear-gradient(135deg, #ddd6fe, #c084fc 45%, #f9a8d4); color: #3b0764; font-weight: 800; padding: 12px 16px; }
.ghost { background: rgba(255,255,255,0.08); padding: 10px 14px; }
.danger { background: rgba(251, 113, 133, 0.16); color: #fecdd3; padding: 8px 12px; }
.primary:hover { transform: translateY(-1px); }
.list { display: grid; gap: 10px; }
.item, .doc {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
}
.item b { display: block; }
.muted { color: var(--muted); font-size: 13px; }
.keybox {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #1b0b28;
  border-radius: 16px;
  padding: 12px;
  word-break: break-all;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.toast {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: #3b0764; color: white; border: 1px solid var(--line);
  padding: 12px 16px; border-radius: 999px; z-index: 5;
}
pre {
  white-space: pre-wrap;
  background: #1b0b28;
  border-radius: 16px;
  padding: 12px;
  overflow: auto;
  font-size: 13px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: rgba(192, 132, 252, 0.16); border-radius: 999px; padding: 6px 10px; }
@media (max-width: 800px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { border-right: 0; border-bottom: 1px solid var(--line); min-width: 0; }
  .nav { flex-direction: row; overflow-x: auto; max-width: 100%; }
  .nav button { white-space: nowrap; }
  .main { max-width: 100%; min-width: 0; padding: 20px 16px 48px; }
  .grid, .hero { grid-template-columns: 1fr; display: grid; }
  h1 { font-size: 32px; }
  h2 { overflow-wrap: anywhere; }
  .money { font-size: 42px; }
}
