:root {
  --bg: #0b0d10;
  --panel: #15181d;
  --panel-2: #1b1f26;
  --line: #262b33;
  --text: #e7eaee;
  --muted: #949dab;
  --green: #00d68f;
  --red: #ff3b5c;
  --blue: #3d8bff;
  --gold: #f5b942;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -200px, #14202b 0%, var(--bg) 60%);
  color: var(--text);
  font: 15px/1.55 ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 960px; margin: 0 auto; padding: 32px 20px 80px; }

header.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 28px; flex-wrap: wrap;
}
.brand { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 15px; }
.brand span { color: var(--green); }
.who { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.who img { width: 28px; height: 28px; border-radius: 50%; }

.card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
}
.card h2 { margin: 0 0 4px; font-size: 17px; }
.card .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }

.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .03em;
}
.pill.on { background: rgba(0, 214, 143, .12); color: var(--green); border: 1px solid rgba(0, 214, 143, .35); }
.pill.off { background: rgba(148, 157, 171, .1); color: var(--muted); border: 1px solid var(--line); }
.pill.warn { background: rgba(245, 185, 66, .12); color: var(--gold); border: 1px solid rgba(245, 185, 66, .35); }

label { display: block; font-size: 13px; font-weight: 600; margin: 16px 0 6px; }
label .hint { font-weight: 400; color: var(--muted); margin-left: 6px; }

input[type=text], input[type=url], input[type=number], textarea, select {
  width: 100%; background: #0e1116; color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px;
  font-size: 14px; font-family: inherit;
}
textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; min-height: 260px; line-height: 1.5; resize: vertical;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); }

.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > * { flex: 1 1 180px; }

.actions { display: flex; gap: 10px; align-items: center; margin-top: 20px; flex-wrap: wrap; }

button, .btn {
  border: 1px solid var(--line); background: #222831; color: var(--text);
  border-radius: 10px; padding: 10px 16px; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
button:hover { border-color: #3a424e; }
button.primary { background: var(--green); border-color: var(--green); color: #05130e; }
button.primary:hover { filter: brightness(1.08); }
button.ghost { background: transparent; }
button.danger { background: transparent; color: var(--red); border-color: rgba(255, 59, 92, .35); }

.switch { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }

.note {
  border-left: 3px solid var(--blue); background: rgba(61, 139, 255, .07);
  padding: 12px 14px; border-radius: 0 10px 10px 0; font-size: 13.5px; color: #c6cedb;
}
.note.bad { border-color: var(--red); background: rgba(255, 59, 92, .07); }
.note.good { border-color: var(--green); background: rgba(0, 214, 143, .07); }

.codes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.codes code {
  background: #0e1116; border: 1px solid var(--line); border-radius: 6px;
  padding: 3px 7px; font-size: 12px; color: #b9c4d2; cursor: pointer;
}

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 9px 10px; border-bottom: 1px solid #1d2128; }
td.ok { color: var(--green); } td.fail { color: var(--red); }

pre.out {
  background: #0e1116; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px; font-size: 12.5px; overflow-x: auto; margin: 12px 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap; word-break: break-word;
}

.login { max-width: 460px; margin: 14vh auto; text-align: center; }
.login h1 { font-size: 26px; margin: 0 0 8px; }
.login p { color: var(--muted); margin: 0 0 26px; }
.discord {
  display: inline-flex; align-items: center; gap: 10px; background: #5865f2; color: #fff;
  border: none; padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 15px;
}
.discord:hover { filter: brightness(1.08); text-decoration: none; }

footer { color: #5c6674; font-size: 12.5px; text-align: center; margin-top: 40px; }

@media (max-width: 620px) { .wrap { padding: 20px 14px 60px; } .card { padding: 18px; } }
