:root {
  --bg: #101522;
  --panel: #161f31;
  --line: #273551;
  --ink: #ecf1ff;
  --muted: #a9b6d3;
  --brand: #35b7ff;
  --brand-dark: #1795da;
  --ok: #53db9d;
  --danger: #ff7b7b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(circle at 10% 10%, #1a2741 0%, #0d1320 45%);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
}

.admin-shell {
  width: min(1220px, calc(100% - 30px));
  margin: 20px auto 30px;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.top-actions {
  display: flex;
  gap: 8px;
}

h1, h2 {
  font-family: "Sora", sans-serif;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
}

.narrow {
  max-width: 420px;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.grid-form {
  display: grid;
  gap: 7px;
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}

.inline-form input,
.inline-form select,
.grid-form input,
.grid-form textarea,
.grid-form select {
  width: 100%;
  background: #0f1727;
  border: 1px solid #2f4368;
  color: var(--ink);
  border-radius: 10px;
  padding: 10px;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand);
  color: #03111e;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.hidden { display: none; }

.status {
  color: var(--ok);
  min-height: 1.2em;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th, td {
  border-bottom: 1px solid #2a3959;
  padding: 9px;
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
}

td.actions {
  white-space: nowrap;
}

.mini-btn {
  background: transparent;
  border: 1px solid #3f5682;
  color: var(--ink);
  padding: 5px 9px;
  border-radius: 8px;
  cursor: pointer;
}

.mini-btn.danger {
  border-color: #7d3e48;
  color: var(--danger);
}

.check {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 980px) {
  .grid-two,
  .inline-form {
    grid-template-columns: 1fr;
  }
}
