@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap");

:root {
  --accent: #0f766e;
  --accent-strong: #115e59;
  --accent-soft: rgba(15, 118, 110, 0.12);
  --bg: #f4f8fb;
  --bg-deep: #e6f0f4;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-soft: #eef5f7;
  --text: #102033;
  --muted: #61748b;
  --border: rgba(148, 163, 184, 0.22);
  --border-strong: rgba(15, 23, 42, 0.08);
  --danger: #dc2626;
  --healthy: #15803d;
  --shadow: 0 26px 80px rgba(15, 23, 42, 0.1);
  --shadow-soft: 0 12px 32px rgba(15, 23, 42, 0.06);
  --radius: 24px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 30%),
    linear-gradient(180deg, #f8fbfd 0%, var(--bg) 44%, #edf3f7 100%);
  color: var(--text);
  font-family: "Manrope", "Segoe UI Variable Text", "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 70%);
  opacity: 0.35;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-header,
.page-content,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 20;
  margin-top: 18px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand,
.site-nav,
.price-header,
.price,
.row-actions,
.footer-bottom {
  display: flex;
  align-items: center;
}

.brand {
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  grid-template-columns: repeat(3, 6px);
  gap: 4px;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(13, 148, 136, 0.24));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.brand-mark span {
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0f766e, #14b8a6);
}

.brand-mark span:nth-child(1) {
  height: 12px;
  align-self: end;
}

.brand-mark span:nth-child(2) {
  height: 18px;
  align-self: center;
}

.brand-mark span:nth-child(3) {
  height: 24px;
  align-self: start;
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-copy small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.site-nav {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  transform: translateY(-1px);
}

.site-nav a[aria-current="page"] {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(20, 184, 166, 0.2));
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.12);
}

.page-content {
  padding: 24px 0 44px;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  max-width: 100%;
  padding: 44px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(244, 248, 251, 0.88));
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -52px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.18), transparent 66%);
}

.hero h1,
.narrow h1,
.admin-shell h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 12ch;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(38px, 5.8vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero p:last-child,
.narrow > p,
.legal p,
.muted {
  color: var(--muted);
  line-height: 1.7;
}

.hero p:last-child {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  font-size: 16px;
}

.eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.btn:disabled {
  cursor: not-allowed;
  transform: none;
  opacity: 0.6;
  box-shadow: none;
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #fff;
}

.btn.primary:hover {
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.22);
}

.btn.danger {
  border-color: rgba(220, 38, 38, 0.16);
  color: var(--danger);
}

.plan-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.plan-grid {
  margin-top: 22px;
}

.price-card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.12);
}

.price-card.featured {
  border-color: rgba(15, 118, 110, 0.28);
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(239, 249, 248, 0.92));
  box-shadow: 0 26px 60px rgba(15, 118, 110, 0.14);
}

.price-card h2,
.price-card p,
.checkout-panel h2,
.section-heading h2,
.admin-list h2,
.form-grid h2 {
  margin: 0;
}

.price-header {
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.save-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(21, 128, 61, 0.1);
  color: var(--healthy);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill-danger {
  background: rgba(220, 38, 38, 0.1);
  color: var(--danger);
}

.status-pill-muted {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.price {
  gap: 8px;
  align-items: baseline;
}

.price strong {
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.price span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.savings-note {
  width: max-content;
  max-width: 100%;
  margin: -4px 0 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.price-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  list-style: none;
}

.price-list li {
  display: flex;
  gap: 10px;
}

.price-list li::before {
  content: "\2713";
  color: var(--healthy);
  font-weight: 800;
}

.checkout-panel,
.license-result,
.section-heading,
.table-wrap,
.admin-shell,
.narrow {
  margin-top: 28px;
}

.checkout-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 22px;
  padding: 28px;
}

.checkout-panel[hidden],
.license-result[hidden] {
  display: none;
}

.license-result {
  padding: 28px;
}

.license-key {
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, #f7fcfb, #edf8f7);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

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

.form-grid label,
.admin-token label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.46);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
  background: #fff;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.section-heading {
  display: grid;
  gap: 10px;
}

.section-heading h2,
.narrow h1,
.admin-shell h1,
.legal h2,
.admin-list h2,
.form-grid h2 {
  font-family: "Sora", "Manrope", sans-serif;
  letter-spacing: -0.03em;
}

.table-wrap {
  overflow: auto;
  padding: 8px 0;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  text-align: left;
}

th:nth-child(2),
th:nth-child(3),
td:nth-child(2),
td:nth-child(3) {
  width: 140px;
  text-align: center;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-row td {
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.cell-check {
  color: var(--healthy);
  font-weight: 800;
}

.cell-x {
  color: var(--danger);
  font-weight: 800;
}

.cell-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.narrow {
  max-width: 820px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.legal h2 {
  margin-top: 30px;
  margin-bottom: 10px;
}

.legal ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.legal li + li {
  margin-top: 8px;
}

.legal code {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
}

.admin-shell {
  display: grid;
  gap: 18px;
}

.page-admin .page-content,
.page-admin .site-footer,
.page-admin .site-header {
  width: min(1360px, calc(100% - 40px));
}

.page-admin .admin-shell h1 {
  max-width: none;
  font-size: 44px;
  letter-spacing: 0;
}

.admin-token {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
}

.admin-grid {
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  align-items: start;
}

.admin-grid > .form-grid {
  align-content: start;
}

.admin-list {
  padding: 24px;
  overflow: auto;
}

.admin-create-section,
.license-management {
  border-radius: 16px;
}

.admin-create-section {
  padding: 0;
}

.admin-create {
  grid-template-columns: minmax(180px, 0.9fr) minmax(0, 2.6fr) auto;
  gap: 18px;
  align-items: end;
  padding: 24px;
}

.admin-section-heading {
  display: grid;
  gap: 4px;
  align-self: center;
}

.admin-section-heading p {
  margin: 0;
}

.create-license-fields {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(140px, 0.8fr) minmax(120px, 0.6fr) minmax(180px, 1fr);
  gap: 12px;
  align-items: end;
}

.license-management {
  display: grid;
  gap: 16px;
}

.license-management-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.license-management-head p {
  margin: 6px 0 0;
}

.license-stats-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.license-stats-strip span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.95);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.license-stats-strip strong {
  color: var(--text);
  font-size: 15px;
}

.license-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(140px, 180px) minmax(140px, 180px);
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.8);
}

.license-tools label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.license-table-wrap {
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  background: #fff;
}

.license-table {
  min-width: 980px;
  font-size: 13px;
}

.license-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
}

.license-table th,
.license-table td {
  padding: 12px 14px;
  vertical-align: top;
}

.license-table th:nth-child(2),
.license-table th:nth-child(3),
.license-table td:nth-child(2),
.license-table td:nth-child(3) {
  width: auto;
  text-align: left;
}

.license-table-row:hover td {
  background: rgba(241, 245, 249, 0.45);
}

.license-table-row.license-row-revoked td {
  background: rgba(254, 242, 242, 0.45);
}

.license-cell-main {
  display: grid;
  gap: 5px;
  min-width: 260px;
}

.license-cell-main code {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.license-cell-main span,
.license-cell-main small,
.table-muted {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 210px;
}

.btn.small {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
}

.license-device-row td {
  padding-top: 0;
  background: #fff;
}

.device-strip {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.78);
}

.device-pill {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
}

.device-pill div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.device-pill strong {
  font-size: 13px;
}

.device-pill span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.stack {
  display: grid;
  gap: 12px;
}

.license-grid {
  display: grid;
  gap: 16px;
}

.license-row {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.support-row {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.license-row {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.license-row:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.18);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.license-row-revoked {
  border-color: rgba(248, 113, 113, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 247, 247, 0.96));
}

.license-row-expired {
  border-color: rgba(148, 163, 184, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 248, 250, 0.96));
}

.license-row-head {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(240px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.license-main {
  display: grid;
  gap: 12px;
}

.license-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.plan-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.license-key-text {
  margin: 0;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}

.license-owner {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.license-meta {
  gap: 10px;
}

.license-meta span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(241, 245, 249, 1);
  color: #5b6c80;
}

.license-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.license-summary-item {
  display: grid;
  gap: 6px;
  min-height: 108px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.95);
}

.license-summary-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.license-summary-item strong {
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.license-summary-item small,
.license-toolbar-note,
.activation-lead {
  color: var(--muted);
  line-height: 1.6;
}

.license-toolbar {
  display: grid;
  gap: 12px;
  padding: 16px 18px 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.92);
}

.license-toolbar-note,
.activation-lead {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.row-actions {
  gap: 8px;
  flex-wrap: wrap;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.activation-panel {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(250, 252, 253, 0.96);
}

.activation-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.activation-header strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 17px;
  letter-spacing: -0.03em;
}

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

.activation-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  background: #fff;
}

.activation-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.activation-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.activation-copy strong {
  font-size: 15px;
  color: var(--text);
}

.activation-id {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.activation-meta {
  color: var(--muted);
}

.device-id-code {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(241, 245, 249, 1);
  color: #334155;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.activation-empty {
  margin: 0;
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.activation-empty strong {
  color: var(--text);
  font-size: 15px;
}

.activation-empty .muted {
  color: var(--muted);
}

.license-empty {
  display: grid;
  gap: 8px;
  padding: 28px;
  border: 1px dashed rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  background: rgba(248, 250, 252, 0.92);
}

.license-empty strong {
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.site-footer {
  margin-top: 40px;
  margin-bottom: 28px;
}

.site-footer-inner {
  padding: 30px 34px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(244, 248, 251, 0.88));
  color: var(--text);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 8px;
  max-width: 580px;
}

.footer-kicker {
  margin: 0;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-brand strong {
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.footer-brand p,
.footer-copy,
.footer-status {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease, color 160ms ease;
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 118, 110, 0.2);
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.footer-bottom {
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-copy {
  white-space: nowrap;
}

.footer-status {
  text-align: right;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: 360px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ─── Discount pricing ─── */

.discount-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  animation: discount-pulse 2.2s ease-in-out infinite;
}

@keyframes discount-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

.price-original {
  color: var(--muted);
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.04em;
  text-decoration: line-through;
  opacity: 0.65;
}

.price-card.has-discount {
  border-color: rgba(220, 38, 38, 0.18);
  background:
    radial-gradient(circle at top right, rgba(254, 202, 202, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 249, 249, 0.94));
}

.discount-note {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

/* ─── Admin discount section ─── */

.admin-discounts-section {
  display: grid;
  gap: 16px;
}

.discount-create-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.8);
}

.discount-fields-row {
  display: grid;
  grid-template-columns: minmax(200px, 2fr) minmax(90px, 0.55fr) minmax(140px, 0.9fr) minmax(140px, 0.9fr);
  gap: 12px;
  align-items: end;
}

.discount-fields-row label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.discount-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.discount-plan-checks {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.discount-plan-checks span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.discount-plan-checks label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.discount-plan-checks input[type=checkbox] {
  width: 16px;
  min-height: 16px;
  accent-color: var(--accent);
}

.discount-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.discount-row:last-child {
  border-bottom: none;
}

.discount-info {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.discount-info span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.discount-info small,
.no-coupon {
  color: var(--muted);
  font-size: 12px;
}

.discount-info code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-soft);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

@media (max-width: 960px) {
  .site-header {
    border-radius: 28px;
  }

  .checkout-panel,
  .footer-top,
  .footer-bottom,
  .admin-token,
  .admin-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }

  .footer-links,
  .footer-status {
    justify-content: flex-start;
    text-align: left;
  }

  .footer-copy {
    white-space: normal;
  }

  .license-row-head {
    grid-template-columns: 1fr;
  }

  .admin-create,
  .create-license-fields,
  .discount-fields-row,
  .license-tools {
    grid-template-columns: 1fr;
  }

  .discount-form-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .discount-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .license-management-head {
    display: grid;
  }

  .license-stats-strip {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header,
  .page-content,
  .site-footer {
    width: min(100%, calc(100% - 24px));
  }

  .site-header {
    position: static;
    margin-top: 12px;
    padding: 16px;
    border-radius: 24px;
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero,
  .narrow,
  .site-footer-inner,
  .form-grid,
  .admin-list,
  .checkout-panel,
  .license-result {
    padding: 22px;
  }

  .hero h1,
  .narrow h1,
  .admin-shell h1 {
    max-width: none;
    font-size: clamp(32px, 10vw, 48px);
  }

  .price-card {
    padding: 20px;
  }

  .price strong {
    font-size: 40px;
  }

  th,
  td {
    padding: 12px 14px;
  }

  .activation-item {
    grid-template-columns: 1fr;
  }

  .activation-panel {
    padding: 18px;
  }

  .license-summary {
    grid-template-columns: 1fr;
  }

  .license-key-text {
    font-size: 24px;
  }

  .device-pill {
    grid-template-columns: 1fr;
  }
}
