.license-page {
  --license-navy: #132f49;
  --license-blue: #2d7099;
  --license-mist: #e8f2f7;
  --license-paper: #fbfdfe;
  --license-seal: #2b7a66;
  min-height: 100vh;
  background: #f2f6f9;
}

.license-page::before {
  position: fixed;
  inset: 0;
  height: auto;
  background: radial-gradient(circle at 76% 12%, rgba(147, 202, 219, .2), transparent 32%);
}

.license-page .site-header { border-bottom: 1px solid rgba(199, 213, 225, .72); background: rgba(242, 246, 249, .82); backdrop-filter: blur(16px); }
.license-page .nav { height: 72px; }
.license-page .license-nav-actions { display: flex; align-items: center; gap: 8px; }

.license-main { position: relative; padding: 34px 0 48px; }
.license-intro { max-width: 690px; }
.license-intro h1 { max-width: 690px; font-size: clamp(36px, 4.4vw, 50px); }
.license-intro h1 span { display: block; color: var(--license-blue); }
.license-intro > p { max-width: 590px; margin: 12px 0 0; color: var(--muted); font-size: 15px; }

.activation-workbench { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(310px, .82fr); gap: 0; margin-top: 24px; border: 1px solid #cbd9e3; border-radius: 18px; background: rgba(251, 253, 254, .92); box-shadow: 0 22px 60px rgba(27, 57, 82, .1); overflow: hidden; }
.activation-panel { padding: 27px 36px 29px; }
.panel-kicker { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.panel-kicker strong { font: 730 20px/1.2 var(--display); letter-spacing: -.02em; }
.activation-form { margin-top: 20px; }
.license-field + .license-field { margin-top: 16px; }
.license-field label { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 9px; color: var(--license-navy); font-size: 13px; font-weight: 750; }
.license-field label small { color: var(--faint); font: 500 10px/1 var(--mono); }
.license-input-shell { position: relative; }
.license-input-shell input { width: 100%; height: 50px; padding: 0 47px 0 16px; border: 1px solid #bdccd8; border-radius: 10px; outline: none; color: var(--license-navy); background: white; font: 600 14px/1 var(--mono); letter-spacing: .015em; transition: border-color .16s ease, box-shadow .16s ease; }
.license-input-shell input::placeholder { color: #9aacbb; font-weight: 450; }
.license-input-shell input:focus { border-color: var(--license-blue); box-shadow: 0 0 0 4px rgba(45, 112, 153, .11); }
.license-input-icon { position: absolute; top: 50%; right: 15px; width: 20px; height: 20px; transform: translateY(-50%); color: #8398aa; pointer-events: none; }
.license-input-icon svg { width: 100%; height: 100%; }
.activation-actions { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.activation-actions .button { min-width: 190px; border: 0; cursor: pointer; font: 700 14px/1 var(--body); }
.activation-actions .button:disabled { cursor: wait; opacity: .68; transform: none; }
.activation-actions .buy-inline { color: var(--license-blue); font-size: 12px; font-weight: 700; text-decoration: none; }
.activation-actions .buy-inline:hover { text-decoration: underline; }

.license-result { position: relative; min-height: 100%; display: flex; flex-direction: column; padding: 31px 30px; border-left: 1px solid #cbd9e3; color: #dcebf4; background: var(--license-navy); overflow: hidden; }
.license-result::after { position: absolute; right: -88px; bottom: -85px; width: 225px; height: 225px; border: 1px solid rgba(174, 211, 230, .14); border-radius: 50%; box-shadow: 0 0 0 24px rgba(174, 211, 230, .035), 0 0 0 49px rgba(174, 211, 230, .025); content: ""; }
.result-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 22px; border-bottom: 1px solid rgba(210, 229, 239, .15); }
.result-head strong { font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.result-status { display: inline-flex; align-items: center; gap: 7px; color: #91a9ba; font: 650 9px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.result-status::before { width: 7px; height: 7px; border-radius: 50%; background: #70889a; content: ""; }
.license-result[data-state="loading"] .result-status::before { background: #e2ad63; animation: result-pulse 1.1s ease-in-out infinite; }
.license-result[data-state="success"] .result-status { color: #91d4c2; }
.license-result[data-state="success"] .result-status::before { background: #64bea6; box-shadow: 0 0 0 5px rgba(100, 190, 166, .11); }
.license-result[data-state="error"] .result-status { color: #efaaa4; }
.license-result[data-state="error"] .result-status::before { background: #d9766d; }
.result-body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 31px 0 22px; }
.result-seal { width: 55px; height: 62px; display: grid; place-items: center; border: 1px solid rgba(170, 207, 224, .28); border-radius: 27px 27px 31px 31px; color: #8ebbd0; background: rgba(255,255,255,.035); }
.result-seal svg { width: 25px; }
.license-result[data-state="success"] .result-seal { border-color: rgba(110, 199, 175, .5); color: #89d1bd; background: rgba(55, 137, 114, .12); }
.license-result[data-state="error"] .result-seal { border-color: rgba(221, 127, 119, .45); color: #efa7a1; }
.result-body h2 { margin-top: 24px; font-size: 29px; color: white; }
.result-body > p { margin: 12px 0 0; color: #a8bdcb; font-size: 13px; }
.license-summary { display: none; margin: 27px 0 0; padding: 0; list-style: none; }
.license-result[data-state="success"] .license-summary { display: grid; }
.license-summary li { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; border-bottom: 1px solid rgba(210, 229, 239, .11); color: #91aabc; font-size: 11px; }
.license-summary strong { max-width: 62%; overflow: hidden; color: #e2edf3; font: 600 11px/1.45 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.download-license { position: relative; z-index: 2; width: 100%; min-height: 46px; display: none; align-items: center; justify-content: center; gap: 9px; border: 1px solid rgba(172, 216, 204, .36); border-radius: 9px; color: white; background: #28735f; cursor: pointer; font-weight: 750; }
.download-license:hover { background: #2f806b; }
.license-result[data-state="success"] .download-license { display: inline-flex; }
.download-license svg { width: 17px; }

@keyframes result-pulse { 50% { opacity: .35; transform: scale(.72); } }

@media (max-width: 820px) {
  .activation-workbench { grid-template-columns: 1fr; }
  .license-result { min-height: 440px; border-top: 1px solid #cbd9e3; border-left: 0; }
}

@media (max-width: 600px) {
  .license-page .license-nav-actions .button { display: none; }
  .license-main { padding: 30px 0 42px; }
  .activation-panel, .license-result { padding: 28px 22px 30px; }
  .panel-kicker { align-items: flex-start; flex-direction: column; gap: 7px; }
  .license-field label { align-items: flex-start; flex-direction: column; gap: 5px; }
  .activation-actions { align-items: stretch; flex-direction: column; }
  .activation-actions .button { width: 100%; }
  .activation-actions .buy-inline { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .license-result[data-state="loading"] .result-status::before { animation: none; }
}
