:root {
  --bg: #07111f;
  --bg-soft: #0d1a31;
  --panel: rgba(10, 18, 33, 0.88);
  --surface: rgba(16, 27, 49, 0.92);
  --line: rgba(103, 145, 214, 0.18);
  --text: #edf5ff;
  --muted: #99afd3;
  --accent: #4cd8ff;
  --accent-soft: #6b7fff;
  --danger: #ff8e9b;
  --success: #66ffbf;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(76, 216, 255, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(107, 127, 255, 0.18), transparent 26%),
    linear-gradient(180deg, var(--bg) 0%, #0c1730 100%);
}

.hidden {
  display: none !important;
}

.shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px;
}

.login-card,
.card,
.topbar {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-card {
  width: min(540px, 100%);
  margin: 10vh auto 0;
  padding: 32px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2 {
  margin: 0;
}

.copy,
.card-head span,
.label,
.license-meta,
.license-activation,
.message {
  color: var(--muted);
}

.label {
  display: block;
  margin-top: 14px;
  margin-bottom: 8px;
  font-size: 14px;
}

.input,
select.input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.primary-button,
.secondary-button,
.danger-button {
  margin-top: 16px;
  border: 0;
  border-radius: 16px;
  padding: 13px 18px;
  font: inherit;
  cursor: pointer;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff;
  font-weight: 700;
}

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

.danger-button {
  background: rgba(255, 142, 155, 0.12);
  color: var(--danger);
  border: 1px solid rgba(255, 142, 155, 0.35);
}

.topbar {
  margin-bottom: 18px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.grid {
  display: grid;
  grid-template-columns: minmax(320px, 460px) 1fr;
  gap: 18px;
}

.card {
  padding: 22px;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

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

.code-block,
.license-key {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 14px 0 0;
  padding: 16px;
  border-radius: 18px;
  background: #09111d;
  color: #d7ebff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

.license-item {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.license-topline,
.license-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.license-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.license-title {
  font-size: 18px;
  font-weight: 700;
}

.license-status {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(76, 216, 255, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 960px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .license-topline,
  .license-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .license-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}
