:root {
  --bg: #0b0f14;
  --card: #121826;
  --text: #e7eef8;
  --muted: #9aa6b2;
  --line: #223049;
  --accent: #5aa9ff;
  --danger: #ff5a6a;
  --ok: #42d392;
  --shadow: 0 10px 25px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(1200px 700px at 20% 10%, #132033 0%, var(--bg) 55%);
  color: var(--text);
}

.wrap { max-width: 980px; margin: 0 auto; padding: 18px; }
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 6px 18px;
}
.brand { font-weight: 800; letter-spacing: .4px; }
.nav a { color: var(--muted); margin-left: 14px; text-decoration: none; }
.nav a:hover { color: var(--text); }

.card {
  background: rgba(18, 24, 38, .9);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

h1 { margin: 0 0 10px; font-size: 1.35rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }

.form { display: grid; gap: 10px; margin-top: 12px; }
.form label { font-size: .95rem; color: var(--muted); }
input[type="password"], input[type="text"], input[type="number"], input[type="file"], input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0f1522;
  color: var(--text);
  outline: none;
}
input:focus { border-color: rgba(90,169,255,.55); }

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(90,169,255,.35);
  background: rgba(90,169,255,.12);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  font-weight: 650;
}
button:hover, .button:hover { border-color: rgba(90,169,255,.8); }
.danger { border-color: rgba(255,90,106,.35); background: rgba(255,90,106,.12); }
.danger:hover { border-color: rgba(255,90,106,.75); }
.ghost { background: transparent; border-color: var(--line); }

.kv { display: grid; gap: 8px; margin: 14px 0; }
.kv div { display: flex; justify-content: space-between; gap: 14px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(15,21,34,.6); }
.kv span { color: var(--muted); }

.foot { padding: 16px 6px; color: var(--muted); font-size: .9rem; }

.alert {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(15,21,34,.7);
  margin: 10px 0;
}
.alert.bad { border-color: rgba(255,90,106,.45); }
.alert.ok { border-color: rgba(66,211,146,.45); }

.adminTop {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.tabs a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15,21,34,.35);
}
.tabs a:hover { color: var(--text); border-color: rgba(90,169,255,.4); }

.table { display: grid; gap: 8px; margin-top: 12px; }
.row {
  display: grid;
  grid-template-columns: 120px 1.6fr 140px 220px 1.6fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15,21,34,.5);
  align-items: center;
}
.row.head { background: transparent; border-color: transparent; color: var(--muted); padding: 0 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.inline { display: inline-flex; gap: 8px; align-items: center; }
.rowish { grid-template-columns: 1fr auto; align-items: end; }

.pill {
  font-size: .85rem;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.pill.ok { border-color: rgba(66,211,146,.45); color: var(--ok); }
.pill.bad { border-color: rgba(255,90,106,.45); color: var(--danger); }

@media (max-width: 860px) {
  .row { grid-template-columns: 1fr; }
  .actions { justify-content: flex-start; }
}
