.x-screen {
  --x-ink: var(--ink, #183b50);
  --x-muted: #6f8291;
  --x-blue: #247fe2;
  --x-blue-dark: #1c5fac;
  --x-teal: #2fbf9f;
  --x-gold: #f4b63d;
  --x-red: #dc6970;
  --x-line: #dbe8ee;
  --x-pale: #f4f9fb;
  color: var(--x-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.x-screen *,
.x-screen *::before,
.x-screen *::after {
  box-sizing: border-box;
}

.x-screen button,
.x-screen input,
.x-screen select,
.x-screen textarea {
  font: inherit;
}

.x-screen h1,
.x-screen h2,
.x-screen h3,
.x-screen p {
  margin-top: 0;
}

.x-screen h1,
.x-screen h2,
.x-screen h3 {
  letter-spacing: -0.025em;
}

.x-public {
  min-height: 100vh;
  background: #f7fbfc;
}

.x-public.x-landing {
  display: flex;
  flex-direction: column;
}

.x-public-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 36px;
}

.x-public-nav .x-brand > span:last-child {
  display: grid;
  gap: 0;
}

.x-public-nav .x-brand strong {
  font-size: 17px;
  font-weight: 760;
}

.x-public-nav .x-brand-mark {
  width: 40px;
  height: 40px;
}

.x-public-nav .x-brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.x-public-nav .x-brand-copy {
  color: var(--x-ink);
  font-size: 17px;
  line-height: 1.03;
  letter-spacing: -.03em;
}

.x-public-nav .x-brand-copy span {
  color: var(--x-ink);
  font-size: 17px;
  font-weight: 520;
  line-height: 1.03;
}

.x-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--x-ink);
  text-decoration: none;
  white-space: nowrap;
}

.x-brand > span:first-child,
.x-brand > svg,
.x-brand > span[aria-hidden="true"] {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffc94f;
  font-size: 27px;
}

.x-brand strong,
.x-brand small {
  display: block;
  line-height: 1.05;
}

.x-brand strong {
  font-size: 16px;
  font-weight: 800;
}

.x-brand small {
  margin-top: 3px;
  color: var(--x-muted);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.x-public-links,
.x-hero-actions,
.x-auth-top,
.x-form-row,
.x-action-row,
.x-subscription-actions,
.x-failed-actions,
.x-modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.x-public-links .x-link-button,
.x-foot-links .x-link-button {
  margin: 0 12px;
}

.x-link-button,
.x-inline-link,
.x-back-link,
.x-table-link {
  padding: 0;
  border: 0;
  color: var(--x-blue);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.x-link-button:hover,
.x-inline-link:hover,
.x-back-link:hover,
.x-table-link:hover {
  color: var(--x-blue-dark);
}

.x-btn {
  min-height: 42px;
  border-radius: 12px;
  padding: 10px 17px;
  box-shadow: none;
  white-space: nowrap;
}

.x-btn:disabled {
  cursor: not-allowed;
  opacity: .46;
}

.x-btn.secondary {
  color: var(--x-blue-dark);
  border: 1px solid #c8ddea;
  background: #fff;
}

.x-btn.secondary:hover {
  border-color: #8ebcdb;
  background: #f3f9fd;
}

.x-landing-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 36px 20px;
}

.x-landing-main .x-public-foot {
  margin-top: auto;
}

.x-hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(380px, 1.08fr);
  min-height: 500px;
  overflow: hidden;
  border: 1px solid #dfedf1;
  border-radius: 30px;
  background: linear-gradient(112deg, #edf8fc 0%, #fdfaf1 100%);
}

.x-hero-copy {
  align-self: center;
  padding: 64px 0 64px 68px;
}

.x-eyebrow,
.x-modal-eyebrow {
  display: none;
  color: #5d849b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.x-hero h1 {
  max-width: 560px;
  margin: 16px 0 20px;
  color: var(--x-ink);
  font-size: clamp(42px, 5vw, 74px);
  line-height: .98;
}

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

.x-hero-lead {
  max-width: 470px;
  margin: -4px 0 28px;
  color: #52728a;
  font-size: 16px;
  line-height: 1.55;
}

.x-hero-actions {
  flex-wrap: wrap;
}

.x-hero-art {
  position: relative;
  display: grid;
  min-height: 500px;
  place-items: center;
  overflow: hidden;
}

.x-art-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: #f7d66e;
  filter: blur(34px);
  opacity: .25;
}

.x-hero-art img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  height: 100%;
  max-height: 500px;
  object-fit: contain;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 48%, transparent 74%);
  mask-image: radial-gradient(ellipse at center, #000 48%, transparent 74%);
}

.x-value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 22px 0;
}

.x-value-card {
  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  row-gap: 6px;
  min-height: 100px;
  padding: 20px 22px;
  border: 1px solid #e1edf0;
  border-radius: 18px;
  background: #fff;
}

.x-value-card > span:last-child {
  grid-column: 2;
  color: var(--x-muted);
  font-size: 13px;
  line-height: 1.45;
}

.x-value-icon {
  display: grid;
  width: 32px;
  height: 32px;
  grid-row: auto;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--x-blue);
  font-size: 18px;
}

.x-value-card:nth-child(2) .x-value-icon {
  background: var(--x-teal);
}

.x-value-card:nth-child(3) .x-value-icon {
  background: var(--x-gold);
}

.x-value-card strong {
  align-self: center;
  font-size: 15px;
}

.x-pricing-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 124px;
  padding: 28px 30px;
  border: 1px solid #d6e9ee;
  border-radius: 20px;
  background: #eaf7f6;
}

.x-pricing-band h2 {
  margin: 8px 0 4px;
  font-size: 25px;
}

.x-pricing-band p {
  margin-bottom: 0;
}

.x-price {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.x-price strong {
  font-size: 31px;
}

.x-price > span {
  margin-right: 8px;
  color: var(--x-muted);
  font-size: 13px;
}

.x-public-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 0 12px;
  color: var(--x-muted);
  font-size: 12px;
}

.x-public-foot > div:first-child strong,
.x-public-foot > div:first-child span {
  display: block;
}

.x-public-foot > div:first-child strong {
  color: var(--x-ink);
  font-size: 14px;
}

.x-public-foot > div:first-child span {
  margin-top: 4px;
}

.x-foot-links {
  display: flex;
}

.x-auth-page {
  min-height: 100vh;
  background: #f5fafc;
}

.x-auth-layout {
  display: grid;
  grid-template-columns: minmax(360px, .8fr) minmax(470px, 1.2fr);
  min-height: 100vh;
}

.x-auth-aside {
  position: relative;
  overflow: hidden;
  padding: 34px 46px;
  color: #fff;
  background: linear-gradient(147deg, #173d54 0%, #226482 100%);
}

.x-auth-aside .x-brand {
  color: #fff;
}

.x-auth-aside .x-brand small {
  color: #b5d3df;
}

.x-auth-quote {
  position: relative;
  z-index: 1;
  max-width: 380px;
  margin: 22vh auto 0;
}

.x-quote-mark {
  display: block;
  color: #ffd45e;
  font-size: 76px;
  line-height: .5;
}

.x-auth-quote h2 {
  margin: 28px 0 16px;
  font-size: 35px;
  line-height: 1.12;
}

.x-auth-quote p {
  max-width: 310px;
  color: #b7d0dc;
  line-height: 1.55;
}

.x-auth-orbit {
  position: absolute;
  right: -80px;
  bottom: -110px;
  display: grid;
  width: 280px;
  height: 280px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  color: #ffda61;
  font-size: 45px;
  box-shadow: 0 0 0 28px rgba(255, 255, 255, .03), 0 0 0 56px rgba(255, 255, 255, .025);
}

.x-auth-card {
  width: min(560px, calc(100% - 80px));
  margin: auto;
  padding: 36px 0;
}

.x-auth-top {
  justify-content: flex-end;
  margin-bottom: 16vh;
  color: var(--x-muted);
  font-size: 13px;
}

.x-auth-top .x-brand {
  margin-right: auto;
}

.x-auth-heading {
  margin-bottom: 30px;
}

.x-auth-heading h1 {
  margin: 12px 0 8px;
  font-size: 39px;
}

.x-auth-heading p {
  max-width: 440px;
  margin-bottom: 0;
  line-height: 1.55;
}

.x-field {
  position: relative;
  margin-bottom: 16px;
}

.x-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--x-ink);
  font-size: 13px;
  font-weight: 700;
}

.x-field input,
.x-field select,
.x-field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--x-line);
  border-radius: 11px;
  outline: none;
  padding: 11px 13px;
  color: var(--x-ink);
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.x-field textarea {
  min-height: 94px;
  resize: vertical;
}

.x-field input:focus,
.x-field select:focus,
.x-field textarea:focus {
  border-color: #7cb9dc;
  box-shadow: 0 0 0 3px rgba(36, 127, 226, .11);
}

.x-field input[aria-invalid="true"],
.x-field select[aria-invalid="true"],
.x-field textarea[aria-invalid="true"] {
  border-color: var(--x-red);
  box-shadow: 0 0 0 3px rgba(220, 105, 112, .09);
}

.x-field-help {
  display: block;
  margin-top: 6px;
  font-size: 11px;
}

.x-error {
  display: block;
  min-height: 0;
  margin-top: 5px;
  color: var(--x-red);
  font-size: 11px;
  line-height: 1.35;
}

.x-submit-wide {
  width: 100%;
  margin-top: 8px;
}

.x-form-row {
  justify-content: space-between;
  margin: 8px 0 20px;
  font-size: 12px;
}

.x-check,
.x-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--x-muted);
  cursor: pointer;
  font-size: 12px;
  line-height: 1.45;
}

.x-check input,
.x-consent input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--x-blue);
}

.x-auth-demo {
  margin: 21px 0 0;
  color: #7e94a0;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.x-register-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 34px 40px;
}

.x-register-wrap > .x-auth-top {
  margin-bottom: 58px;
}

.x-register-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.x-register-heading h1 {
  margin: 12px 0 9px;
  font-size: 42px;
}

.x-register-heading p {
  max-width: 670px;
  margin-bottom: 0;
  line-height: 1.55;
}

.x-register-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.x-form-card {
  padding: 25px;
  border: 1px solid #dfebef;
  border-radius: 18px;
  background: #fff;
}

.x-card-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.x-card-title h2 {
  margin: 2px 0 3px;
  font-size: 18px;
}

.x-card-title p {
  margin: 0;
  font-size: 12px;
}

.x-step {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: var(--x-blue-dark);
  background: #e8f4fb;
  font-size: 11px;
  font-weight: 800;
}

.x-form-grid {
  column-gap: 13px;
}

.x-register-bottom {
  margin-top: 18px;
  padding: 20px 24px;
  border: 1px solid #dbe9ed;
  border-radius: 16px;
  background: #eef9f8;
}

.x-register-bottom > .x-error {
  margin: 7px 0 0 24px;
}

.x-consent {
  color: var(--x-ink);
}

.x-inline-link {
  font-size: inherit;
}

.x-register-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 17px;
  padding-top: 17px;
  border-top: 1px solid #d8ecea;
}

.x-register-submit > div strong,
.x-register-submit > div span {
  display: block;
}

.x-register-submit > div strong {
  font-size: 17px;
}

.x-register-submit > div span {
  margin-top: 3px;
  color: var(--x-muted);
  font-size: 11px;
}

.x-demo-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #758b95;
  font-size: 11px;
  line-height: 1.45;
}

.x-register-wrap > .x-demo-note {
  margin: 15px 2px 0;
}

.x-demo-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--x-teal);
}

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

.x-head-copy { display: none; }

.x-kicker {
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.x-page-head h1 {
  margin: 0;
  font-size: 34px;
}

.x-head-copy {
  max-width: 640px;
  margin: 8px 0 0;
  line-height: 1.5;
}

.x-app-screen {
  padding-bottom: 30px;
}

.x-subscription-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(360px, .76fr);
  gap: 18px;
}

.x-subscription-main,
.x-history-card,
.x-profile-card,
.x-admin-panel,
.x-gifts-info,
.x-partner-card,
.x-qr-card,
.x-failed-card {
  padding: 24px;
}

.x-subscription-status {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid #d9eee8;
  border-radius: 16px;
  background: #effaf5;
}

.x-subscription-status.is-failed {
  border-color: #f0d6d5;
  background: #fff6f4;
}

.x-subscription-status h2 {
  margin: 9px 0 5px;
  font-size: 22px;
}

.x-subscription-status p {
  margin-bottom: 0;
}

.x-status-block {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.x-status-block > strong {
  font-size: 26px;
}

.x-status-block small {
  color: var(--x-muted);
  font-size: 12px;
  font-weight: 500;
}

.x-status,
.x-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800;
}

.x-status.success {
  color: #168b6b;
  background: #dff7ec;
}

.x-status.failed {
  color: #b64d56;
  background: #fde3e1;
}

.x-badge {
  color: #28709a;
  background: #e9f4fb;
}

.x-subscription-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
  padding: 0 2px;
}

.x-subscription-meta > div {
  padding-right: 14px;
  border-right: 1px solid var(--x-line);
}

.x-subscription-meta > div:last-child {
  border-right: 0;
}

.x-subscription-meta span,
.x-subscription-meta strong {
  display: block;
}

.x-subscription-meta span {
  margin-bottom: 5px;
  font-size: 11px;
}

.x-subscription-meta strong {
  font-size: 13px;
}

.x-subscription-actions {
  flex-wrap: wrap;
  margin-top: 20px;
}

.x-subscription-main > .x-demo-note {
  margin-top: 19px;
}

.x-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.x-panel-head h2,
.x-history-card h2 {
  margin: 0 0 5px;
  font-size: 18px;
}

.x-panel-head p,
.x-history-card p {
  margin-bottom: 0;
  font-size: 12px;
}

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

.x-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.x-table th,
.x-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #edf2f3;
  text-align: left;
  white-space: nowrap;
}

.x-table th {
  color: #78909b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.x-table tr:last-child td {
  border-bottom: 0;
}

.x-table-link {
  font-size: 12px;
}

.x-payment-page {
  min-height: 100vh;
  padding: 28px 36px 50px;
  background: #f5fafc;
}

.x-payment-wrap {
  max-width: 1000px;
  margin: 0 auto;
}

.x-payment-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 55px;
}

.x-secure-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #66808e;
  font-size: 12px;
}

.x-payment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 20px;
  align-items: start;
}

.x-gateway-card {
  padding: 36px;
}

.x-gateway-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 45px;
}

.x-gateway-symbol {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--x-blue);
  font-size: 20px;
}

.x-gateway-logo strong,
.x-gateway-logo small {
  display: block;
}

.x-gateway-logo small {
  margin-top: 3px;
  color: var(--x-muted);
  font-size: 10px;
}

.x-gateway-card h1 {
  margin: 12px 0 9px;
  font-size: 34px;
}

.x-gateway-card > p {
  max-width: 600px;
  line-height: 1.55;
}

.x-payment-steps {
  display: grid;
  gap: 10px;
  margin: 26px 0 20px;
}

.x-payment-step {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border: 1px solid var(--x-line);
  border-radius: 12px;
}

.x-payment-step > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  color: var(--x-blue-dark);
  background: #eaf5fb;
  font-size: 11px;
  font-weight: 800;
}

.x-payment-step strong,
.x-payment-step small {
  display: block;
}

.x-payment-step small {
  margin-top: 3px;
  color: var(--x-muted);
  font-size: 11px;
}

.x-payment-step i {
  margin-left: auto;
  color: var(--x-teal);
  font-style: normal;
  font-weight: 800;
}

.x-payment-demo-block {
  display: flex;
  gap: 10px;
  padding: 13px 15px;
  border-radius: 12px;
  background: #f4f8f9;
}

.x-payment-demo-block strong,
.x-payment-demo-block p {
  display: block;
}

.x-payment-demo-block p {
  margin: 4px 0 0;
  color: var(--x-muted);
  font-size: 11px;
}

.x-payment-actions {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}

.x-payment-actions .x-btn {
  width: 100%;
  white-space: normal;
}

.x-back-link {
  display: block;
  margin-top: 21px;
  font-size: 12px;
}

.x-payment-summary {
  padding: 27px;
  border: 1px solid #d9eaf0;
  border-radius: 18px;
  background: #edf8f9;
}

.x-summary-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 12px;
  color: #fff;
  background: var(--x-teal);
  font-size: 19px;
}

.x-payment-summary h2 {
  margin-bottom: 24px;
  font-size: 19px;
}

.x-summary-line,
.x-summary-total {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  font-size: 12px;
}

.x-summary-line {
  border-bottom: 1px solid #d6e9ea;
}

.x-summary-total {
  margin-top: 8px;
  font-size: 13px;
}

.x-summary-total strong {
  font-size: 20px;
}

.x-payment-summary > p {
  margin: 19px 0 0;
  font-size: 11px;
  line-height: 1.5;
}

.x-failed-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 760px;
  border: 1px solid #f0d8d6;
  background: #fff8f6;
}

.x-failed-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 15px;
  color: #a74b54;
  background: #fde4e0;
  font-size: 24px;
  font-weight: 800;
}

.x-failed-card h2 {
  margin: 10px 0 8px;
  font-size: 25px;
}

.x-failed-card p {
  max-width: 560px;
  line-height: 1.55;
}

.x-failed-actions {
  flex-wrap: wrap;
  margin-top: 22px;
}

.x-profile-form {
  max-width: 980px;
}

.x-profile-intro {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e7eff1;
}

.x-profile-intro h2 {
  margin: 8px 0 4px;
  font-size: 22px;
}

.x-profile-intro p {
  margin-bottom: 0;
  font-size: 12px;
}

.x-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #78c7e8, #377dcc);
  font-weight: 800;
}

.x-avatar-large {
  width: 58px;
  height: 58px;
  font-size: 16px;
}

.x-profile-section {
  padding: 24px 0 6px;
}

.x-profile-section + .x-profile-section {
  border-top: 1px solid #e7eff1;
}

.x-readonly {
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 1px dashed #cbdde4;
  border-radius: 11px;
  padding: 10px 13px;
  color: var(--x-muted);
  background: #f7fbfc;
  font-size: 13px;
}

.x-profile-actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid #e7eff1;
}

.x-profile-actions .x-demo-note {
  max-width: 430px;
}

.x-balance-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 18px 23px;
  border: 1px solid #d9eceb;
  background: #eff9f7;
}

.x-balance-strip > div,
.x-balance-strip > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

.x-balance-strip > div:last-child {
  gap: 10px;
}

.x-balance-strip span,
.x-balance-strip strong {
  display: block;
}

.x-balance-strip strong {
  margin-top: 3px;
  font-size: 22px;
}

.x-balance-symbol {
  display: grid !important;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--x-teal);
  font-size: 19px;
}

.x-balance-strip > div:last-child > span {
  font-size: 11px;
}

.x-gifts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}

.x-gift-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.x-gift-illustration {
  display: grid;
  height: 100px;
  place-items: center;
  color: #fff;
  font-size: 46px;
  font-weight: 800;
}

.x-gift-illustration svg {
  width: 49px;
  height: 49px;
}

.x-gift-mint .x-gift-illustration {
  background: #76cdb5;
}

.x-gift-blue .x-gift-illustration {
  background: #6fa9df;
}

.x-gift-peach .x-gift-illustration {
  background: #f2af86;
}

.x-gift-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 19px 17px;
}

.x-gift-content h2 {
  margin: 8px 0 5px;
  font-size: 19px;
}

.x-gift-content p {
  min-height: 38px;
  margin-bottom: 16px;
  font-size: 12px;
  line-height: 1.5;
}

.x-gift-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.x-gift-bottom > strong {
  color: var(--x-blue-dark);
  font-size: 15px;
}

.x-gifts-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  background: #f9fcfc;
}

.x-gifts-info > div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.x-info-icon {
  display: grid !important;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--x-blue);
  font-size: 17px;
}

.x-gifts-info h2 {
  margin: 2px 0 5px;
  font-size: 16px;
}

.x-gifts-info p {
  max-width: 650px;
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.5;
}

.x-partner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  gap: 18px;
}

.x-partner-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.x-partner-head h2 {
  margin: 9px 0 5px;
  font-size: 23px;
}

.x-partner-head p {
  margin-bottom: 0;
  font-size: 12px;
}

.x-partner-badge {
  display: grid;
  width: 55px;
  height: 55px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px;
  color: #98701b;
  background: #fff1c9;
  font-size: 17px;
  font-weight: 800;
}

.x-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  border-top: 1px solid #e7eff1;
}

.x-code-row span,
.x-code-row strong {
  display: block;
}

.x-code-row span {
  margin-bottom: 5px;
  font-size: 11px;
}

.x-code-row strong {
  color: var(--x-blue-dark);
  font-size: 16px;
}

.x-breakable {
  overflow-wrap: anywhere;
}

.x-partner-note {
  margin-top: 17px;
  border-radius: 10px;
  padding: 11px 12px;
  color: #6f858d;
  background: #f5f9fa;
  font-size: 11px;
  line-height: 1.45;
}

.x-qr-card {
  display: flex;
  align-items: center;
  gap: 22px;
  background: #f1f8fb;
}

.x-qr-wrap {
  display: grid;
  width: 150px;
  height: 150px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: #fff;
}

.x-qr-wrap svg {
  width: 136px;
  height: 136px;
}

.x-qr-card h2 {
  margin: 9px 0 6px;
  font-size: 20px;
}

.x-qr-card p {
  margin-bottom: 11px;
  font-size: 12px;
  line-height: 1.5;
}

.x-partner-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  margin-top: 18px;
}

.x-partner-steps > div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  row-gap: 4px;
  padding: 17px 18px;
  border: 1px solid #e1ecef;
  border-radius: 15px;
  background: #fff;
}

.x-partner-steps > div > span {
  display: grid;
  width: 27px;
  height: 27px;
  grid-row: span 2;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--x-blue);
  font-size: 11px;
  font-weight: 800;
}

.x-partner-steps strong,
.x-partner-steps small {
  display: block;
}

.x-partner-steps strong {
  align-self: end;
  font-size: 13px;
}

.x-partner-steps small {
  color: var(--x-muted);
  font-size: 11px;
  line-height: 1.4;
}

.x-admin-tabs {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--x-line);
}

.x-admin-tab {
  position: relative;
  border: 0;
  padding: 12px 17px 13px;
  color: #748b95;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.x-admin-tab::after {
  position: absolute;
  right: 15px;
  bottom: -1px;
  left: 15px;
  height: 2px;
  border-radius: 2px;
  background: transparent;
  content: "";
}

.x-admin-tab.is-active {
  color: var(--x-blue-dark);
}

.x-admin-tab.is-active::after {
  background: var(--x-blue);
}

.x-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 18px;
}

.x-admin-panel h2 {
  margin: 0 0 5px;
  font-size: 18px;
}

.x-admin-panel .x-field:last-of-type {
  margin-bottom: 15px;
}

.x-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  border: 1px solid var(--x-line);
  border-radius: 11px;
  padding: 0 12px;
  background: #fafdfe;
}

.x-search > span {
  display: grid;
  color: #78a1b3;
  place-items: center;
}

.x-search input {
  width: 100%;
  min-height: 42px;
  border: 0;
  outline: 0;
  color: var(--x-ink);
  background: transparent;
  font-size: 12px;
}

.x-table td strong,
.x-table td small {
  display: block;
}

.x-table td small {
  margin-top: 3px;
  color: var(--x-muted);
  font-size: 10px;
}

.x-points {
  color: var(--x-blue-dark);
  font-weight: 800;
}

.x-empty {
  border: 1px dashed #cddfe6;
  border-radius: 11px;
  padding: 20px;
  color: var(--x-muted);
  font-size: 12px;
  text-align: center;
}

.x-list {
  display: grid;
  gap: 2px;
}

.x-list-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid #edf2f3;
}

.x-list-row:last-child {
  border-bottom: 0;
}

.x-list-mark {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: var(--x-blue);
  background: #eef7fc;
}

.x-list-row > div {
  min-width: 0;
  flex: 1;
}

.x-list-row strong,
.x-list-row small {
  display: block;
}

.x-list-row small {
  margin-top: 4px;
  color: var(--x-muted);
  font-size: 11px;
}

.x-test-row .x-list-mark {
  color: var(--x-teal);
  background: #e8f8f3;
}

.x-finance-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin: 4px 0 20px;
}

.x-finance-summary > div {
  padding: 14px;
  border-radius: 12px;
  background: #f4f9fa;
}

.x-finance-summary span,
.x-finance-summary strong {
  display: block;
}

.x-finance-summary span {
  font-size: 10px;
}

.x-finance-summary strong {
  margin-top: 7px;
  font-size: 20px;
}

.x-notification-preview {
  min-height: 180px;
  border: 1px solid #d6e8ee;
  border-radius: 14px;
  padding: 20px;
  background: linear-gradient(140deg, #f1faff, #f6fcf8);
}

.x-preview-label {
  color: var(--x-blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.x-notification-preview h3 {
  margin: 18px 0 7px;
  font-size: 19px;
}

.x-notification-preview p {
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.x-notification-log {
  display: grid;
  gap: 5px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e7eff1;
  font-size: 11px;
}

.x-notification-log span {
  color: var(--x-muted);
}

.x-admin-page > .x-demo-note {
  margin-top: 16px;
}

.x-modal-copy {
  max-width: 510px;
  padding: 6px 2px;
}

.x-modal-copy h2 {
  margin: 12px 0 9px;
  font-size: 25px;
}

.x-modal-copy p {
  margin-bottom: 0;
  line-height: 1.6;
}

.x-modal-actions {
  justify-content: flex-end;
  margin-top: 23px;
}

.x-modal-note {
  margin-top: 17px;
  border-radius: 10px;
  padding: 12px;
  color: #708893;
  background: #f5f9fa;
  font-size: 11px;
  line-height: 1.5;
}

.x-contact-lines {
  display: grid;
  gap: 11px;
  margin-top: 19px;
}

.x-contact-lines > div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  row-gap: 3px;
  padding: 12px 0;
  border-top: 1px solid #edf2f3;
}

.x-contact-lines span {
  display: grid;
  width: 25px;
  height: 25px;
  grid-row: span 2;
  place-items: center;
  border-radius: 8px;
  color: var(--x-blue);
  background: #eaf5fb;
  font-size: 10px;
  font-weight: 800;
}

.x-contact-lines strong,
.x-contact-lines small {
  display: block;
}

.x-contact-lines small {
  color: var(--x-muted);
  font-size: 11px;
  line-height: 1.4;
}

.x-contact-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.x-contact-form .x-field {
  margin: 0;
}

.x-contact-form input,
.x-contact-form textarea {
  width: 100%;
  border: 1px solid var(--x-line);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--x-ink);
  background: #fff;
  font: inherit;
  font-size: 13px;
}

.x-contact-form input:focus,
.x-contact-form textarea:focus {
  outline: 2px solid rgba(31, 128, 231, .2);
  border-color: var(--x-blue);
}

.x-contact-form textarea {
  min-height: 82px;
  resize: vertical;
}

.x-contact-submit {
  justify-self: start;
  margin-top: 2px;
}

.x-contact-channels {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--x-line);
}

.x-contact-channels > strong {
  display: block;
  font-size: 12px;
}

.x-contact-channel-list {
  display: flex;
  gap: 9px;
  margin-top: 10px;
}

.x-contact-channel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--x-line);
  border-radius: 10px;
  padding: 7px 11px;
  color: var(--x-ink);
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.x-contact-channel:hover {
  border-color: #b9d6e4;
  background: #f7fbfd;
}

.x-contact-channel-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.x-recovery-tip {
  display: flex;
  gap: 10px;
  margin-top: 21px;
  border-radius: 12px;
  padding: 13px;
  background: #eef8f9;
}

.x-recovery-tip > span {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #8bc5ca;
  border-radius: 50%;
  color: #4f9ca6;
  font-size: 11px;
  font-weight: 800;
}

.x-recovery-tip p {
  margin: 0;
  color: #6c858e;
  font-size: 11px;
  line-height: 1.45;
}

@media (max-width: 1000px) {
  .x-public-nav,
  .x-landing-main {
    padding-right: 24px;
    padding-left: 24px;
  }

  .x-hero-copy {
    padding-left: 38px;
  }

  .x-register-wrap {
    padding-right: 24px;
    padding-left: 24px;
  }

  .x-subscription-layout,
  .x-payment-grid,
  .x-partner-layout,
  .x-admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .x-public-nav {
    align-items: flex-start;
    gap: 16px;
  }

  .x-public-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
  }

  .x-public-links .x-link-button,
  .x-foot-links .x-link-button {
    margin: 0 4px;
  }

  .x-hero {
    grid-template-columns: 1fr;
  }

  .x-hero-copy {
    padding: 42px 30px 20px;
  }

  .x-hero-art {
    min-height: 300px;
  }

  .x-hero-art img {
    max-height: 320px;
  }

  .x-value-grid,
  .x-register-columns,
  .x-gifts-grid,
  .x-partner-steps {
    grid-template-columns: 1fr;
  }

  .x-pricing-band,
  .x-public-foot,
  .x-balance-strip,
  .x-profile-actions,
  .x-gifts-info {
    align-items: flex-start;
    flex-direction: column;
  }

  .x-price {
    flex-wrap: wrap;
  }

  .x-auth-layout {
    grid-template-columns: 1fr;
  }

  .x-auth-aside {
    min-height: 230px;
    padding: 24px;
  }

  .x-auth-quote {
    margin: 48px 0 0;
  }

  .x-auth-quote h2 {
    margin: 15px 0 8px;
    font-size: 25px;
  }

  .x-auth-quote p,
  .x-auth-orbit {
    display: none;
  }

  .x-auth-card {
    width: min(560px, calc(100% - 48px));
  }

  .x-auth-top {
    margin-bottom: 48px;
  }

  .x-register-wrap {
    padding: 20px 17px 30px;
  }

  .x-register-wrap > .x-auth-top {
    margin-bottom: 38px;
  }

  .x-register-heading h1 {
    font-size: 32px;
  }

  .x-subscription-main,
  .x-history-card,
  .x-profile-card,
  .x-admin-panel,
  .x-gifts-info,
  .x-partner-card,
  .x-qr-card,
  .x-failed-card,
  .x-gateway-card {
    padding: 18px;
  }

  .x-subscription-status,
  .x-profile-intro,
  .x-failed-card,
  .x-qr-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .x-status-block {
    justify-items: start;
  }

  .x-subscription-meta {
    grid-template-columns: 1fr;
  }

  .x-subscription-meta > div {
    border-right: 0;
    border-bottom: 1px solid var(--x-line);
    padding: 10px 0;
  }

  .x-subscription-meta > div:last-child {
    border-bottom: 0;
  }

  .x-payment-page {
    padding: 20px 17px 35px;
  }

  .x-payment-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
  }

  .x-gateway-logo {
    margin-bottom: 30px;
  }

  .x-gateway-card h1 {
    font-size: 29px;
  }

  .x-profile-actions .x-action-row {
    width: 100%;
    justify-content: flex-end;
  }

  .x-page-head h1 {
    font-size: 29px;
  }

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

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

.x-auth-demo,
.x-demo-note,
.x-gifts-info,
.x-partner-note,
.x-partner-steps,
.x-profile-intro > div > p,
.x-partner-head > div > p,
.x-qr-card > div:last-child > p,
.x-auth-heading > p,
.x-register-heading > p,
.x-recovery-aside .x-auth-quote > p,
.x-public-foot > .muted { display: none; }

.x-secure-mark,
.x-gateway-logo small { display: none; }

/* Dashboard quick links should read as one deliberate list, not browser-default buttons. */
.quick-card .quick-list {
  display: grid;
  gap: 0;
}

.quick-card .quick-item {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid #edf2f6;
  border-radius: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.quick-card .quick-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.quick-card .quick-item:last-child {
  padding-bottom: 0;
}

.quick-card .quick-item:hover {
  background: transparent;
}

.quick-card .quick-item:focus-visible {
  border-radius: 10px;
  background: #f7fbfe;
}

.quick-card .quick-item-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  color: var(--blue);
  background: var(--blue-soft);
}

.quick-card .quick-item-copy {
  min-width: 0;
  flex: 1;
  text-align: left;
}

.quick-card .quick-item-copy strong {
  display: block;
  color: var(--navy-900);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 720;
}

.quick-card .quick-item > svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: #9ab0c1;
}

/* The public shell is a column flex container; keep the header full-width so its two zones separate. */
.x-public-nav {
  width: 100%;
  flex: 0 0 auto;
}

/* Use the same two-line wordmark everywhere the prototype shows the brand. */
.x-brand-copy {
  display: grid;
  gap: 0;
  color: inherit;
  font-size: 17px;
  line-height: 1.03;
  letter-spacing: -.03em;
}

.x-brand-copy strong,
.x-brand-copy span {
  display: block;
  color: inherit;
  line-height: 1.03;
}

.x-brand-copy strong {
  font-size: 17px;
  font-weight: 760;
}

.x-brand-copy span {
  font-size: 17px;
  font-weight: 520;
}

.x-brand > span.x-brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.points-card .balance-value ~ .btn {
  margin-top: 15px;
}

/* Give the two-line dashboard headline enough air without changing its block position. */
.hero-title {
  line-height: 1.08;
}
