.commerce-page {
  min-height: 100vh;
  color: #f4f1e9;
  background:
    radial-gradient(circle at 78% 12%, rgba(102, 78, 178, 0.14), transparent 36%),
    radial-gradient(circle at 19% 28%, rgba(236, 167, 67, 0.09), transparent 28%),
    #07090d;
}

.commerce-page main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 168px 0 110px;
}

.commerce-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 70px;
  align-items: start;
}

.commerce-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: #c7a8ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.commerce-kicker::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7adea0;
  box-shadow: 0 0 16px rgba(122, 222, 160, 0.6);
  content: "";
}

.commerce-copy h1,
.status-panel h1 {
  max-width: 720px;
  margin: 0;
  font-family: "Smiley Sans", Inter, sans-serif;
  font-size: clamp(56px, 7vw, 94px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.commerce-copy h1 .pro-accent {
  display: inline-block;
}

.commerce-lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: #a7acb5;
  font-size: 17px;
  line-height: 1.8;
}

.commerce-trust {
  display: grid;
  gap: 14px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}

.commerce-trust li {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #ced1d6;
  font-size: 14px;
}

.commerce-trust i {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border: 1px solid rgba(122, 222, 160, 0.3);
  border-radius: 50%;
  color: #79d69a;
  background: rgba(122, 222, 160, 0.08);
  font-size: 12px;
  font-style: normal;
}

.purchase-card,
.status-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 30px;
  background: linear-gradient(150deg, rgba(24, 29, 39, 0.97), rgba(11, 14, 20, 0.97));
  box-shadow: 0 38px 120px rgba(0, 0, 0, 0.42);
}

.purchase-card::before,
.status-panel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 223, 145, 0.8), transparent);
  content: "";
}

.purchase-card__head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 32px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.purchase-card__head h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.purchase-card__head p {
  margin: 0;
  color: #818792;
  font-size: 12px;
}

.purchase-price {
  min-width: 128px;
  text-align: right;
}

.purchase-price strong {
  display: block;
  color: #f5db88;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.purchase-price small {
  color: #777d87;
}

.purchase-form {
  display: grid;
  gap: 22px;
  padding: 30px 32px 32px;
}

.field-label {
  display: grid;
  gap: 9px;
  color: #c9ccd2;
  font-size: 13px;
  font-weight: 700;
}

.field-label input {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  outline: none;
  background: rgba(3, 5, 8, 0.55);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field-label input:focus {
  border-color: rgba(214, 184, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(139, 102, 221, 0.14);
}

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

.plan-option {
  position: relative;
  min-height: 116px;
  padding: 16px 14px;
  color: #d8dbe0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.plan-option:hover {
  border-color: rgba(232, 207, 145, 0.34);
}

.plan-option input {
  position: absolute;
  opacity: 0;
}

.plan-option:has(input:checked) {
  border-color: rgba(232, 207, 145, 0.72);
  background: linear-gradient(150deg, rgba(237, 199, 106, 0.12), rgba(139, 102, 221, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255, 228, 160, 0.08);
}

.plan-option strong,
.plan-option small,
.plan-option em {
  display: block;
}

.plan-option strong {
  font-size: 14px;
}

.plan-option small {
  margin-top: 9px;
  color: #838995;
  font-size: 10px;
  line-height: 1.55;
}

.plan-option em {
  width: fit-content;
  margin-bottom: 8px;
  padding: 3px 7px;
  color: #ebcd75;
  border-radius: 999px;
  background: rgba(225, 190, 92, 0.1);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.provider-option {
  position: relative;
  display: grid;
  min-height: 80px;
  padding: 13px;
  place-items: center;
  color: #d8dbe0;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
  cursor: pointer;
}

.provider-option input {
  position: absolute;
  opacity: 0;
}

.provider-option:has(input:checked) {
  border-color: rgba(232, 207, 145, 0.65);
  background: linear-gradient(150deg, rgba(237, 199, 106, 0.11), rgba(139, 102, 221, 0.09));
  box-shadow: inset 0 0 0 1px rgba(255, 228, 160, 0.08);
}

.provider-option.is-unavailable {
  color: #666c76;
  cursor: not-allowed;
}

.provider-option strong {
  font-size: 13px;
}

.provider-option small {
  display: block;
  margin-top: 4px;
  color: #707680;
  font-size: 9px;
}

.purchase-submit {
  min-height: 54px;
  border: 0;
  border-radius: 15px;
  color: #16130c;
  background: linear-gradient(110deg, #f2d36f, #d6d6c8);
  box-shadow: 0 14px 36px rgba(220, 186, 99, 0.16);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.purchase-submit:disabled {
  color: #787b80;
  background: #262a31;
  box-shadow: none;
  cursor: not-allowed;
}

.commerce-message {
  min-height: 20px;
  margin: 0;
  color: #969ca6;
  font-size: 12px;
  line-height: 1.6;
}

.commerce-message[data-state="error"] { color: #ff9e98; }
.commerce-message[data-state="success"] { color: #79d69a; }

.purchase-footnote {
  margin: 0;
  color: #666c75;
  font-size: 10px;
  line-height: 1.7;
}

.purchase-footnote a { color: #aeb3bc; }

.commerce-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 80px;
}

.commerce-secondary article {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.018);
}

.commerce-secondary strong {
  display: block;
  margin-bottom: 9px;
  font-size: 14px;
}

.commerce-secondary p,
.commerce-secondary a {
  color: #858b95;
  font-size: 12px;
  line-height: 1.65;
}

.status-page main {
  display: grid;
  min-height: calc(100vh - 140px);
  place-items: center;
}

.status-panel {
  width: min(720px, 100%);
  padding: 56px;
  text-align: center;
}

.status-panel__icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 26px;
  place-items: center;
  border: 1px solid rgba(244, 210, 119, 0.26);
  border-radius: 20px;
  color: #f0d57d;
  background: rgba(244, 210, 119, 0.07);
  font-size: 25px;
}

.status-panel h1 {
  margin-inline: auto;
  font-size: clamp(42px, 7vw, 70px);
}

.status-panel > p {
  max-width: 560px;
  margin: 22px auto 0;
  color: #969ca6;
  line-height: 1.75;
}

.refund-panel {
  width: min(920px, 100%);
  margin-block: 48px;
}

.refund-policy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
  text-align: left;
}

.refund-policy article,
.refund-policy aside {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.refund-policy article:last-of-type,
.refund-policy aside {
  grid-column: 1 / -1;
}

.refund-policy h2 {
  margin: 0;
  color: #f3f0e8;
  font-size: 17px;
  line-height: 1.35;
}

.refund-policy p,
.refund-policy aside {
  color: #969ca6;
  font-size: 14px;
  line-height: 1.75;
}

.refund-policy p {
  margin: 10px 0 0;
}

.refund-policy a {
  color: #e9ce76;
  text-decoration-color: rgba(233, 206, 118, 0.38);
  text-underline-offset: 3px;
}

.refund-policy aside {
  color: #c8b978;
  text-align: center;
}

.license-result {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid rgba(121, 214, 154, 0.25);
  border-radius: 18px;
  background: rgba(121, 214, 154, 0.055);
}

.license-result code {
  color: #f7f3e9;
  font-size: clamp(16px, 3.5vw, 23px);
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.status-actions a,
.status-actions button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #dfe1e5;
  background: rgba(255, 255, 255, 0.035);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.management-panel {
  width: min(800px, 100%);
}

.management-panel [data-management-request-panel] > p {
  max-width: 590px;
  margin: 22px auto 0;
  color: #969ca6;
  line-height: 1.75;
}

.management-summary {
  color: #d5d7db;
  font-weight: 700;
}

.management-devices {
  display: grid;
  gap: 12px;
  margin-top: 30px;
  text-align: left;
}

.management-device {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.management-device div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.management-device strong {
  overflow: hidden;
  color: #f4f1e9;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.management-device span,
.management-device small {
  color: #858b95;
  font-size: 11px;
}

.management-device button {
  min-height: 40px;
  flex: 0 0 auto;
  padding: 0 15px;
  color: #f0c5c2;
  border: 1px solid rgba(255, 137, 129, 0.22);
  border-radius: 11px;
  background: rgba(255, 137, 129, 0.065);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.management-device button:disabled {
  opacity: 0.45;
  cursor: wait;
}

.management-empty {
  margin: 0;
  padding: 28px;
  color: #858b95;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  text-align: center;
}

.management-expiry {
  margin: 18px 0 0;
  color: #676d77;
  font-size: 11px;
}

.account-page .site-header,
.account-page main {
  position: relative;
  z-index: 1;
}

.account-page main {
  display: block;
  min-height: 100vh;
  padding-top: 150px;
}

.account-shell {
  width: min(720px, 100%);
  margin: 0 auto;
}

.account-intro {
  margin-bottom: 30px;
  text-align: center;
}

.account-intro h1 {
  margin: 0;
  font-family: "Smiley Sans", Inter, sans-serif;
  font-size: clamp(40px, 5.2vw, 62px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.account-intro p {
  margin: 12px 0 0;
  color: #8d91a0;
  font-size: 14px;
}

.account-page .management-panel {
  width: 100%;
  padding: 42px 38px 34px;
  border-radius: 20px;
  background: rgba(15, 19, 25, 0.94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  text-align: left;
}

.account-page .management-panel::before {
  display: none;
}

.account-page .management-panel h2 {
  margin: 0;
  color: #f4f1e9;
  font-size: 24px;
}

.account-page .management-panel [data-management-request-panel] > p,
.account-page .management-panel [data-management-link-panel] > p {
  max-width: none;
  margin: 10px 0 0;
  color: #c2c4cd;
  font-size: 13px;
  line-height: 1.7;
}

.account-page .purchase-form {
  gap: 10px;
  padding: 12px 0 0;
}

.account-page .field-label input {
  min-height: 48px;
  border-radius: 10px;
  background: rgba(21, 26, 34, 0.94);
}

.account-page .purchase-submit {
  width: max-content;
  min-height: 42px;
  margin-top: 0;
  padding-inline: 19px;
  border-radius: 999px;
}

.account-page .commerce-message {
  margin: 4px 0 0;
  color: #767b89;
  font-size: 11px;
}

.account-page .status-actions {
  align-items: center;
  justify-content: flex-start;
  margin-top: 26px;
}

.account-page .status-actions a {
  display: inline-flex;
  min-width: 128px;
  min-height: 46px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  margin: 0;
  line-height: 1;
}

.qr-dialog {
  width: min(420px, calc(100% - 32px));
  padding: 28px;
  color: #111;
  border: 0;
  border-radius: 24px;
  background: #fff;
  text-align: center;
}

.qr-dialog::backdrop { background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(8px); }
.qr-dialog h2 { margin: 0 0 8px; }
.qr-dialog p { margin: 0 0 20px; color: #60646b; font-size: 13px; }
.qr-dialog img { width: min(280px, 100%); height: auto; image-rendering: pixelated; }
.qr-dialog button { margin-top: 18px; min-height: 40px; padding: 0 18px; border: 0; border-radius: 10px; }

@media (max-width: 920px) {
  .commerce-hero { grid-template-columns: 1fr; gap: 48px; }
  .commerce-copy { text-align: center; }
  .commerce-lead { margin-inline: auto; }
  .commerce-trust { width: max-content; max-width: 100%; margin-inline: auto; text-align: left; }
  .commerce-secondary { grid-template-columns: 1fr; margin-top: 48px; }
}

@media (max-width: 620px) {
  .commerce-page main { width: min(100% - 24px, 1180px); padding: 130px 0 76px; }
  .commerce-copy h1 { font-size: 54px; }
  .purchase-card__head { display: grid; padding: 24px 22px; }
  .purchase-price { text-align: left; }
  .purchase-form { padding: 24px 22px; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-option { min-height: 96px; }
  .provider-grid { grid-template-columns: 1fr; }
  .provider-option { min-height: 58px; }
  .status-panel { padding: 42px 22px; border-radius: 24px; }
  .refund-panel { margin-block: 24px; }
  .refund-policy { grid-template-columns: 1fr; }
  .refund-policy article:last-of-type,
  .refund-policy aside { grid-column: auto; }
  .account-page main { padding-top: 126px; }
  .account-page .management-panel { padding: 32px 22px 28px; border-radius: 18px; }
  .account-intro { margin-bottom: 24px; }
  .account-page .purchase-submit { width: 100%; }
  .management-device { align-items: stretch; flex-direction: column; }
  .management-device button { width: 100%; }
}
