:root {
  color-scheme: dark;
  --bg: #080a0f;
  --panel: rgba(18, 21, 29, .88);
  --panel-2: #141925;
  --line: rgba(255, 255, 255, .09);
  --text: #f4f6fb;
  --muted: #929aab;
  --accent: #7c9cff;
  --accent-2: #9b7cff;
  --good: #47d6a4;
  --bad: #ff6b7a;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background:
  radial-gradient(circle at 15% 0%, rgba(82, 119, 255, .18), transparent 34%),
  radial-gradient(circle at 92% 20%, rgba(145, 83, 255, .12), transparent 28%); }
.noise { position: fixed; inset: 0; opacity: .025; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(430px, 100%); padding: 38px; border: 1px solid var(--line); border-radius: 28px; background: var(--panel); backdrop-filter: blur(24px); box-shadow: 0 30px 90px rgba(0, 0, 0, .45); }
.brand { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 760; letter-spacing: -.02em; }
.mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-weight: 900; }
h1 { margin: 30px 0 8px; font-size: 30px; letter-spacing: -.04em; }
.muted { color: var(--muted); }
.form { display: grid; gap: 14px; margin-top: 28px; }
label { display: grid; gap: 8px; color: #cdd2de; font-size: 13px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; color: var(--text); background: rgba(255,255,255,.045); outline: none; }
input:focus, select:focus, textarea:focus { border-color: rgba(124, 156, 255, .75); box-shadow: 0 0 0 3px rgba(124, 156, 255, .12); }
textarea { min-height: 95px; resize: vertical; }
.primary, .secondary, .danger { border: 0; border-radius: 11px; padding: 11px 15px; color: white; font-weight: 700; }
.primary { background: linear-gradient(135deg, #6388ff, #875fff); box-shadow: 0 10px 30px rgba(99,136,255,.18); }
.secondary { background: #252b38; }
.danger { background: rgba(255,107,122,.14); color: #ff8995; border: 1px solid rgba(255,107,122,.25); }
.notice { min-height: 22px; color: var(--bad); font-size: 13px; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 230px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 17px; border-right: 1px solid var(--line); background: rgba(7, 9, 14, .72); backdrop-filter: blur(22px); }
.sidebar .brand { padding: 0 7px 25px; }
.nav { display: grid; gap: 6px; }
.nav button { display: flex; width: 100%; border: 0; border-radius: 11px; padding: 11px 13px; color: var(--muted); background: transparent; text-align: left; }
.nav button:hover, .nav button.active { color: white; background: rgba(255,255,255,.07); }
.profile { position: absolute; left: 17px; right: 17px; bottom: 20px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.035); }
.profile strong, .profile small { display: block; }
.profile small { margin-top: 3px; color: var(--muted); }
.profile button { margin-top: 11px; width: 100%; }
.content { position: relative; padding: 34px clamp(24px, 4vw, 64px) 80px; min-width: 0; }
.topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 30px; }
.topline h2 { margin: 0; font-size: clamp(27px, 3vw, 38px); letter-spacing: -.045em; }
.topline p { margin: 8px 0 0; color: var(--muted); }
.balance { padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(71,214,164,.22); background: rgba(71,214,164,.08); color: #98f0cf; white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: var(--panel); box-shadow: 0 16px 50px rgba(0,0,0,.18); }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.metric { margin-top: 14px; font-size: 32px; font-weight: 780; letter-spacing: -.04em; }
.section { margin-top: 24px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.section-head h3 { margin: 0; font-size: 18px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
th { color: var(--muted); font-weight: 600; background: rgba(255,255,255,.025); }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: rgba(124,156,255,.11); color: #aec0ff; font-size: 12px; }
.pill.good { background: rgba(71,214,164,.1); color: #78e1bb; }
.pill.bad { background: rgba(255,107,122,.1); color: #ff8995; }
.empty { padding: 42px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar button { padding: 8px 11px; font-size: 12px; }
.admin-stack { display: grid; gap: 20px; }
.dialog { width: min(650px, calc(100vw - 28px)); border: 1px solid var(--line); border-radius: 20px; padding: 0; color: var(--text); background: #11151f; box-shadow: 0 28px 100px rgba(0,0,0,.65); }
.dialog::backdrop { background: rgba(0,0,0,.68); backdrop-filter: blur(5px); }
.dialog-body { padding: 24px; }
.dialog h3 { margin: 0 0 18px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
@media (max-width: 900px) { .shell { grid-template-columns: 1fr; } .sidebar { position: relative; height: auto; border-right: 0; border-bottom: 1px solid var(--line); } .nav { display: flex; overflow-x: auto; } .profile { position: static; margin-top: 15px; } .grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .content { padding: 24px 15px 60px; } .topline { display: grid; } .form-grid { grid-template-columns: 1fr; } .form-grid .wide { grid-column: auto; } }

