:root {
  --bg: #07111f;
  --panel: rgba(16, 31, 52, 0.86);
  --text: #eef6ff;
  --muted: #95a8c3;
  --line: rgba(151, 180, 220, 0.18);
  --cyan: #20e0d0;
  --blue: #4aa3ff;
  --red: #ff6b6b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(74, 163, 255, 0.2), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(32, 224, 208, 0.14), transparent 30%),
    linear-gradient(135deg, var(--bg), #091528 44%, #050b15);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.admin-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(20px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
}

.admin-header p,
.card-heading p {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-header h1,
.card-heading h2 {
  margin: 0;
}

.admin-header h1 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}

.admin-header a,
button {
  min-height: 42px;
  padding: 9px 15px;
  color: #06111f;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 850;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
  padding: clamp(24px, 5vw, 70px);
}

.admin-card {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.card-heading button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.license-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 12px;
}

input:focus {
  outline: 3px solid rgba(32, 224, 208, 0.18);
  border-color: var(--cyan);
}

.message {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--cyan);
  font-weight: 800;
}

.license-list {
  display: grid;
  gap: 10px;
}

.license-item,
.empty {
  padding: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.license-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.license-item code {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--cyan);
  font-size: 16px;
  font-weight: 900;
}

.license-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.danger {
  color: #ffffff;
  background: var(--red);
}

@media (max-width: 860px) {
  .admin-header,
  .card-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-layout,
  .license-item {
    grid-template-columns: 1fr;
  }
}
