:root {
  color-scheme: light;
  --bg: #f7f7f5;
  --card: #fff;
  --text: #202022;
  --muted: #858588;
  --line: #e8e8e6;
  --brand: #cf3039;
  --soft: #fafafa;
  --input: #1e1e21;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
body.dark {
  color-scheme: dark;
  --bg: #121214;
  --card: #1b1b1e;
  --text: #eeeef0;
  --muted: #929297;
  --line: #323236;
  --soft: #212124;
  --input: #eeeef0;
}
button,
input {
  font: inherit;
}
button,
a,
label,
input {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
input:focus-visible {
  outline-offset: 5px;
}
button {
  cursor: pointer;
}
header {
  height: 96px;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 7px;
}
.brand b {
  font-size: 21px;
  letter-spacing: -0.7px;
}
.brand b span {
  font-weight: 450;
}
.brand i {
  border-left: 1px solid var(--line);
  padding-left: 12px;
  margin-left: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 1px;
}
.theme {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 20px;
}
main {
  width: 100%;
  max-width: 500px;
  margin: 22px auto 40px;
  padding: 0 16px;
  flex: 1;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 32px;
  box-shadow: 0 6px 32px #00000003;
  animation: enter 0.35s ease;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 2px;
  color: var(--muted);
}
.verified {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.verified svg {
  width: 14px;
  height: 14px;
}
.recipient {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 30px 0 34px;
}
.avatar {
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -3px;
}
.avatar span,
.red {
  color: var(--brand);
}
.recipient p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 5px;
}
.recipient h1 {
  font-size: 29px;
  letter-spacing: -0.8px;
  margin: 0;
  font-weight: 650;
}
.field-label,
legend {
  font-size: 13px;
  font-weight: 550;
}
.amount-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.amount-wrap > span {
  font-size: 27px;
  font-weight: 500;
}
.amount-wrap input {
  background: transparent;
  border: 0;
  color: var(--input);
  font-size: 58px;
  letter-spacing: -2px;
  font-weight: 550;
  width: 100%;
  min-width: 0;
  padding: 2px 0;
  outline: 0;
  font-variant-numeric: tabular-nums;
  caret-color: var(--brand);
}
input::placeholder {
  color: #c3c3c7;
}
.hint {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin: 7px 0 0;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 26px 0;
}
fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
legend {
  padding: 0;
  margin-bottom: 14px;
}
.methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.method {
  display: flex;
  align-items: center;
  gap: 9px;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 15px 11px;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.method:has(input:checked) {
  border-color: var(--text);
  background: var(--soft);
}
.method:focus-within {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.method input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.method strong {
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
}
.pay-icon {
  height: 23px;
  width: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: white;
}
.ali {
  background: #1677ff;
  font-size: 17px;
}
.wx {
  background: #07b75a;
  padding: 3px;
}
.wx svg {
  width: 19px;
  height: 19px;
}
.radio {
  width: 13px;
  height: 13px;
  border: 1px solid #b5b5b9;
  border-radius: 50%;
  margin-left: auto;
  flex-shrink: 0;
}
.method input:checked ~ .radio {
  border: 4px solid var(--text);
}
.primary {
  border: 0;
  border-radius: 9px;
  padding: 16px 18px;
  background: var(--text);
  color: var(--card);
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition:
    opacity 0.15s,
    transform 0.15s;
  margin-top: 26px;
}
.primary:hover {
  opacity: 0.85;
}
.primary:active {
  transform: scale(0.99);
}
.primary:disabled {
  opacity: 0.5;
  cursor: wait;
}
.arrow {
  font-size: 19px;
  line-height: 1;
}
.fine {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin: 13px 0 0;
}
.error {
  font-size: 12px;
  color: var(--brand);
  line-height: 1.7;
  margin: 18px 0 -8px;
}
.under {
  margin: 23px 0 0;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}
.under > a {
  font-size: 12px;
  color: var(--text);
  display: inline-flex;
  gap: 18px;
}
.under p {
  margin-top: 20px;
  font-size: 10px;
}
footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--muted);
  padding: 0 20px 24px;
}
.result {
  text-align: center;
  padding-top: 40px;
}
.result-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 50%;
  margin: 0 auto 22px;
  font-size: 27px;
}
.result-icon.success {
  color: #198750;
  background: #1987500b;
  border-color: #19875030;
}
.result h1 {
  font-size: 25px;
  margin: 12px 0;
}
.result-note {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  margin: 0;
}
.receipt-amount {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 24px 0;
}
dl {
  display: grid;
  grid-template-columns: auto 1fr;
  font-size: 11px;
  text-align: left;
  gap: 16px 12px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin: 22px 0 5px;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.secondary {
  display: block;
  font-size: 12px;
  margin-top: 23px;
}
.result .primary {
  justify-content: space-between;
}
.result .eyebrow {
  margin: 0;
}
[hidden] {
  display: none !important;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 520px) {
  header {
    height: 76px;
    padding: 0 22px;
  }
  .brand b {
    font-size: 19px;
  }
  main {
    margin: 15px auto 30px;
    max-width: 460px;
  }
  .card {
    padding: 25px 23px;
    border-radius: 15px;
  }
  .amount-wrap input {
    font-size: 49px;
  }
  .recipient {
    margin: 27px 0 30px;
  }
  .method {
    padding: 14px 10px;
    gap: 7px;
  }
  .method strong {
    font-size: 12px;
  }
  .verified {
    font-size: 10px;
  }
  footer {
    font-size: 9px;
    gap: 9px;
  }
  .result h1 {
    font-size: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Reuse the supplied full wordmark, removing its background optically in CSS. */
.brand img {
  width: 112px;
  height: 38px;
  border-radius: 0;
  filter: invert(1);
  mix-blend-mode: multiply;
}
body.dark .brand img {
  filter: none;
  mix-blend-mode: screen;
}
@media (max-width: 520px) {
  .brand img {
    width: 103px;
    height: 35px;
  }
}
