.page-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.page-head.center {
  align-items: center;
  text-align: center;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  color: var(--hint);
  font-size: 13px;
}

.crumbs button {
  color: var(--hint);
}

.crumbs span::before {
  content: "/";
  margin-right: 4px;
  opacity: .6;
}

.summary {
  display: grid;
  gap: 10px;
}

.sum-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 15px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.sum-row.total {
  color: var(--text);
  font-weight: 700;
  font-size: 19px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.sum-row.discount {
  color: var(--success);
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex: none;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 26px;
  color: #fff;
  background: linear-gradient(160deg, #8e8e93, #48484a 60%, #2c2c2e);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
}

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

.ref-link {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 6px 0 14px;
  border-radius: 16px;
  background: var(--fill);
  font-size: 14px;
  color: var(--text-2);
}

.ref-link span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ref-link .icon-btn {
  width: 38px;
  height: 38px;
}

.order-row .row-title,
.order-row .row-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.line-card {
  display: grid;
  gap: 12px;
}

.line-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.units {
  display: grid;
  gap: 8px;
}

.unit {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 6px 10px 12px;
  border-radius: 14px;
  background: var(--fill);
}

.unit code {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
  -webkit-user-select: text;
  padding-top: 6px;
}

.unit .icon-btn {
  width: 36px;
  height: 36px;
}

.faq-item {
  overflow: hidden;
}

.faq-q {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  font-weight: 600;
  font-size: 15.5px;
}

.faq-q span {
  flex: 1;
}

.faq-q .chev {
  transform: rotate(45deg);
  transition: transform .3s var(--ease);
}

.faq-item.is-open .faq-q .chev {
  transform: rotate(-135deg);
}

.faq-a {
  display: none;
  padding: 0 16px 16px;
}

.faq-item.is-open .faq-a {
  display: block;
  animation: fade .3s var(--ease) both;
}

.search-box {
  position: relative;
  display: block;
}

.search-box svg {
  position: absolute;
  left: 16px;
  top: 16px;
  color: var(--hint);
}

.search-box .field {
  padding-left: 46px;
  border-radius: 999px;
  background: var(--card);
  border-color: var(--line);
}

.done {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 10px 0 4px;
}

.done .hint {
  max-width: 300px;
}

.done .btn {
  margin-top: 6px;
}

.sum-row.total:first-child {
  border-top: 0;
  padding-top: 0;
}

.pf-hero {
  --pf: #48484a;
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 26px 16px 22px;
  border-radius: 30px;
  text-align: center;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(70% 60% at 50% 30%, rgba(255, 255, 255, .16), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--pf) 78%, #fff 6%) 0%, color-mix(in srgb, var(--pf) 62%, #000) 100%);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--pf) 30%, transparent);
}

.pf-hero:not(.is-colored) {
  background:
    radial-gradient(70% 60% at 50% 30%, rgba(255, 255, 255, .10), transparent 70%),
    linear-gradient(180deg, #3a3a3c 0%, #1c1c1e 100%);
}

.pf-pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(85% 75% at 50% 42%, transparent 26%, #000 70%);
  mask-image: radial-gradient(85% 75% at 50% 42%, transparent 26%, #000 70%);
}

.pf-pattern img {
  position: absolute;
  width: var(--ps, 28px);
  height: var(--ps, 28px);
  transform: translate(-50%, -50%);
  opacity: .2;
}

.pf-avatar .avatar {
  width: 112px;
  height: 112px;
  font-size: 44px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
}

.pf-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  margin: 12px 0 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -.01em;
}

.pf-name span {
  overflow-wrap: anywhere;
}

.pf-handle {
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, .72);
}

.pf-balance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  margin-top: 12px;
  padding: 0 14px 0 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 16px;
  transition: transform .18s var(--ease);
}

.pf-balance span {
  opacity: .82;
}

.pf-balance .chev {
  border-color: #fff;
  opacity: .7;
}

.pf-balance:active,
.pf-action:active {
  transform: scale(.96);
}

.pf-actions,
.pf-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pf-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 76px;
  padding: 12px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 16px;
  transition: transform .18s var(--ease);
}

.pf-stat {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 16px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line);
}

.pf-stat b {
  font-size: clamp(17px, 5.2vw, 22px);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf-stat-label {
  color: var(--hint);
  font-size: 14px;
}

.pf-stat-sub {
  color: var(--hint);
  font-size: 12.5px;
  opacity: .8;
}

.pf-copy {
  position: absolute;
  top: 6px;
  right: 6px;
}

.pf-docs {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 4px 0 8px;
}

.pf-docs button {
  min-height: 36px;
  color: var(--hint);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--hint) 45%, transparent);
}

.tu {
  display: grid;
  gap: 12px;
}

.tu-title {
  margin: 2px 0 0;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.01em;
}

.tu-emo {
  display: grid;
  place-items: center;
  padding: 10px 0 4px;
}

.tu-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  min-height: 76px;
  cursor: text;
}

.tu-amount input {
  min-width: 1ch;
  max-width: 100%;
  padding: 0;
  border: 0;
  outline: none;
  background: none;
  color: var(--text);
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  caret-color: var(--accent);
}

.tu-amount input::placeholder {
  color: var(--hint);
  opacity: .7;
}

.tu-amount span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 36px;
  color: var(--hint);
}

.tu-balance {
  margin: -4px 0 6px;
  text-align: center;
  color: var(--hint);
  font-size: 15px;
}

.tu-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  grid-auto-flow: column;
  gap: 8px;
}

.tu-quick button {
  display: grid;
  place-items: center;
  min-width: 0;
  height: 48px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 15.5px;
  transition: transform .18s var(--ease), background .18s var(--ease);
}

.tu-quick button:active {
  transform: scale(.95);
  background: var(--fill-2);
}

.tu-quick button.is-on {
  color: var(--on-accent);
  background: var(--accent);
  border-color: transparent;
}

.tu-label {
  margin: 10px 4px -2px;
  color: var(--hint);
  font-size: 14px;
}

.tu-method {
  min-height: 72px;
  gap: 14px;
}

.tu-method .row-title {
  font-size: 17px;
}

.tu-method.is-dim {
  opacity: .45;
  pointer-events: none;
}

.tu-legal {
  margin: 6px 8px 0;
  text-align: center;
  color: var(--hint);
  font-size: 12.5px;
  line-height: 1.5;
}

.tu-legal a {
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--text-2) 40%, transparent);
  text-underline-offset: 3px;
}

.order-end {
  display: grid;
  justify-items: end;
  gap: 5px;
  flex: none;
}

.order-end .num {
  font-weight: 600;
  font-size: 15.5px;
}

.order-end .chip {
  height: 22px;
  padding: 0 8px;
  font-size: 11.5px;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.pf-action {
  position: relative;
}

.pf-action.is-soon > .emo,
.pf-action.is-soon > span {
  opacity: .45;
}

.soon {
  position: absolute;
  top: 8px;
  right: 10px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--card-2);
  color: var(--hint);
  font-weight: 600;
  font-size: 11px;
  line-height: 20px;
  letter-spacing: .02em;
}

.cat-link {
  margin-top: 16px;
  background: #3d7afe;
  color: #fff;
}
