:root {
  color-scheme: dark;
  --bg: #07090d;
  --panel: #101319;
  --panel2: #151922;
  --line: #252b37;
  --text: #f5f7fb;
  --muted: #929baa;
  --accent: #f03d62;
  --green: #37d98a;
  --amber: #f4b942;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 15% 0, #20101b 0, transparent 32rem),
    var(--bg);
  color: var(--text);
}
a {
  color: inherit;
}
.landing {
  width: min(1080px, calc(100% - 32px));
  margin: auto;
  padding: 8vh 0 40px;
}
.card {
  background: linear-gradient(
    145deg,
    rgba(22, 25, 33, 0.96),
    rgba(12, 14, 19, 0.96)
  );
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}
.hero {
  text-align: center;
  padding: 62px 24px;
}
.brand-mark {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border: 1px solid #ff6b87;
  border-radius: 18px;
  background: linear-gradient(145deg, #f03d62, #7e1630);
  font-size: 34px;
  font-weight: 900;
}
.eyebrow {
  margin: 0;
  color: #ff7891;
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 800;
}
.hero h1 {
  font-size: clamp(40px, 8vw, 76px);
  line-height: 1;
  margin: 12px 0;
}
.lead {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #0b0e13;
  color: #c6ccd6;
  font-size: 13px;
}
.status-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}
.status-pill.ok span {
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.steps article {
  padding: 26px;
}
.steps b {
  color: var(--accent);
  font-size: 13px;
}
.steps h2 {
  font-size: 18px;
  margin: 12px 0 8px;
}
.steps p,
.foot {
  color: var(--muted);
  line-height: 1.55;
}
.foot {
  text-align: center;
  font-size: 12px;
  margin-top: 28px;
}
@media (max-width: 720px) {
  .landing {
    padding-top: 20px;
  }
  .hero {
    padding: 42px 20px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
}
.admin-body {
  background: #090b10;
}
.shell,
.admin-shell {
  width: min(1240px, calc(100% - 30px));
  margin: 28px auto;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.topbar h1 {
  margin: 0;
  font-size: 24px;
}
.topbar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.button,
button {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #1a1f29;
  color: var(--text);
  padding: 11px 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.button:hover,
button:hover {
  border-color: #485164;
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
}
.danger {
  color: #ff728e;
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.grid > * {
  min-width: 0;
}
.panel {
  grid-column: span 12;
  padding: 20px;
}
.third {
  grid-column: span 4;
}
.half {
  grid-column: span 6;
}
.panel h2 {
  margin: 0 0 16px;
  font-size: 15px;
}
.stat {
  font-size: 32px;
  font-weight: 850;
}
.muted {
  color: var(--muted);
}
form.row,
.row {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}
.field {
  display: flex;
  flex: 1;
  min-width: 140px;
  flex-direction: column;
  gap: 7px;
}
.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b0e13;
  color: var(--text);
  padding: 11px 12px;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
th,
td {
  text-align: left;
  padding: 12px 9px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.badge {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 99px;
  background: #242a36;
  color: #bec6d3;
  font-size: 11px;
  font-weight: 800;
}
.badge.active,
.badge.published {
  background: #103523;
  color: #5ce3a2;
}
.badge.blocked,
.badge.revoked {
  background: #3b1420;
  color: #ff8097;
}
.flash {
  padding: 13px 16px;
  margin-bottom: 16px;
  border: 1px solid #315841;
  border-radius: 12px;
  background: #102b1d;
  color: #7be8ae;
}
.keys {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, monospace;
}
.login {
  width: min(430px, calc(100% - 30px));
  margin: 14vh auto;
  padding: 30px;
}
.login h1 {
  margin: 0 0 8px;
}
.login form {
  margin-top: 24px;
}
.actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.actions button {
  padding: 7px 9px;
  font-size: 11px;
}
.upload {
  padding: 14px;
  border: 1px dashed #384151;
  border-radius: 12px;
}
.check {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.check input {
  width: auto;
}
@media (max-width: 820px) {
  .third,
  .half {
    grid-column: span 12;
  }
  .table-wrap {
    overflow: auto;
  }
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .topbar .actions {
    width: 100%;
  }
}
