:root {
  --hx-brand: #5965e8;
  --hx-brand-strong: #414bb9;
  --hx-brand-soft: #f0f1ff;
  --hx-night: #151a2d;
  --hx-canvas: #f8f9fc;
  --hx-panel: #ffffff;
  --hx-ink: #192033;
  --hx-muted: #697189;
  --hx-faint: #9299ac;
  --hx-line: #e8eaf0;
  --hx-line-strong: #dfe2ea;
  --hx-success: #24775f;
  --hx-success-soft: #eaf7f1;
  --hx-warning: #a86f1d;
  --hx-warning-soft: #fff6e6;
  --hx-danger: #b34d58;
  --hx-danger-soft: #fff0f1;
  --hx-info: #3264a8;
  --hx-info-soft: #edf5ff;
  --hx-shadow: 0 16px 40px rgba(34, 43, 73, 0.055);
  --hx-shadow-soft: 0 1px 2px rgba(34, 43, 73, 0.035);
  --hx-radius: 16px;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--hx-ink);
  background: var(--hx-canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--hx-canvas);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 84% -10%, rgba(89, 101, 232, 0.09), transparent 31rem),
    var(--hx-canvas);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

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

svg {
  display: block;
}

.hx-app {
  min-height: 100vh;
}

.hx-shell {
  min-height: 100vh;
  padding-bottom: 48px;
}

.hx-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 72px;
  border-bottom: 1px solid rgba(213, 218, 231, 0.86);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.hx-topbar__inner {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 220px;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
}

.hx-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.hx-brand__mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #6975f2, #4853cf);
  box-shadow: 0 8px 20px rgba(89, 101, 232, 0.28);
  font-size: 15px;
  font-weight: 800;
}

.hx-brand__copy {
  display: grid;
  gap: 1px;
}

.hx-brand__copy small {
  color: var(--hx-faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hx-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.hx-nav__item {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border-radius: 12px;
  color: var(--hx-muted);
  font-size: 14px;
  font-weight: 650;
  transition: color 160ms ease, background 160ms ease;
}

.hx-nav__item:hover {
  color: var(--hx-ink);
  background: #f1f3f8;
}

.hx-nav__item.is-active {
  color: var(--hx-brand-strong);
  background: var(--hx-brand-soft);
}

.hx-account {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.hx-account__identity {
  display: grid;
  min-width: 0;
  text-align: right;
}

.hx-account__identity strong {
  overflow: hidden;
  max-width: 140px;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hx-account__identity small {
  color: var(--hx-faint);
  font-size: 11px;
}

.hx-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #dfe3f4;
  border-radius: 50%;
  color: var(--hx-brand-strong);
  background: var(--hx-brand-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hx-main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 42px;
}

.hx-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.hx-eyebrow {
  margin: 0 0 8px;
  color: var(--hx-brand-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hx-page-head h1,
.hx-hero h1,
.hx-auth__form h1 {
  margin: 0;
  color: var(--hx-ink);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.hx-page-head p,
.hx-hero p {
  margin: 9px 0 0;
  color: var(--hx-muted);
  font-size: 14px;
  line-height: 1.7;
}

.hx-card {
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius);
  background: var(--hx-panel);
  box-shadow: var(--hx-shadow-soft);
}

.hx-card--flat {
  box-shadow: none;
}

.hx-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 0;
}

.hx-card__head h2,
.hx-card__head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 740;
  letter-spacing: -0.02em;
}

.hx-card__head p {
  margin: 6px 0 0;
  color: var(--hx-muted);
  font-size: 12px;
  line-height: 1.6;
}

.hx-card__body {
  padding: 22px 24px 24px;
}

.hx-grid {
  display: grid;
  gap: 18px;
}

.hx-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hx-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hx-home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.8fr);
  gap: 20px;
}

.hx-home-main,
.hx-home-side {
  display: grid;
  align-content: start;
  gap: 20px;
}

.hx-hero {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: 34px;
  border: 1px solid rgba(89, 101, 232, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 96% 0, rgba(120, 132, 255, 0.25), transparent 19rem),
    linear-gradient(135deg, #ffffff 0%, #f6f7ff 100%);
  box-shadow: var(--hx-shadow);
}

.hx-hero::after {
  position: absolute;
  right: -62px;
  bottom: -120px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(89, 101, 232, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 38px rgba(89, 101, 232, 0.035),
    0 0 0 76px rgba(89, 101, 232, 0.025);
  content: "";
  pointer-events: none;
}

.hx-hero__content {
  position: relative;
  z-index: 1;
  max-width: 660px;
}

.hx-hero__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.hx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hx-hero__note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 17px;
  color: var(--hx-muted);
  font-size: 12px;
}

.hx-status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--hx-muted);
  background: #f0f2f7;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.hx-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.hx-status--success {
  color: var(--hx-success);
  background: var(--hx-success-soft);
}

.hx-status--warning {
  color: var(--hx-warning);
  background: var(--hx-warning-soft);
}

.hx-status--danger {
  color: var(--hx-danger);
  background: var(--hx-danger-soft);
}

.hx-status--info {
  color: var(--hx-info);
  background: var(--hx-info-soft);
}

.hx-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 720;
  line-height: 1;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background 150ms ease;
}

.hx-button:hover {
  transform: translateY(-1px);
}

.hx-button:active {
  transform: translateY(0);
}

.hx-button:disabled,
.hx-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
}

.hx-button--primary {
  color: #fff;
  background: var(--hx-brand);
  box-shadow: 0 8px 20px rgba(89, 101, 232, 0.23);
}

.hx-button--primary:hover {
  background: var(--hx-brand-strong);
}

.hx-button--secondary {
  border-color: var(--hx-line-strong);
  color: var(--hx-ink);
  background: #fff;
}

.hx-button--secondary:hover {
  border-color: #bfc5d6;
  background: #fafbfe;
}

.hx-button--quiet {
  min-height: 36px;
  padding: 0 10px;
  color: var(--hx-muted);
  background: transparent;
}

.hx-button--danger {
  border-color: #f2ccd0;
  color: var(--hx-danger);
  background: var(--hx-danger-soft);
}

.hx-button--wide {
  width: 100%;
}

.hx-button--large {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 14px;
}

.hx-client {
  display: inline-flex;
  min-width: 128px;
  min-height: 54px;
  align-items: center;
  gap: 11px;
  padding: 0 15px;
  border: 1px solid var(--hx-line);
  border-radius: 14px;
  color: var(--hx-ink);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.hx-client:hover {
  transform: translateY(-2px);
  border-color: #bbc2f4;
  box-shadow: 0 10px 24px rgba(55, 65, 120, 0.1);
}

.hx-client__icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: var(--hx-brand-strong);
  background: var(--hx-brand-soft);
  font-size: 12px;
  font-weight: 800;
}

.hx-client__copy {
  display: grid;
  gap: 3px;
}

.hx-client strong {
  font-size: 13px;
}

.hx-client small {
  color: var(--hx-faint);
  font-size: 10px;
}

.hx-metric {
  min-height: 158px;
  padding: 24px;
}

.hx-metric__icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 12px;
  color: var(--hx-brand-strong);
  background: var(--hx-brand-soft);
}

.hx-metric__value {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-size: 25px;
  font-weight: 760;
  letter-spacing: -0.035em;
}

.hx-metric__label {
  margin: 6px 0 0;
  color: var(--hx-muted);
  font-size: 12px;
}

.hx-progress {
  overflow: hidden;
  width: 100%;
  height: 7px;
  margin: 20px 0 10px;
  border-radius: 999px;
  background: #edf0f5;
}

.hx-progress > span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6672f0, #8790f7);
}

.hx-progress__legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--hx-muted);
  font-size: 11px;
}

.hx-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hx-list__item {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--hx-line);
}

.hx-list__item:first-child {
  border-top: 0;
}

.hx-list__main {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.hx-list__main strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hx-list__main small {
  color: var(--hx-muted);
  font-size: 11px;
}

.hx-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 28px;
  border: 1px solid var(--hx-line);
  border-radius: 16px;
  background: #fff;
}

.hx-step {
  position: relative;
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 11px;
  padding: 0 18px;
  color: var(--hx-faint);
  font-size: 12px;
  font-weight: 680;
}

.hx-step + .hx-step::before {
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: 0;
  width: 1px;
  background: var(--hx-line);
  content: "";
}

.hx-step__number {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #eef0f5;
  font-size: 11px;
}

.hx-step.is-active {
  color: var(--hx-brand-strong);
}

.hx-step.is-active .hx-step__number,
.hx-step.is-done .hx-step__number {
  color: #fff;
  background: var(--hx-brand);
}

.hx-step.is-done {
  color: var(--hx-ink);
}

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

.hx-plan {
  position: relative;
  display: flex;
  min-height: 388px;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--hx-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--hx-shadow-soft);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.hx-plan:hover {
  transform: translateY(-3px);
  border-color: #c6cbf6;
  box-shadow: var(--hx-shadow);
}

.hx-plan.is-featured {
  border-color: rgba(89, 101, 232, 0.42);
  background: linear-gradient(180deg, #fafaff, #fff 35%);
}

.hx-plan__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--hx-brand-strong);
  background: var(--hx-brand-soft);
  font-size: 10px;
  font-weight: 780;
}

.hx-plan h2 {
  max-width: 72%;
  margin: 0;
  font-size: 19px;
  font-weight: 760;
  letter-spacing: -0.025em;
}

.hx-plan__price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 24px;
}

.hx-plan__price strong {
  font-size: 32px;
  font-weight: 780;
  letter-spacing: -0.045em;
}

.hx-plan__price span {
  color: var(--hx-muted);
  font-size: 12px;
}

.hx-plan__features {
  display: grid;
  gap: 13px;
  margin: 25px 0;
  padding: 20px 0;
  border-top: 1px solid var(--hx-line);
  list-style: none;
}

.hx-plan__features li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--hx-muted);
  font-size: 12px;
}

.hx-plan__features svg {
  color: var(--hx-success);
}

.hx-plan .hx-button {
  margin-top: auto;
}

.hx-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.72fr);
  align-items: start;
  gap: 20px;
}

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

.hx-period {
  position: relative;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 17px;
  border: 1px solid var(--hx-line);
  border-radius: 14px;
  color: var(--hx-ink);
  background: #fff;
  cursor: pointer;
}

.hx-period.is-selected {
  border-color: var(--hx-brand);
  box-shadow: 0 0 0 3px rgba(89, 101, 232, 0.1);
}

.hx-period__copy {
  display: grid;
  gap: 4px;
}

.hx-period__copy strong {
  font-size: 13px;
}

.hx-period__copy small {
  color: var(--hx-muted);
  font-size: 11px;
}

.hx-period__price {
  font-size: 15px;
  font-weight: 760;
}

.hx-summary {
  position: sticky;
  top: 94px;
}

.hx-summary__rows {
  display: grid;
  gap: 14px;
}

.hx-summary__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  color: var(--hx-muted);
  font-size: 12px;
}

.hx-summary__row strong {
  max-width: 60%;
  color: var(--hx-ink);
  font-weight: 700;
  text-align: right;
}

.hx-summary__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 22px 0;
  padding: 19px 0;
  border-top: 1px solid var(--hx-line);
  border-bottom: 1px solid var(--hx-line);
}

.hx-summary__total span {
  font-size: 13px;
  font-weight: 700;
}

.hx-summary__total strong {
  font-size: 25px;
  font-weight: 780;
  letter-spacing: -0.04em;
}

.hx-field {
  display: grid;
  gap: 8px;
}

.hx-field + .hx-field {
  margin-top: 16px;
}

.hx-field label {
  font-size: 12px;
  font-weight: 720;
}

.hx-input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--hx-line-strong);
  border-radius: 12px;
  outline: none;
  color: var(--hx-ink);
  background: #fff;
  font-size: 14px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.hx-input:hover {
  border-color: #bbc2d4;
}

.hx-input:focus {
  border-color: var(--hx-brand);
  box-shadow: 0 0 0 3px rgba(89, 101, 232, 0.12);
}

.hx-input::placeholder {
  color: #a7adbc;
}

.hx-field__hint,
.hx-form-note {
  color: var(--hx-muted);
  font-size: 11px;
  line-height: 1.6;
}

.hx-form-error {
  margin: 0 0 16px;
  padding: 11px 13px;
  border: 1px solid #f2ccd0;
  border-radius: 11px;
  color: var(--hx-danger);
  background: var(--hx-danger-soft);
  font-size: 12px;
  line-height: 1.55;
}

.hx-table-card {
  overflow: hidden;
}

.hx-table-wrap {
  overflow-x: auto;
}

.hx-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.hx-table th {
  padding: 13px 20px;
  color: var(--hx-muted);
  background: #fafbfc;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-align: left;
}

.hx-table td {
  padding: 18px 20px;
  border-top: 1px solid var(--hx-line);
  font-size: 12px;
  vertical-align: middle;
}

.hx-table__primary {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.hx-table__primary strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hx-table__primary code {
  overflow: hidden;
  color: var(--hx-muted);
  font-family: "SFMono-Regular", "Cascadia Code", monospace;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hx-table__action {
  color: var(--hx-brand-strong);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 720;
}

.hx-order-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 30px;
}

.hx-order-hero h1 {
  margin: 9px 0 8px;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.hx-order-hero p {
  margin: 0;
  color: var(--hx-muted);
  font-size: 13px;
  line-height: 1.65;
}

.hx-order-amount {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}

.hx-order-amount strong {
  font-size: 30px;
  font-weight: 780;
  letter-spacing: -0.045em;
}

.hx-order-amount small {
  color: var(--hx-muted);
  font-size: 11px;
}

.hx-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  gap: 20px;
  margin-top: 20px;
}

.hx-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}

.hx-fact {
  display: grid;
  gap: 6px;
}

.hx-fact span {
  color: var(--hx-muted);
  font-size: 11px;
}

.hx-fact strong,
.hx-fact code {
  overflow-wrap: anywhere;
  color: var(--hx-ink);
  font-size: 13px;
  font-weight: 680;
}

.hx-fact code {
  font-family: "SFMono-Regular", "Cascadia Code", monospace;
  font-size: 11px;
}

.hx-callout {
  padding: 18px;
  border: 1px solid #dbe0ff;
  border-radius: 14px;
  color: #38417c;
  background: #f6f7ff;
  font-size: 12px;
  line-height: 1.7;
}

.hx-callout--warning {
  border-color: #f0dfbd;
  color: #765021;
  background: var(--hx-warning-soft);
}

.hx-callout--danger {
  border-color: #efcfd2;
  color: #813943;
  background: var(--hx-danger-soft);
}

.hx-callout strong {
  display: block;
  margin-bottom: 3px;
  color: inherit;
}

.hx-actions-stack {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.hx-empty,
.hx-error-state,
.hx-loading {
  display: grid;
  min-height: 300px;
  place-items: center;
  padding: 48px 24px;
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius);
  background: #fff;
  text-align: center;
}

.hx-empty__inner,
.hx-error-state__inner,
.hx-loading__inner {
  display: grid;
  max-width: 420px;
  justify-items: center;
  gap: 10px;
}

.hx-empty__icon,
.hx-error-state__icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 5px;
  place-items: center;
  border-radius: 15px;
  color: var(--hx-brand-strong);
  background: var(--hx-brand-soft);
}

.hx-empty h2,
.hx-error-state h2,
.hx-loading h2 {
  margin: 0;
  font-size: 17px;
}

.hx-empty p,
.hx-error-state p,
.hx-loading p {
  margin: 0 0 8px;
  color: var(--hx-muted);
  font-size: 12px;
  line-height: 1.7;
}

.hx-spinner {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  border: 3px solid #e4e7f7;
  border-top-color: var(--hx-brand);
  border-radius: 50%;
  animation: hx-spin 720ms linear infinite;
}

@keyframes hx-spin {
  to { transform: rotate(360deg); }
}

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

.hx-help-card {
  display: grid;
  min-height: 250px;
  align-content: start;
  padding: 26px;
  gap: 12px;
}

.hx-help-card__number {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 7px;
  place-items: center;
  border-radius: 11px;
  color: var(--hx-brand-strong);
  background: var(--hx-brand-soft);
  font-size: 12px;
  font-weight: 800;
}

.hx-help-card h2 {
  margin: 0;
  font-size: 17px;
}

.hx-help-card p {
  margin: 0;
  color: var(--hx-muted);
  font-size: 12px;
  line-height: 1.75;
}

.hx-help-card .hx-button {
  align-self: end;
  justify-self: start;
  margin-top: auto;
}

.hx-auth {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(380px, 0.82fr) minmax(520px, 1.18fr);
  background: #fff;
}

.hx-auth__brand {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 15%, rgba(118, 130, 255, 0.45), transparent 23rem),
    linear-gradient(150deg, #1e2543 0%, #121626 66%);
}

.hx-auth__brand::after {
  position: absolute;
  right: -170px;
  bottom: -150px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  box-shadow:
    0 0 0 56px rgba(255, 255, 255, 0.025),
    0 0 0 112px rgba(255, 255, 255, 0.018);
  content: "";
}

.hx-auth__brand .hx-brand {
  position: relative;
  z-index: 1;
  color: #fff;
}

.hx-auth__brand .hx-brand__copy small {
  color: rgba(255, 255, 255, 0.56);
}

.hx-auth__message {
  position: relative;
  z-index: 1;
  max-width: 460px;
}

.hx-auth__message h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.hx-auth__message p {
  max-width: 410px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.8;
}

.hx-auth__brand-foot {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.hx-auth__panel {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 48px;
}

.hx-auth__form {
  width: min(410px, 100%);
}

.hx-auth__form > p {
  margin: 11px 0 30px;
  color: var(--hx-muted);
  font-size: 13px;
  line-height: 1.6;
}

.hx-auth__form form > .hx-button {
  margin-top: 22px;
}

.hx-auth__switch {
  margin-top: 22px;
  color: var(--hx-muted);
  font-size: 12px;
  text-align: center;
}

.hx-auth__switch button {
  padding: 0;
  color: var(--hx-brand-strong);
  background: transparent;
  cursor: pointer;
  font-weight: 720;
}

.hx-mobile-nav {
  display: none;
}

.hx-toast {
  position: fixed;
  z-index: 60;
  right: 22px;
  bottom: 22px;
  display: flex;
  max-width: min(380px, calc(100% - 44px));
  min-height: 50px;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border: 1px solid rgba(25, 32, 51, 0.08);
  border-radius: 14px;
  color: #fff;
  background: #252b3d;
  box-shadow: 0 16px 38px rgba(23, 29, 48, 0.24);
  font-size: 12px;
  line-height: 1.5;
  animation: hx-toast-in 180ms ease-out;
}

.hx-toast--error {
  background: #743b43;
}

@keyframes hx-toast-in {
  from { transform: translateY(8px); opacity: 0; }
}

.hx-modal-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(14, 18, 30, 0.52);
  backdrop-filter: blur(5px);
}

.hx-modal {
  width: min(480px, 100%);
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(12, 16, 30, 0.28);
}

.hx-modal h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.hx-modal p {
  margin: 10px 0 22px;
  color: var(--hx-muted);
  font-size: 12px;
  line-height: 1.7;
}

.hx-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.hx-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
}

:focus-visible {
  outline: 3px solid rgba(89, 101, 232, 0.32);
  outline-offset: 3px;
}

/* 0.1.1 modern-light visual baseline */
body {
  background: #f8f9fc;
}

.hx-shell {
  padding-bottom: 40px;
}

.hx-topbar {
  height: 64px;
  border-bottom-color: rgba(228, 231, 239, 0.82);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
}

.hx-topbar__inner {
  grid-template-columns: 200px minmax(0, 1fr) 200px;
  width: min(1120px, calc(100% - 48px));
}

.hx-brand {
  gap: 10px;
  font-weight: 720;
}

.hx-brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(89, 101, 232, 0.2);
}

.hx-nav__item {
  min-height: 36px;
  padding: 0 13px;
  font-weight: 620;
}

.hx-main {
  width: min(1120px, calc(100% - 48px));
  padding-top: 34px;
}

.hx-page-head {
  margin-bottom: 20px;
}

.hx-eyebrow {
  margin-bottom: 7px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.hx-page-head h1,
.hx-hero h1,
.hx-auth__form h1 {
  font-size: clamp(27px, 3.4vw, 34px);
  font-weight: 720;
}

.hx-card {
  border-color: #e8eaf0;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(34, 43, 73, 0.035);
}

.hx-card__head {
  padding: 20px 20px 0;
}

.hx-card__body {
  padding: 18px 20px 20px;
}

.hx-grid {
  gap: 14px;
}

.hx-home-layout,
.hx-home-main,
.hx-home-side {
  gap: 16px;
}

.hx-hero {
  min-height: 284px;
  padding: 30px;
  border-color: rgba(89, 101, 232, 0.13);
  border-radius: 20px;
  background:
    radial-gradient(circle at 98% 0, rgba(120, 132, 255, 0.16), transparent 18rem),
    linear-gradient(135deg, #ffffff 0%, #f8f8ff 100%);
  box-shadow: 0 10px 32px rgba(52, 60, 110, 0.045);
}

.hx-hero::after {
  opacity: 0;
}

.hx-hero__topline {
  margin-bottom: 22px;
}

.hx-hero__actions {
  margin-top: 23px;
}

.hx-hero__note {
  margin-top: 14px;
}

.hx-button {
  min-height: 40px;
  font-weight: 680;
}

.hx-button--primary {
  box-shadow: 0 5px 14px rgba(89, 101, 232, 0.18);
}

.hx-client {
  min-height: 50px;
  border-color: #e7e9ef;
  border-radius: 12px;
}

.hx-client:hover {
  box-shadow: 0 8px 20px rgba(55, 65, 120, 0.065);
}

.hx-metric {
  min-height: 132px;
  padding: 20px;
}

.hx-metric__icon {
  width: 34px;
  height: 34px;
  margin-bottom: 15px;
}

.hx-metric__value {
  font-size: 22px;
}

.hx-progress {
  margin: 15px 0 9px;
}

.hx-list__item {
  min-height: 60px;
}

.hx-stepper {
  margin-bottom: 22px;
  border-color: #e8eaf0;
  box-shadow: 0 1px 2px rgba(34, 43, 73, 0.025);
}

.hx-step {
  min-height: 60px;
}

.hx-plan {
  min-height: 348px;
  padding: 23px;
  border-color: #e8eaf0;
  box-shadow: 0 1px 2px rgba(34, 43, 73, 0.035);
}

.hx-plan:hover {
  box-shadow: 0 12px 32px rgba(34, 43, 73, 0.055);
}

.hx-plan__price {
  margin-top: 20px;
}

.hx-plan__features {
  margin: 21px 0;
  padding: 17px 0;
}

.hx-order-hero {
  padding: 26px;
}

.hx-help-card {
  min-height: 225px;
  padding: 23px;
}

.hx-auth__brand {
  color: var(--hx-ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(115, 127, 246, 0.2), transparent 23rem),
    linear-gradient(150deg, #f3f4ff 0%, #eceefe 100%);
}

.hx-auth__brand::after {
  border-color: rgba(89, 101, 232, 0.1);
  box-shadow:
    0 0 0 56px rgba(89, 101, 232, 0.025),
    0 0 0 112px rgba(89, 101, 232, 0.018);
}

.hx-auth__brand .hx-brand {
  color: var(--hx-ink);
}

.hx-auth__brand .hx-brand__copy small {
  color: rgba(65, 75, 185, 0.62);
}

.hx-auth__message p {
  color: var(--hx-muted);
}

.hx-auth__brand-foot {
  color: rgba(65, 75, 185, 0.5);
}

@media (max-width: 980px) {
  .hx-topbar__inner {
    grid-template-columns: 180px minmax(0, 1fr) 160px;
  }

  .hx-nav__item {
    padding: 0 10px;
  }

  .hx-nav__item svg {
    display: none;
  }

  .hx-home-layout,
  .hx-checkout,
  .hx-detail-grid {
    grid-template-columns: 1fr;
  }

  .hx-home-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hx-summary {
    position: static;
  }

  .hx-plans,
  .hx-help-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hx-auth {
    grid-template-columns: minmax(330px, 0.76fr) minmax(420px, 1.24fr);
  }
}

@media (max-width: 760px) {
  body {
    background: var(--hx-canvas);
  }

  .hx-shell {
    padding-bottom: 92px;
  }

  .hx-topbar {
    height: 62px;
  }

  .hx-topbar__inner {
    display: flex;
    width: calc(100% - 32px);
    justify-content: space-between;
  }

  .hx-topbar .hx-nav,
  .hx-account__identity {
    display: none;
  }

  .hx-brand__copy small {
    display: none;
  }

  .hx-main {
    width: calc(100% - 28px);
    padding-top: 24px;
  }

  .hx-page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
  }

  .hx-page-head h1,
  .hx-hero h1 {
    font-size: 28px;
  }

  .hx-home-side,
  .hx-grid--2,
  .hx-grid--3,
  .hx-plans,
  .hx-help-grid {
    grid-template-columns: 1fr;
  }

  .hx-hero {
    min-height: auto;
    padding: 24px 20px;
    border-radius: 20px;
  }

  .hx-hero__topline {
    margin-bottom: 24px;
  }

  .hx-hero__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hx-client {
    min-width: 0;
    padding: 0 12px;
  }

  .hx-client:nth-child(3),
  .hx-client:nth-child(4) {
    grid-column: auto;
  }

  .hx-metric {
    min-height: 140px;
  }

  .hx-card__head {
    padding: 19px 18px 0;
  }

  .hx-card__body {
    padding: 18px;
  }

  .hx-stepper {
    grid-template-columns: 1fr;
  }

  .hx-step {
    min-height: 52px;
  }

  .hx-step + .hx-step::before {
    top: 0;
    right: 17px;
    bottom: auto;
    left: 17px;
    width: auto;
    height: 1px;
  }

  .hx-periods {
    grid-template-columns: 1fr;
  }

  .hx-order-hero {
    grid-template-columns: 1fr;
    padding: 23px 20px;
  }

  .hx-order-amount {
    justify-items: start;
    text-align: left;
  }

  .hx-facts {
    grid-template-columns: 1fr;
  }

  .hx-table {
    min-width: 690px;
  }

  .hx-auth {
    display: block;
    min-height: 100vh;
    background: #fff;
  }

  .hx-auth__brand {
    min-height: 210px;
    padding: 28px 24px;
  }

  .hx-auth__message {
    margin-top: 38px;
  }

  .hx-auth__message h2 {
    font-size: 30px;
  }

  .hx-auth__message p,
  .hx-auth__brand-foot {
    display: none;
  }

  .hx-auth__panel {
    min-height: auto;
    place-items: start center;
    padding: 34px 24px 48px;
  }

  .hx-auth__form h1 {
    font-size: 28px;
  }

  .hx-mobile-nav {
    position: fixed;
    z-index: 30;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 66px;
    padding: 6px;
    border: 1px solid rgba(213, 218, 231, 0.9);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 40px rgba(26, 33, 57, 0.15);
    backdrop-filter: blur(18px);
  }

  .hx-mobile-nav__item {
    display: grid;
    min-width: 0;
    place-items: center;
    align-content: center;
    gap: 4px;
    border-radius: 14px;
    color: var(--hx-muted);
    font-size: 9px;
    font-weight: 700;
  }

  .hx-mobile-nav__item.is-active {
    color: var(--hx-brand-strong);
    background: var(--hx-brand-soft);
  }

  .hx-toast {
    right: 14px;
    bottom: 92px;
    left: 14px;
    max-width: none;
  }
}

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

  .hx-client {
    min-height: 52px;
  }

  .hx-page-head h1,
  .hx-hero h1,
  .hx-auth__form h1 {
    font-size: 26px;
  }
}

@media (max-width: 760px) {
  .hx-shell {
    padding-bottom: 80px;
  }

  .hx-topbar {
    height: 58px;
  }

  .hx-topbar__inner {
    width: calc(100% - 24px);
  }

  .hx-main {
    width: calc(100% - 24px);
    padding-top: 20px;
  }

  .hx-page-head {
    margin-bottom: 16px;
  }

  .hx-hero {
    min-height: auto;
    padding: 22px 18px;
    border-radius: 17px;
  }

  .hx-hero__topline {
    margin-bottom: 19px;
  }

  .hx-hero__actions {
    gap: 8px;
    margin-top: 19px;
  }

  .hx-home-main .hx-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hx-home-main .hx-grid--3 .hx-metric:first-child {
    grid-column: 1 / -1;
  }

  .hx-metric {
    min-height: 112px;
    padding: 16px;
  }

  .hx-metric__icon {
    width: 30px;
    height: 30px;
    margin-bottom: 12px;
    border-radius: 9px;
  }

  .hx-metric__value {
    font-size: 19px;
  }

  .hx-progress {
    margin-top: 12px;
  }

  .hx-card__head {
    padding: 17px 16px 0;
  }

  .hx-card__body {
    padding: 16px;
  }

  .hx-step {
    min-height: 48px;
  }

  .hx-plan {
    min-height: 326px;
    padding: 20px;
  }

  .hx-order-hero {
    padding: 20px 18px;
  }

  .hx-auth__brand {
    min-height: 180px;
    padding: 24px;
  }

  .hx-auth__message {
    margin-top: 28px;
  }

  .hx-auth__message h2 {
    font-size: 27px;
  }

  .hx-auth__panel {
    padding: 28px 24px 42px;
  }

  .hx-mobile-nav {
    right: 8px;
    bottom: 8px;
    left: 8px;
    min-height: 58px;
    padding: 5px;
    border-color: rgba(224, 227, 235, 0.92);
    border-radius: 17px;
    box-shadow: 0 10px 30px rgba(26, 33, 57, 0.1);
  }

  .hx-mobile-nav__item {
    border-radius: 12px;
  }
}

@media (min-width: 360px) and (max-width: 420px) {
  .hx-hero__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 0.3.0 light brand and Lucide product system */
:root {
  --hx-brand: #635bff;
  --hx-brand-strong: #4d47dc;
  --hx-brand-soft: #efeeff;
  --hx-night: #11131b;
  --hx-canvas: #f4f5f7;
  --hx-panel: #ffffff;
  --hx-ink: #101219;
  --hx-muted: #696d79;
  --hx-faint: #9a9da7;
  --hx-line: #e6e7eb;
  --hx-line-strong: #d8dae1;
  --hx-shadow: 0 24px 70px rgba(24, 26, 38, 0.09);
  --hx-shadow-soft: 0 1px 2px rgba(24, 26, 38, 0.035);
  --hx-radius: 22px;
}

body {
  background:
    radial-gradient(circle at 12% 2%, rgba(99, 91, 255, 0.055), transparent 30rem),
    linear-gradient(180deg, #f8f8fa 0%, var(--hx-canvas) 26rem);
}

.hx-shell {
  padding-bottom: 64px;
}

.hx-topbar {
  height: 68px;
  border-bottom: 0;
  background: rgba(248, 248, 250, 0.82);
  box-shadow: inset 0 -1px rgba(16, 18, 25, 0.055);
  backdrop-filter: blur(24px) saturate(150%);
}

.hx-topbar__inner {
  grid-template-columns: 200px minmax(0, 1fr) 200px;
  width: min(1240px, calc(100% - 64px));
}

.hx-brand {
  gap: 10px;
  color: var(--hx-ink);
  font-weight: 750;
}

.hx-brand__mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hx-brand__mark img {
  display: block;
  width: 32px;
  height: 32px;
}

.hx-topbar .hx-brand__copy small {
  display: none;
}

.hx-nav {
  gap: 28px;
}

.hx-nav__item {
  position: relative;
  min-height: 42px;
  padding: 0;
  border-radius: 0;
  color: #858893;
  background: transparent;
  font-size: 13px;
  font-weight: 650;
}

.hx-nav__item:hover,
.hx-nav__item.is-active {
  color: var(--hx-ink);
  background: transparent;
}

.hx-nav__item.is-active::after {
  position: absolute;
  right: 2px;
  bottom: 2px;
  left: 2px;
  height: 2px;
  border-radius: 999px;
  background: var(--hx-brand);
  content: "";
}

.hx-nav__item svg {
  width: 15px;
  height: 15px;
}

.hx-account__identity small {
  display: none;
}

.hx-avatar {
  width: 34px;
  height: 34px;
  border: 0;
  color: var(--hx-ink);
  background: #e8e9ed;
}

.hx-main {
  width: min(1240px, calc(100% - 64px));
  padding-top: 52px;
}

.hx-page-head {
  margin-bottom: 30px;
}

.hx-page-head h1,
.hx-hero h1,
.hx-auth__form h1 {
  color: var(--hx-ink);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.052em;
  line-height: 1.04;
}

.hx-page-head p,
.hx-hero p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.65;
}

.hx-eyebrow {
  margin-bottom: 11px;
  color: var(--hx-brand);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.1em;
}

.hx-service-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid rgba(16, 18, 25, 0.08);
  border-radius: 999px;
  color: #626671;
  background: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 650;
}

.hx-service-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38b77b;
  box-shadow: 0 0 0 4px rgba(56, 183, 123, 0.1);
}

.hx-card {
  border-color: rgba(16, 18, 25, 0.075);
  border-radius: 22px;
  box-shadow: none;
}

.hx-home-layout {
  grid-template-columns: minmax(0, 1fr) 348px;
  gap: 24px;
}

.hx-home-main,
.hx-home-side {
  gap: 24px;
}

.hx-hero {
  min-height: 360px;
  padding: 26px 0 12px;
  border: 0;
  border-radius: 0;
  color: var(--hx-ink);
  background: transparent;
  box-shadow: none;
}

.hx-hero::after {
  display: none;
}

.hx-hero__content {
  max-width: none;
}

.hx-hero__topline {
  margin-bottom: 28px;
}

.hx-hero .hx-eyebrow {
  color: var(--hx-brand);
}

.hx-hero h1 {
  position: relative;
  z-index: 2;
  max-width: 640px;
  color: var(--hx-ink);
  font-size: clamp(40px, 4.6vw, 56px);
  font-weight: 650;
  line-height: 1.02;
}

.hx-hero h1 em {
  color: var(--hx-brand);
  font-style: normal;
}

.hx-hero > .hx-hero__content > p {
  position: relative;
  z-index: 2;
  max-width: 520px;
  color: var(--hx-muted);
}

.hx-hero .hx-status {
  border: 1px solid rgba(36, 119, 95, 0.1);
  color: var(--hx-success);
  background: var(--hx-success-soft);
  backdrop-filter: none;
}

.hx-hero__signal {
  position: absolute;
  z-index: 0;
  top: 46px;
  right: 58px;
  width: 196px;
  height: 196px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 91, 255, 0.1), transparent 68%);
}

.hx-hero__signal span,
.hx-hero__signal b {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.hx-hero__signal span {
  border: 1px solid rgba(99, 91, 255, 0.13);
}

.hx-hero__signal span:nth-child(1) {
  width: 76px;
  height: 76px;
}

.hx-hero__signal span:nth-child(2) {
  width: 132px;
  height: 132px;
}

.hx-hero__signal span:nth-child(3) {
  width: 190px;
  height: 190px;
}

.hx-hero__signal b {
  width: 13px;
  height: 13px;
  background: var(--hx-brand);
  box-shadow:
    0 0 0 7px rgba(99, 91, 255, 0.1),
    0 0 38px 15px rgba(99, 91, 255, 0.18);
}

.hx-hero__actions {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  margin-top: 30px;
}

.hx-hero__actions .hx-client--app {
  grid-column: span 2;
}

.hx-hero__actions .hx-client--utility {
  grid-column: span 3;
}

.hx-client {
  min-width: 0;
  min-height: 70px;
  gap: 11px;
  padding: 0 14px;
  border-color: rgba(16, 18, 25, 0.08);
  border-radius: 16px;
  color: var(--hx-ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(24, 26, 38, 0.055);
  backdrop-filter: blur(12px);
}

.hx-client:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 91, 255, 0.24);
  background: #fff;
  box-shadow: 0 12px 30px rgba(24, 26, 38, 0.08);
}

.hx-client__icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: var(--hx-brand-strong);
  background: var(--hx-brand-soft);
}

.hx-client__copy {
  min-width: 0;
}

.hx-client strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hx-client small {
  color: var(--hx-muted);
  font-size: 9px;
}

.hx-client__arrow {
  margin-left: auto;
  color: var(--hx-faint);
}

.hx-client__arrow svg {
  width: 14px;
  height: 14px;
}

.hx-hero__note {
  position: relative;
  z-index: 2;
  margin-top: 16px;
  color: var(--hx-muted);
}

.hx-home-main > .hx-grid--3 {
  overflow: hidden;
  grid-template-columns: 1.34fr 1fr 0.86fr;
  gap: 0;
  border: 1px solid rgba(16, 18, 25, 0.075);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
}

.hx-home-main > .hx-grid--3 .hx-card {
  min-height: 166px;
  padding: 24px;
  border: 0;
  border-right: 1px solid var(--hx-line);
  border-radius: 0;
  background: transparent;
}

.hx-home-main > .hx-grid--3 .hx-card:last-child {
  border-right: 0;
}

.hx-metric__icon {
  width: 30px;
  height: 30px;
  margin-bottom: 23px;
  border-radius: 9px;
  color: var(--hx-ink);
  background: #f0f1f4;
}

.hx-metric__value {
  font-size: 26px;
  font-weight: 700;
}

.hx-progress {
  height: 5px;
  background: #e8e9ed;
}

.hx-progress > span {
  background: linear-gradient(90deg, #635bff, #9290ff);
}

.hx-home-side > .hx-card {
  overflow: hidden;
  border: 0;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(16, 18, 25, 0.07);
}

.hx-card__head {
  padding: 24px 24px 0;
}

.hx-card__body {
  padding: 22px 24px 24px;
}

.hx-summary__rows {
  gap: 0;
}

.hx-summary__row {
  min-height: 46px;
  align-items: center;
  border-top: 1px solid var(--hx-line);
}

.hx-summary__row:first-child {
  border-top: 0;
}

.hx-list__item {
  min-height: 68px;
}

.hx-table__action {
  color: var(--hx-ink);
}

.hx-button {
  border-radius: 13px;
  font-weight: 670;
}

.hx-button--primary {
  background: var(--hx-brand);
  box-shadow: none;
}

.hx-button--primary:hover {
  background: var(--hx-brand-strong);
}

.hx-button--secondary {
  border-color: var(--hx-line);
}

.hx-stepper {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hx-step {
  min-height: 52px;
  background: transparent;
}

.hx-step.is-active {
  color: var(--hx-ink);
}

.hx-plan {
  min-height: 360px;
  padding: 28px;
  border-color: rgba(16, 18, 25, 0.075);
  border-radius: 24px;
  box-shadow: none;
}

.hx-plan:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 91, 255, 0.28);
  box-shadow: 0 18px 52px rgba(24, 26, 38, 0.08);
}

.hx-plan.is-featured {
  border-color: rgba(16, 18, 25, 0.11);
  box-shadow: none;
}

.hx-period {
  min-height: 82px;
  border-radius: 16px;
}

.hx-input {
  min-height: 50px;
  border-radius: 14px;
  background: #fbfbfc;
}

.hx-auth {
  grid-template-columns: minmax(440px, 1.08fr) minmax(440px, 0.92fr);
  gap: 24px;
  padding: 24px;
  background: #f2f3f5;
}

.hx-auth__brand {
  min-height: calc(100vh - 48px);
  padding: 52px;
  border-radius: 30px;
  color: var(--hx-ink);
  background:
    radial-gradient(circle at 18% 16%, rgba(122, 116, 255, 0.23), transparent 25rem),
    radial-gradient(circle at 90% 90%, rgba(56, 205, 179, 0.17), transparent 24rem),
    linear-gradient(145deg, #f0f0ff, #eef8f5 72%);
}

.hx-auth__brand::after {
  border-color: rgba(99, 91, 255, 0.09);
  box-shadow:
    0 0 0 56px rgba(99, 91, 255, 0.018),
    0 0 0 112px rgba(99, 91, 255, 0.012);
}

.hx-auth__brand .hx-brand,
.hx-auth__brand .hx-brand__copy small {
  color: var(--hx-ink);
}

.hx-auth__message h2 {
  font-size: clamp(40px, 3.8vw, 54px);
  font-weight: 620;
}

.hx-auth__message p {
  color: var(--hx-muted);
}

.hx-auth__brand-foot {
  color: rgba(77, 71, 220, 0.48);
}

.hx-auth__panel {
  min-height: calc(100vh - 48px);
  padding: 48px;
  border-radius: 30px;
  background: #fff;
}

.hx-auth__form {
  width: min(420px, 100%);
}

@media (min-width: 761px) and (max-width: 1040px) {
  .hx-auth {
    display: block;
    min-height: 100vh;
    padding: 16px;
  }

  .hx-auth__brand {
    min-height: 280px;
    padding: 36px;
    border-radius: 24px 24px 0 0;
  }

  .hx-auth__message {
    max-width: 620px;
    margin-top: 36px;
  }

  .hx-auth__message h2 {
    font-size: 42px;
  }

  .hx-auth__brand-foot {
    display: none;
  }

  .hx-auth__panel {
    min-height: auto;
    padding: 56px 36px 64px;
    border-radius: 0 0 24px 24px;
  }
}

.hx-order-hero,
.hx-help-card,
.hx-table-card,
.hx-checkout > .hx-card {
  border-radius: 24px;
}

.hx-hero .hx-button--primary {
  color: #fff;
  background: var(--hx-brand);
}

.hx-hero .hx-button--secondary {
  border-color: var(--hx-line);
  color: var(--hx-ink);
  background: #fff;
}

.hx-hero__actions:has(.hx-button) {
  display: flex;
}

.hx-detail-grid .hx-hero__actions {
  grid-template-columns: 1fr;
  margin-top: 16px;
}

.hx-modal--qr {
  width: min(420px, 100%);
  text-align: center;
}

.hx-modal--qr > p {
  max-width: 330px;
  margin-right: auto;
  margin-left: auto;
}

.hx-qr-frame {
  display: grid;
  width: min(300px, 100%);
  margin: 0 auto 22px;
  padding: 14px;
  place-items: center;
  border: 1px solid var(--hx-line);
  border-radius: 18px;
  background: #fff;
}

.hx-qr-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.hx-modal--qr .hx-modal__actions {
  justify-content: center;
}

.hx-detail-grid .hx-client {
  grid-column: 1 / -1;
  min-height: 58px;
  border-color: var(--hx-line);
  color: var(--hx-ink);
  background: #f8f8fa;
  backdrop-filter: none;
}

.hx-detail-grid .hx-client:hover {
  border-color: rgba(99, 91, 255, 0.3);
  background: #fff;
  box-shadow: 0 10px 26px rgba(24, 26, 38, 0.07);
}

.hx-detail-grid .hx-client__icon {
  color: var(--hx-brand-strong);
  background: var(--hx-brand-soft);
}

.hx-detail-grid .hx-client small {
  color: var(--hx-muted);
}

.hx-detail-grid .hx-client__arrow {
  color: var(--hx-faint);
}

@media (max-width: 1060px) {
  .hx-home-layout {
    grid-template-columns: 1fr;
  }

  .hx-home-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hx-hero__signal {
    opacity: 0.56;
  }
}

@media (max-width: 760px) {
  body {
    background: #f6f6f8;
  }

  .hx-shell {
    padding-bottom: 90px;
  }

  .hx-topbar {
    height: 60px;
  }

  .hx-topbar__inner {
    width: calc(100% - 28px);
  }

  .hx-main {
    width: calc(100% - 24px);
    padding-top: 30px;
  }

  .hx-page-head {
    gap: 16px;
    margin-bottom: 24px;
  }

  .hx-page-head h1,
  .hx-auth__form h1 {
    font-size: 34px;
  }

  .hx-service-pill {
    min-height: 30px;
  }

  .hx-home-side {
    grid-template-columns: 1fr;
  }

  .hx-hero {
    min-height: 400px;
    padding: 16px 0 4px;
    border-radius: 0;
  }

  .hx-hero h1 {
    max-width: 330px;
    font-size: 38px;
  }

  .hx-hero__signal {
    top: 54px;
    right: -34px;
    width: 176px;
    height: 176px;
    opacity: 0.46;
  }

  .hx-hero__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 28px;
  }

  .hx-client {
    min-height: 72px;
    padding: 0 12px;
  }

  .hx-client__arrow {
    display: none;
  }

  .hx-home-main > .hx-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hx-home-main > .hx-grid--3 .hx-card {
    min-height: 144px;
    border-right: 0;
    border-top: 1px solid var(--hx-line);
  }

  .hx-home-main > .hx-grid--3 .hx-card:first-child {
    grid-column: 1 / -1;
    border-top: 0;
  }

  .hx-home-main > .hx-grid--3 .hx-card:nth-child(2) {
    border-right: 1px solid var(--hx-line);
  }

  .hx-mobile-nav {
    min-height: 62px;
    border: 0;
    border-radius: 21px;
    background: rgba(255, 255, 255, 0.93);
    box-shadow: 0 16px 42px rgba(20, 22, 31, 0.14);
  }

  .hx-mobile-nav__item {
    position: relative;
    background: transparent;
  }

  .hx-mobile-nav__item.is-active {
    color: var(--hx-ink);
    background: transparent;
  }

  .hx-mobile-nav__item.is-active::after {
    position: absolute;
    bottom: 3px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--hx-brand);
    content: "";
  }

  .hx-auth {
    display: block;
    min-height: 100vh;
    padding: 0;
    background: #fff;
  }

  .hx-auth__brand {
    min-height: 210px;
    padding: 26px 24px;
    border-radius: 0 0 30px 30px;
  }

  .hx-auth__message {
    margin-top: 34px;
  }

  .hx-auth__message h2 {
    font-size: 31px;
  }

  .hx-auth__panel {
    min-height: auto;
    padding: 36px 24px 48px;
    border-radius: 0;
  }
}

@media (max-width: 420px) {
  .hx-main {
    padding-top: 24px;
  }

  .hx-page-head h1,
  .hx-auth__form h1 {
    font-size: 31px;
  }

  .hx-page-head p {
    margin-top: 9px;
  }

  .hx-hero {
    min-height: 392px;
    padding: 10px 0 2px;
  }

  .hx-hero h1 {
    font-size: 34px;
  }

  .hx-hero__topline {
    margin-bottom: 24px;
  }

  .hx-hero__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hx-client {
    min-height: 68px;
    gap: 9px;
    padding: 0 10px;
  }

  .hx-client__icon {
    width: 31px;
    height: 31px;
    border-radius: 9px;
    font-size: 10px;
  }

  .hx-client strong {
    font-size: 11px;
  }

  .hx-client small {
    font-size: 8px;
  }

  .hx-hero__note {
    align-items: flex-start;
    font-size: 10px;
  }
}

/* 0.4.0 account, recovery, and settings experience; 0.5.1 same-origin QR and responsive polish */
.hx-avatar.is-active {
  color: var(--hx-brand-strong);
  background: var(--hx-brand-soft);
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.1);
}

.hx-inline-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.hx-inline-field .hx-button {
  min-width: 116px;
  white-space: nowrap;
}

.hx-auth__aux {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.hx-auth__aux button,
.hx-form-note a {
  border: 0;
  color: var(--hx-brand-strong);
  background: transparent;
  font: inherit;
  font-weight: 680;
  text-decoration: none;
}

.hx-auth__aux button:hover,
.hx-form-note a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hx-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 24px;
}

.hx-settings-main,
.hx-settings-side {
  display: grid;
  gap: 20px;
}

.hx-settings-section {
  overflow: hidden;
}

.hx-settings-section__head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--hx-line);
}

.hx-settings-section__head > span {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: var(--hx-brand-strong);
  background: var(--hx-brand-soft);
}

.hx-settings-section__head h2 {
  margin: 0;
  color: var(--hx-ink);
  font-size: 16px;
  letter-spacing: -0.018em;
}

.hx-settings-section__head p {
  margin: 4px 0 0;
  color: var(--hx-muted);
  font-size: 12px;
}

.hx-settings-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 24px;
}

.hx-settings-profile__avatar {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 17px;
  color: var(--hx-brand-strong);
  background: var(--hx-brand-soft);
  font-size: 15px;
  font-weight: 800;
}

.hx-settings-profile > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.hx-settings-profile small,
.hx-settings-profile em {
  color: var(--hx-muted);
  font-size: 11px;
  font-style: normal;
}

.hx-settings-profile strong {
  overflow: hidden;
  color: var(--hx-ink);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hx-settings-form {
  padding: 24px;
}

.hx-settings-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hx-settings-form__row .hx-field + .hx-field {
  margin-top: 0;
}

.hx-settings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}

.hx-settings-actions p {
  margin: 0;
  color: var(--hx-muted);
  font-size: 11px;
}

.hx-session-list {
  display: grid;
  padding: 4px 24px 12px;
}

.hx-session {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 78px;
  border-bottom: 1px solid var(--hx-line);
}

.hx-session:last-child {
  border-bottom: 0;
}

.hx-session-more {
  margin: 8px 0 4px;
  border-top: 1px solid var(--hx-line);
}

.hx-session-more summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  color: var(--hx-brand-deep);
  cursor: pointer;
  font-size: 11px;
  font-weight: 720;
  list-style: none;
  transition: color 160ms ease, background 160ms ease;
}

.hx-session-more summary::-webkit-details-marker {
  display: none;
}

.hx-session-more summary::after {
  width: 7px;
  height: 7px;
  margin-left: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.hx-session-more[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.hx-session-more summary:hover {
  color: var(--hx-brand);
  background: rgba(99, 91, 255, 0.045);
}

.hx-session-more summary:focus-visible {
  border-radius: 10px;
  outline: 3px solid rgba(99, 91, 255, 0.2);
  outline-offset: 2px;
}

.hx-session__icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: var(--hx-ink);
  background: #f0f1f4;
}

.hx-session__copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.hx-session__copy strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--hx-ink);
  font-size: 13px;
}

.hx-session__copy em {
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--hx-success);
  background: var(--hx-success-soft);
  font-size: 9px;
  font-style: normal;
  font-weight: 760;
}

.hx-session__copy small {
  overflow: hidden;
  color: var(--hx-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hx-settings-empty {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 24px;
  color: var(--hx-muted);
}

.hx-settings-empty > div {
  display: grid;
  gap: 4px;
}

.hx-settings-empty strong {
  color: var(--hx-ink);
  font-size: 13px;
}

.hx-settings-empty span {
  font-size: 11px;
}

.hx-settings-side .hx-settings-section > form {
  display: grid;
  gap: 14px;
  padding: 20px 24px 24px;
}

.hx-setting-toggle {
  position: relative;
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
}

.hx-setting-toggle + .hx-setting-toggle {
  border-top: 1px solid var(--hx-line);
}

.hx-setting-toggle > span {
  display: grid;
  gap: 4px;
}

.hx-setting-toggle strong {
  color: var(--hx-ink);
  font-size: 12px;
}

.hx-setting-toggle small {
  color: var(--hx-muted);
  font-size: 10px;
}

.hx-setting-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.hx-setting-toggle i {
  position: relative;
  width: 40px;
  height: 24px;
  flex: 0 0 auto;
  border: 1px solid var(--hx-line-strong);
  border-radius: 999px;
  background: #e7e8ec;
  transition: background 160ms ease, border-color 160ms ease;
}

.hx-setting-toggle i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(16, 18, 25, 0.18);
  content: "";
  transition: transform 160ms ease;
}

.hx-setting-toggle input:checked + i {
  border-color: var(--hx-brand);
  background: var(--hx-brand);
}

.hx-setting-toggle input:checked + i::after {
  transform: translateX(16px);
}

.hx-setting-toggle input:focus-visible + i {
  outline: 3px solid rgba(99, 91, 255, 0.24);
  outline-offset: 2px;
}

.hx-settings-section--danger {
  border-color: rgba(179, 77, 88, 0.2);
}

.hx-settings-section--danger .hx-settings-section__head > span {
  color: var(--hx-danger);
  background: var(--hx-danger-soft);
}

.hx-settings-logout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 4px 0;
}

.hx-settings-logout > div {
  display: grid;
  gap: 4px;
}

.hx-settings-logout strong {
  color: var(--hx-ink);
  font-size: 12px;
}

.hx-settings-logout span {
  color: var(--hx-muted);
  font-size: 10px;
}

@media (max-width: 980px) {
  .hx-settings-layout {
    grid-template-columns: 1fr;
  }

  .hx-settings-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hx-settings-logout {
    grid-column: 1 / -1;
  }
}

@media (min-width: 761px) and (max-width: 1040px) {
  .hx-hero__actions {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hx-inline-field {
    grid-template-columns: 1fr;
  }

  .hx-inline-field .hx-button {
    min-height: 44px;
  }

  .hx-settings-side,
  .hx-settings-form__row {
    grid-template-columns: 1fr;
  }

  .hx-settings-profile {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .hx-settings-profile .hx-button {
    grid-column: 1 / -1;
  }

  .hx-settings-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hx-settings-actions .hx-button {
    width: 100%;
  }

  .hx-session {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 14px 0;
  }

  .hx-session .hx-button {
    grid-column: 2;
    justify-self: start;
  }

  .hx-session-more summary {
    min-height: 54px;
  }

  .hx-settings-logout {
    align-items: flex-start;
    flex-direction: column;
  }

  .hx-hero__actions .hx-client--app,
  .hx-hero__actions .hx-client--utility {
    grid-column: auto;
  }

  .hx-hero__actions .hx-client:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}
