@font-face {
  font-family: "Open Sans";
  src: url("/shop/OpenSans-Regular.ttf") format("truetype");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #101718;
  --surface: #172324;
  --ink: #f0f7f5;
  --muted: #b9cac5;
  --line: #314746;
  --accent: #8fe2c5;
  --action: #9cebd0;
  --action-hover: #c3f5e3;
  --input: #121c1e;
  --heading: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font: 16px/1.6 "Open Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: var(--accent); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1136px, calc(100% - 64px)); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link { position: absolute; z-index: 2; top: .5rem; inset-inline-start: 1rem; padding: .7rem 1rem; background: var(--surface); }
.site-header { background: #111a1b; border-bottom: 1px solid var(--line); }
.header-inner {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) max-content minmax(0, 1fr);
  align-items: center;
  gap: 1.35rem;
  min-height: 80px;
}
.brand {
  justify-self: start;
  padding: .32rem 0;
  color: var(--ink);
  font: 800 clamp(1.2rem, 2.4vw, 1.65rem)/1 var(--heading);
  letter-spacing: -.055em;
  text-decoration: none;
}
.brand-accent { color: var(--accent); }
.primary-nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: .4rem clamp(.8rem, 1.65vw, 1.42rem); }
.primary-nav a { color: var(--muted); font-size: .82rem; white-space: nowrap; text-decoration: none; padding-block: .5rem; }
.primary-nav a:hover, .site-footer a:hover { color: var(--ink); text-decoration: underline; }
.locale-picker { display: inline-flex; align-items: center; }
.locale-picker select {
  min-height: 36px;
  max-width: 100%;
  color: var(--ink);
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: .22rem .35rem;
  font-size: .82rem;
}
.account { justify-self: stretch; min-width: 0; }
.account-actions { display: flex; align-items: center; justify-content: flex-end; gap: .58rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--action);
  color: #0e2b23;
  padding: .62rem .94rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font: 650 .86rem/1.25 var(--heading);
  text-decoration: none;
}
.button:hover { background: var(--action-hover); }
.button.secondary { background: #1b2b2d; color: var(--ink); border-color: var(--line); }
.button.secondary:hover { background: #263e3f; }
.account-actions .button { min-height: 40px; white-space: nowrap; }
.link-button { background: transparent; border: 0; color: var(--accent); padding: .46rem 0; font-size: .84rem; }
.link-button:hover { text-decoration: underline; }
.profile {
  display: flex;
  align-items: center;
  gap: .62rem;
  min-width: 0;
  padding: .34rem .65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1c3030;
  font-size: .8rem;
}
.username { min-width: 0; max-width: 24ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-wallet { flex-shrink: 0; padding-inline-start: .62rem; border-inline-start: 1px solid var(--line); color: var(--accent); white-space: nowrap; }
.profile-wallet strong { font-family: var(--heading); font-size: .98rem; font-variant-numeric: tabular-nums; }
.sign-out { flex-shrink: 0; white-space: nowrap; padding-inline: .15rem; }
.hero {
  background: radial-gradient(ellipse at 15% 0%, #213c3c 0%, transparent 62%), var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
  padding-block: clamp(3rem, 6.5vw, 6rem);
}
.offer { padding-top: .5rem; }
h1, h2, h3, dd, .amount, .balance strong { font-family: var(--heading); }
h1 {
  margin: 0 0 1.3rem;
  font-size: clamp(2.65rem, 5.6vw, 5rem);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: 1.02;
}
h1 em { display: block; font-style: normal; color: var(--accent); }
.lead { max-width: 48ch; margin: 0; color: var(--muted); font-size: 1rem; }
.offer-action { margin-top: 1.5rem; min-height: 44px; }
dt { color: var(--muted); font-size: .76rem; }
dd { margin: .15rem 0 0; font-size: 1.22rem; font-weight: 650; }
dd small, .amount small { color: var(--muted); font-size: .72rem; font-weight: 500; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 19px;
  box-shadow: 0 20px 65px #070e1270;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  min-width: 0;
  scroll-margin-top: 1rem;
}
.checkout-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .92rem; font: 700 1rem/1.3 var(--heading); }
.checkout-heading strong { color: var(--accent); font-size: 1.15rem; }
.checkout-heading small { color: var(--muted); font-size: .66rem; font-weight: 500; }
#steps { display: flex; list-style: none; gap: .32rem; padding: .28rem; margin: 0 0 1.5rem; border-radius: 9px; background: var(--input); }
#steps li { flex: 1; text-align: center; padding: .39rem .2rem; color: var(--muted); border-radius: 6px; font-size: .75rem; }
#steps [aria-current="step"] { background: #25423e; color: #dbfff0; font-weight: 650; }
h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.05rem); line-height: 1.15; letter-spacing: -.035em; }
h3 { margin: 0; font-size: 1.12rem; letter-spacing: -.015em; }
.panel p { margin: .62rem 0 1rem; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.panel form { display: grid; gap: .9rem; margin: 1.12rem 0 .4rem; }
.panel label { display: grid; gap: .32rem; color: var(--ink); font-size: .82rem; }
.panel input, .panel select {
  width: 100%;
  border: 1px solid #486361;
  border-radius: 7px;
  padding: .65rem .7rem;
  background: var(--input);
  color: var(--ink);
  font-size: 1rem;
}
.primary { width: 100%; padding: .86rem .8rem; }
.balance { background: var(--input); border: 1px solid var(--line); border-radius: 8px; padding: .88rem 1rem; margin-bottom: 1.08rem; }
.balance span, .balance strong { display: block; }
.balance span { color: var(--muted); font-size: .76rem; }
.balance strong { color: var(--accent); font-size: 2.35rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.summary { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; padding-block: .6rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.summary b { color: var(--ink); overflow-wrap: anywhere; text-align: end; }
#refreshOrder, #buyAnother { margin-top: .6rem; }
#buyAnother { background: #acc7ff; color: #142444; }
#buyAnother:hover { background: #c5d8ff; }
.file-hint { color: var(--muted); margin-top: -.58rem; font-size: .76rem; }
.panel input[type="file"] { font-size: .85rem; }
.panel input::file-selector-button {
  margin-inline-end: .65rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #264140;
  color: var(--ink);
  padding: .3rem .55rem;
  cursor: pointer;
}
.state-icon { font-size: .75em; }
#status.is-sent { text-align: center; }
#status.is-sent #statusTitle { color: #b5efdb; }
.sent-moment {
  display: grid;
  place-items: center;
  position: relative;
  width: 150px;
  height: 72px;
  margin: 0 auto .65rem;
  pointer-events: none;
}
.sent-check {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid #4e8f7f;
  border-radius: 50%;
  background: #22473f;
}
.sent-check::before {
  content: "";
  width: 19px;
  height: 10px;
  margin-top: -4px;
  border-left: 3px solid #b5efdb;
  border-bottom: 3px solid #b5efdb;
  transform: rotate(-45deg);
}
.sent-confetti {
  display: none;
  position: absolute;
  top: calc(50% - 3px);
  left: calc(50% - 3px);
  width: 6px;
  height: 8px;
  border-radius: 2px;
  background: var(--confetti-color, #b5efdb);
}
.sent-confetti:nth-child(2) { --x: -64px; --y: -8px; --spin: -70deg; }
.sent-confetti:nth-child(3) { --x: -48px; --y: -29px; --spin: 85deg; --confetti-color: #acc7ff; }
.sent-confetti:nth-child(4) { --x: -16px; --y: -36px; --spin: -125deg; --confetti-color: #efd399; }
.sent-confetti:nth-child(5) { --x: 23px; --y: -33px; --spin: 95deg; }
.sent-confetti:nth-child(6) { --x: 51px; --y: -25px; --spin: 155deg; --confetti-color: #acc7ff; }
.sent-confetti:nth-child(7) { --x: 66px; --y: -2px; --spin: -65deg; --confetti-color: #efd399; }
.sent-confetti:nth-child(8) { --x: 48px; --y: 25px; --spin: 120deg; }
.sent-confetti:nth-child(9) { --x: -52px; --y: 23px; --spin: -120deg; --confetti-color: #acc7ff; }
@media (prefers-reduced-motion: no-preference) {
  .celebrating .sent-check { animation: sent-check-in 420ms cubic-bezier(.2,.7,.3,1.45) both; }
  .celebrating .sent-confetti { display: block; animation: sent-confetti-out 850ms ease-out both; }
}
@keyframes sent-check-in {
  from { opacity: .45; transform: scale(.72); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes sent-confetti-out {
  0% { opacity: 0; transform: scale(.4); }
  22% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--spin)); }
}
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.codes figure { min-width: 0; margin: 0; text-align: center; }
.codes img { display: block; width: 100%; height: auto; max-width: 180px; margin-inline: auto; aspect-ratio: 1; background: #fff; image-rendering: pixelated; }
.codes figcaption { display: flex; align-items: center; justify-content: center; gap: .4rem; padding-top: .43rem; font-size: .82rem; }
.payment-dot { display: inline-block; width: .56em; height: .56em; border-radius: 50%; }
.alipay { background: #74b5ff; }
.wechat { background: #6adca1; }
.panel .preview { margin-top: 0; padding: .4rem .65rem; background: #253653; color: #dfebff; border-radius: 6px; font-size: .75rem; }
#message { margin-bottom: 0; color: #d2e0ff; }
#message:empty { display: none; }
.offer-strip { background: #152323; border-bottom: 1px solid var(--line); }
.offer-strip-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin-block: 0;
  padding: 1.12rem 0;
}
.offer-strip-items li { display: flex; align-items: center; gap: .7rem; }
.offer-icon {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  height: 36px;
  border-radius: 9px;
  background: #233c38;
  color: var(--accent);
  font: 700 1rem/1 var(--heading);
}
.offer-strip-items strong, .offer-strip-items li div span { display: block; }
.offer-strip-items strong { font: 700 .94rem/1.35 var(--heading); }
.offer-strip-items li div span { color: var(--muted); font-size: .78rem; margin-top: .15rem; }
.setup-section {
  padding-block: clamp(3.2rem, 7vw, 6rem);
  background: radial-gradient(ellipse at 50% 0%, #1c3031 0%, var(--bg) 73%);
  border-bottom: 1px solid var(--line);
}
.setup-heading { max-width: 38rem; margin: 0 auto clamp(1.8rem, 4vw, 3.1rem); text-align: center; }
.setup-heading h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; font-weight: 800; text-wrap: balance; }
.setup-heading p { margin: .85rem auto 0; color: var(--muted); text-wrap: pretty; }
.information { padding-block: clamp(3rem, 6vw, 5.5rem) 2.2rem; }
.information h2 { font-weight: 580; }
.information-section { margin-bottom: clamp(3rem, 7vw, 5.4rem); scroll-margin-top: 1.25rem; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.8rem, 2vw, 1.4rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps-grid li {
  padding: clamp(1.2rem, 2.6vw, 1.8rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.step-number {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  border: 1px solid #42675e;
  border-radius: 8px;
  background: #213c37;
  color: var(--accent);
  font: 750 .92rem/1 var(--heading);
}
.steps-grid p, .payment-info p, .support-section p { color: var(--muted); margin: .36rem 0 0; font-size: .925rem; }
.feature-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.15fr);
  align-items: start;
  gap: 1.15rem clamp(1.5rem, 5vw, 4rem);
  padding-block: 1.7rem;
  border-block: 1px solid var(--line);
}
.feature-intro { padding-top: .18rem; }
.feature-intro h2 { max-width: 12ch; text-wrap: balance; }
.feature-list { margin: 0; }
.feature-list > div {
  display: grid;
  grid-template-columns: minmax(9rem, .88fr) minmax(0, 1.6fr);
  gap: .3rem 1.2rem;
  padding: .95rem 0;
  border-bottom: 1px solid var(--line);
}
.feature-list > div:first-child { padding-top: .18rem; }
.feature-list > div:last-child { padding-bottom: .18rem; border-bottom: 0; }
.feature-list dt { color: var(--ink); font: 630 1rem/1.4 var(--heading); }
.feature-list dd { margin: 0; color: var(--muted); font: inherit; font-size: .925rem; }
.feature-list dd strong { color: #d0dcf0; }
.details-link { display: inline-block; margin-top: .73rem; font-size: .85rem; text-underline-offset: 4px; }
.bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.payment-info { padding: clamp(1.3rem, 3vw, 2rem); scroll-margin-top: 1.25rem; }
.pricing { border-inline-start: 1px solid var(--line); }
.payment-methods { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; margin: .72rem 0 .5rem; }
.payment-methods span { display: inline-flex; align-items: center; gap: .4rem; color: #dce5f5; font-size: .89rem; }
.payment-info .amount { color: var(--accent); font-size: 2rem; font-weight: 650; line-height: 1.2; }
.support-section { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: clamp(2rem, 5vw, 3.7rem); scroll-margin-top: 1.25rem; }
.support-section h2 { font-size: 1.45rem; }
.support-section .button { flex-shrink: 0; min-height: 42px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0 5.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.site-footer a { text-decoration: none; }
.contact-button {
  position: fixed;
  z-index: 3;
  bottom: max(1rem, env(safe-area-inset-bottom));
  inset-inline-end: max(1rem, env(safe-area-inset-right));
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid #b5f1dc;
  border-radius: 50%;
  background: var(--action);
  font-size: 1.45rem;
  box-shadow: 0 6px 22px #090712b0;
}
.contact-button:hover { background: var(--action-hover); }
[dir="rtl"] .contact-button { inset-inline-end: max(1rem, env(safe-area-inset-left)); }
.contact-dialog {
  width: min(430px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 1.35rem;
  border: 1px solid #46536a;
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
}
.contact-dialog::backdrop { background: #080c14b8; }
.contact-close { display: flex; justify-content: flex-end; }
.contact-dialog h2 { font-size: 1.65rem; }
.contact-dialog p { margin: .6rem 0 .92rem; color: var(--muted); font-size: .92rem; }
.contact-dialog label { display: block; margin-bottom: .32rem; font-size: .81rem; color: var(--muted); }
.contact-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem; }
.contact-actions input { width: 100%; padding: .62rem .7rem; border: 1px solid #53617a; border-radius: 7px; background: #111722; color: var(--ink); }
.contact-dialog .copy-result { margin-bottom: 0; color: #c3d5f6; }
.contact-dialog .copy-result:empty { margin: 0; }
@media (max-width: 1120px) {
  .header-inner { grid-template-columns: max-content minmax(0, 1fr); gap: .15rem 1rem; padding-block: .85rem .35rem; }
  .primary-nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 36px); }
  .hero-inner, .steps-grid, .feature-section { grid-template-columns: 1fr; }
  .offer-strip-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { padding-block: 2.5rem; gap: 1.65rem; }
  h1 { max-width: 14ch; }
  .feature-intro h2 { max-width: none; }
}
@media (max-width: 480px) {
  .header-inner { gap: .25rem .58rem; }
  .primary-nav { gap: 0 .83rem; justify-content: space-between; }
  .primary-nav a, .sign-out { font-size: .73rem; }
  .locale-picker select { min-height: 32px; font-size: .75rem; }
  .account-actions { gap: .4rem; }
  .account-actions .button { padding-inline: .58rem; font-size: .77rem; }
  .profile {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .08rem;
    padding: .28rem .5rem;
  }
  .profile-wallet { padding-inline-start: 0; border-inline-start: 0; }
  .offer-strip-items { gap: .9rem .55rem; }
  .offer-strip-items li { gap: .45rem; align-items: start; }
  .offer-icon { flex-basis: 29px; height: 29px; }
  .offer-strip-items strong { font-size: .85rem; }
  .feature-list > div, .bottom-grid { grid-template-columns: 1fr; }
  .pricing { border-inline-start: 0; border-top: 1px solid var(--line); }
  .support-section { align-items: flex-start; flex-direction: column; }
}

#promoForm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}
#promoForm button { min-height: 46px; }
#promoForm input { text-transform: uppercase; }
#promoResult { color: var(--accent); }
@media (max-width: 400px) {
  #promoForm { grid-template-columns: 1fr; }
  #promoForm button { justify-self: start; }
}
