@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter/inter-latin-wght.woff2") format("woff2");
}
:root {
  --bg: #0a0a10;
  --panel: rgba(17, 19, 29, .88);
  --panel-2: rgba(24, 28, 40, .9);
  --line: #262b3a;
  --text: #eef1f6;
  --dim: #9aa4b2;
  --faint: #6b7482;
  --accent: #9b8cff;
  --accent-strong: #b3a6ff;
  --accent-dim: rgba(155, 140, 255, .14);
  --accent-border: rgba(155, 140, 255, .4);
  --accent-ink: #100c22;
  --ok: #3ecf6e;
  --err: #f2555a;
  --discord: #5865f2;
  --radius: 14px;
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  background: var(--bg);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../assets/img/banner-02.webp?v=20260923a") center / cover no-repeat;
  z-index: -2;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,8,14,.72), rgba(8,8,14,.88));
  z-index: -1;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 56px 20px 60px; }
.page-title { margin: 4px 0 2px; font-size: 24px; letter-spacing: -.01em; }
.page-sub { margin: 0 0 20px; color: var(--dim); font-size: 14px; }
.center { max-width: 480px; margin: 10vh auto 0; text-align: center; }
.login-logo { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 6px; }
.staff-note {
  border: 1px solid var(--accent-border);
  background: var(--accent-dim);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--accent-strong);
  margin: 14px 0 4px;
}
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 18px; backdrop-filter: blur(8px); }
.panel > h2, .panel > h3 { margin-top: 0; }
.section-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 26px 0 10px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; backdrop-filter: blur(8px); }
.stat .num { font-family: var(--mono); font-size: 26px; font-weight: 700; margin: 0; }
.stat .lbl { margin: 2px 0 0; color: var(--dim); font-size: 13px; }
.stat.highlight .num { color: var(--accent-strong); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,.02); }
td.n, th.n { text-align: right; font-family: var(--mono); }
.mono { font-family: var(--mono); font-size: 13px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px;
  padding: 9px 16px; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none; font-family: inherit;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-primary:disabled { opacity: .5; cursor: wait; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--panel-2); }
.btn-discord { background: var(--discord); color: #fff; padding: 12px 22px; font-size: 15px; }
.btn-discord:hover { filter: brightness(1.1); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span.lbl { font-size: 13px; font-weight: 600; color: var(--dim); }
.field .hint { font-size: 12px; color: var(--faint); font-weight: 400; }
input[type=text], textarea {
  background: rgba(5, 6, 10, .7); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 10px 12px; font-size: 14px; font-family: inherit; width: 100%;
}
input[type=text]:focus, textarea:focus { outline: none; border-color: var(--accent); }
input[type=text].mono { font-family: var(--mono); }
textarea { resize: vertical; }
.filebox {
  border: 1.5px dashed var(--line); border-radius: 10px; padding: 14px;
  background: rgba(5, 6, 10, .6); cursor: pointer; transition: border-color .15s;
}
.filebox:hover { border-color: var(--accent); }
.filebox input { width: 100%; font-size: 13px; color: var(--dim); }
.filebox input::file-selector-button {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 12px; margin-right: 10px; cursor: pointer; font-family: inherit;
}
.form-actions { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--dim); cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.console {
  background: rgba(4, 5, 8, .85); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; font-family: var(--mono); font-size: 13px;
  white-space: pre-wrap; word-break: break-all; max-height: 300px; overflow: auto;
  color: var(--dim); margin: 0;
}
.console.ok { color: var(--ok); border-color: rgba(62,207,110,.35); }
.console.err { color: var(--err); border-color: rgba(242,85,90,.4); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.foot { color: var(--faint); font-size: 12px; margin-top: 26px; }
.login-viewport { min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-viewport .panel { width: 100%; max-width: 480px; text-align: center; margin: 0; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 248px; z-index: 20; display: flex; flex-direction: column; padding: 18px 14px; background: rgba(11,12,18,.94); border-right: 1px solid var(--line); backdrop-filter: blur(10px); }
.side-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; padding: 4px 8px 14px; }
.side-brand img { width: 30px; height: 30px; border-radius: 8px; }
.side-brand .tag { font-size: 11px; font-weight: 600; color: var(--accent-strong); border: 1px solid var(--accent-border); background: var(--accent-dim); padding: 2px 8px; border-radius: 99px; letter-spacing: .06em; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { padding: 9px 12px; border-radius: 10px; color: var(--dim); text-decoration: none; font-size: 14px; font-weight: 600; }
.side-nav a:hover { background: var(--panel-2); color: var(--text); }
.side-nav a.active { background: var(--accent-dim); color: var(--accent-strong); }
.side-sep { border-top: 1px solid var(--line); margin: 12px 4px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.userbar { display: flex; align-items: center; gap: 10px; background: rgba(5,6,10,.6); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.userbar img.avatar, .userbar .avatar-fb { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.userbar .avatar-fb { display: flex; align-items: center; justify-content: center; background: var(--accent-dim); color: var(--accent-strong); font-weight: 700; font-size: 14px; }
.userbar .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.iconbtn { background: transparent; border: 1px solid var(--line); color: var(--dim); border-radius: 9px; width: 32px; height: 32px; flex: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.iconbtn:hover { color: var(--err); border-color: rgba(242,85,90,.5); background: rgba(242,85,90,.12); }
.iconbtn svg { width: 15px; height: 15px; }
.main { margin-left: 248px; }
.main > .wrap { padding-top: 28px; }
[hidden] { display: none !important; }
@media (max-width: 860px) {
  .sidebar { position: static; width: auto; flex-direction: row; align-items: center; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--line); }
  .side-brand { padding: 0; }
  .side-nav { flex-direction: row; flex-wrap: wrap; margin-left: 8px; }
  .side-sep { display: none; }
  .side-foot { margin: 0 0 0 auto; flex-direction: row; align-items: center; }
  .userbar .name { display: none; }
  .main { margin-left: 0; }
}
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .cols, .form-grid { grid-template-columns: 1fr; }
  .wrap { padding: 40px 14px 48px; }
}
.proj { position: relative; margin-bottom: 12px; }
.proj-btn { width: 100%; display: flex; align-items: center; gap: 10px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 10px 12px; font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.proj-btn:hover { border-color: var(--accent); }
.proj-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.proj-dot.discord { background: var(--discord); }
.proj-btn svg { width: 14px; height: 14px; margin-left: auto; color: var(--dim); flex: none; }
.proj-menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #141926; border: 1px solid var(--line); border-radius: 12px; padding: 6px; z-index: 30; box-shadow: 0 12px 32px rgba(0,0,0,.5); }
.proj-menu a { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; border-radius: 9px; text-decoration: none; color: var(--text); }
.proj-menu a:hover { background: var(--panel-2); }
.proj-menu a strong { font-size: 14px; }
.proj-menu a span { font-size: 12px; color: var(--faint); }
.proj-menu a.current { outline: 1px solid var(--accent-border); }
.guild-head { display: flex; align-items: center; gap: 14px; }
.guild-head img { width: 56px; height: 56px; border-radius: 16px; background: var(--panel-2); flex: none; }
.role-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: baseline; }
.role-pill { display: inline-block; border: 1px solid var(--line); border-radius: 99px; padding: 1px 9px; font-size: 12px; margin: 1px 4px 1px 0; color: var(--dim); }
.member-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.member-row:last-child { border-bottom: none; }
.member-row img.avatar, .member-row .avatar-fb { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.member-row .avatar-fb { display: flex; align-items: center; justify-content: center; background: var(--accent-dim); color: var(--accent-strong); font-weight: 700; }
.member-row .who { flex: 1; min-width: 180px; }
.member-row .who strong { display: block; font-size: 14px; }
.member-row .who span { font-size: 12px; color: var(--faint); font-family: var(--mono); }
.member-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.member-actions select, .member-actions input[type=text] { background: rgba(5,6,10,.7); border: 1px solid var(--line); color: var(--text); border-radius: 9px; padding: 7px 10px; font-size: 13px; font-family: inherit; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; border-radius: 99px; padding: 2px 9px; }
.badge.warn { background: rgba(232,160,32,.14); color: #f5b93c; border: 1px solid rgba(232,160,32,.4); }
.badge.danger { background: rgba(242,85,90,.12); color: var(--err); border: 1px solid rgba(242,85,90,.4); }
.badge.ok { background: rgba(62,207,110,.12); color: var(--ok); border: 1px solid rgba(62,207,110,.35); }
.badge.dim { background: var(--panel-2); color: var(--dim); border: 1px solid var(--line); }
.msg { font-size: 13px; margin: 10px 0 0; }
.msg.err { color: var(--err); }
.msg.ok { color: var(--ok); }
.tabs { display: flex; gap: 8px; margin: 18px 0 12px; }
.tabbtn { flex: 1; background: var(--panel); border: 1px solid var(--line); color: var(--dim); border-radius: 10px; padding: 10px 12px; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.tabbtn:hover { color: var(--text); border-color: var(--accent-border); }
.tabbtn.active { background: var(--accent-dim); border-color: var(--accent-border); color: var(--accent-strong); }
