.payment-page {
  min-height: 680px;
  padding: 58px 0 100px;
}

.payment-card {
  max-width: 860px;
  margin: auto;
  border: 1px solid var(--line, #e2e7ef);
  border-radius: var(--radius, 8px);
  background: #fff;
  padding: 36px;
  box-shadow: var(--shadow, 0 16px 38px rgba(23, 32, 51, .08));
}

.payment-ok {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: var(--radius-sm, 6px);
  background: var(--green-soft, #e9faf4);
  color: var(--green, #168d69);
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 900;
}

.payment-card h1 {
  margin: 13px 0 6px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 900;
}

.payment-card > p {
  margin: 0 0 28px;
  color: #7d899a;
  font-size: 13px;
  line-height: 1.65;
}

.payment-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.qr-box {
  border: 1px solid var(--line, #e2e7ef);
  border-radius: var(--radius, 8px);
  background: #fff;
  padding: 16px;
  text-align: center;
}

.qr-box img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
}

.qr-box small {
  display: block;
  margin-top: 10px;
  color: #8a95a6;
  font-size: 10px;
}

.payment-data > div {
  border-bottom: 1px solid var(--line, #e2e7ef);
  padding: 15px 0;
}

.payment-data span {
  display: block;
  margin-bottom: 5px;
  color: #8a95a6;
  font-size: 11px;
}

.payment-data strong {
  color: var(--accent-strong, #e9473e);
  font-size: 27px;
}

.payment-data b {
  font-size: 14px;
}

.payment-data code {
  display: block;
  overflow-wrap: anywhere;
  border-radius: var(--radius-sm, 6px);
  background: var(--wash, #f6f8fb);
  color: #4d5b70;
  padding: 10px;
  font-size: 11px;
}

.copy-btn {
  margin-top: 8px;
  border: 1px solid var(--line-strong, #ccd4df);
  border-radius: var(--radius-sm, 6px);
  background: #fff;
  color: #526174;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--accent, #ff5f56);
  color: var(--accent-strong, #e9473e);
}

.payment-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 22px;
}

.payment-steps span {
  min-height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line, #e2e7ef);
  border-radius: var(--radius-sm, 6px);
  background: var(--wash, #f6f8fb);
  color: #8a95a6;
  padding: 8px 10px;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.payment-steps span.active {
  border-color: #ffd1cc;
  background: var(--accent-soft, #fff1ef);
  color: var(--accent-strong, #e9473e);
}

.payment-steps span.complete {
  border-color: #c7efdf;
  background: var(--green-soft, #e9faf4);
  color: var(--green, #168d69);
}

.chain-picker {
  margin-bottom: 18px;
  border: 1px solid var(--line, #e2e7ef);
  border-radius: var(--radius, 8px);
  background: #fff;
  padding: 20px;
}

.chain-picker-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.chain-picker-head span {
  display: block;
  color: var(--green, #168d69);
  font-size: 10px;
  font-weight: 900;
}

.chain-picker-head h2 {
  margin: 5px 0 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.chain-picker-head > small {
  color: #8a95a6;
  font-size: 10px;
}

.chain-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.chain-option {
  min-width: 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line, #e2e7ef);
  border-radius: var(--radius, 8px);
  background: #fff;
  color: #303b4d;
  padding: 11px;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.chain-option:hover {
  border-color: #ffb7ad;
  background: #fffaf8;
  transform: translateY(-1px);
}

.chain-option.selected {
  border-color: var(--accent, #ff5f56);
  background: #fff6f5;
  box-shadow: 0 0 0 2px rgba(255, 95, 86, .12);
}

.chain-option:disabled {
  cursor: not-allowed;
  opacity: .5;
  transform: none;
}

.chain-logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm, 6px);
}

.chain-logo img {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.chain-logo.bep20 {
  background: #f0b90b;
}

.chain-logo.erc20 {
  background: #627eea;
}

.chain-logo.erc20 img {
  width: 23px;
  height: 23px;
}

.chain-logo.trc20 {
  background: #ff060a;
}

.chain-logo.trc20 img {
  width: 26px;
  height: 26px;
}

.chain-option span {
  min-width: 0;
}

.chain-option strong,
.chain-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chain-option strong {
  font-size: 12px;
  font-weight: 900;
}

.chain-option small {
  margin-top: 3px;
  color: #7d899a;
  font-size: 10px;
}

.chain-option i {
  color: #98a2b3;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.chain-option.selected i {
  color: var(--accent-strong, #e9473e);
}

.wallet-payment {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  border: 1px solid var(--line, #e2e7ef);
  border-radius: var(--radius, 8px);
  background:
    linear-gradient(180deg, #fff, #fbfcfd);
  padding: 26px;
}

.wallet-mark {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  margin: auto;
  border-radius: var(--radius, 8px);
  background: linear-gradient(145deg, #ff766e, #ff5148);
  box-shadow: 0 15px 30px rgba(255, 95, 86, .2);
}

.wallet-mark svg {
  width: 62px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.wallet-copy {
  min-width: 0;
}

.wallet-copy > span {
  display: block;
  color: #8a95a6;
  font-size: 11px;
  font-weight: 800;
}

.wallet-copy > strong {
  display: block;
  margin: 4px 0 18px;
  color: var(--accent-strong, #e9473e);
  font-size: 31px;
  line-height: 1.1;
}

.wallet-copy dl {
  margin: 0;
}

.wallet-copy dl > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line, #e2e7ef);
  padding: 11px 0;
}

.wallet-copy dt {
  color: #8a95a6;
  font-size: 11px;
}

.wallet-copy dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 900;
}

.wallet-copy > p {
  margin: 15px 0 9px;
  color: #667085;
  font-size: 11px;
  line-height: 1.6;
}

.wallet-copy > .wallet-warning {
  margin: 8px 0 10px;
  border: 1px solid #ffc9c5;
  border-radius: var(--radius, 8px);
  background: var(--accent-soft, #fff1ef);
  color: #c6322a;
  padding: 10px 12px;
  font-weight: 900;
}

.wallet-connect {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--accent, #ff5f56);
  border-radius: var(--radius, 8px);
  background: var(--accent, #ff5f56);
  color: #fff;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(255, 95, 86, .2);
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.wallet-connect:hover {
  border-color: var(--accent-strong, #e9473e);
  background: var(--accent-strong, #e9473e);
  transform: translateY(-1px);
}

.wallet-connect:disabled {
  cursor: not-allowed;
  opacity: .55;
  box-shadow: none;
  transform: none;
}

.wallet-connect svg {
  width: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.wallet-disconnect {
  display: block;
  width: 100%;
  min-height: 40px;
  margin-top: 8px;
  border: 1px solid var(--line-strong, #ccd4df);
  border-radius: var(--radius, 8px);
  background: #fff;
  color: #667085;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.wallet-disconnect[hidden] {
  display: none;
}

.wallet-disconnect:hover {
  border-color: #ffb7ad;
  background: #fffaf8;
  color: var(--accent-strong, #e9473e);
}

.wallet-disconnect:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.wallet-dialog {
  width: min(420px, calc(100% - 32px));
  border: 0;
  border-radius: var(--radius, 8px);
  padding: 24px;
  box-shadow: 0 25px 80px rgba(18, 27, 44, .28);
}

.wallet-dialog::backdrop {
  background: rgba(18, 27, 44, .48);
  backdrop-filter: blur(3px);
}

.wallet-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.wallet-dialog-head span {
  display: block;
  color: var(--green, #168d69);
  font-size: 10px;
  font-weight: 900;
}

.wallet-dialog-head h2 {
  margin: 5px 0 0;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
}

.wallet-dialog-head button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: none;
  border: 0;
  border-radius: var(--radius-sm, 6px);
  background: var(--wash, #f6f8fb);
  color: #667085;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.wallet-dialog > p {
  margin: 10px 0 18px;
  color: #7d899a;
  font-size: 12px;
  line-height: 1.6;
}

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

.wallet-option {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line, #e2e7ef);
  border-radius: var(--radius, 8px);
  background: #fff;
  color: #2f3a4c;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.wallet-option:hover {
  border-color: #ffb7ad;
  background: #fffaf8;
}

.wallet-option img,
.wallet-option b {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm, 6px);
  object-fit: cover;
  background: #eef1f5;
  color: #5c6879;
  font-size: 15px;
}

.wallet-option i {
  color: #98a2b3;
  font-size: 10px;
  font-style: normal;
}

.wallet-empty {
  border-radius: var(--radius, 8px);
  background: var(--wash, #f6f8fb);
  padding: 20px;
  text-align: center;
}

.wallet-empty strong,
.wallet-empty span {
  display: block;
}

.wallet-empty strong {
  font-size: 13px;
  font-weight: 900;
}

.wallet-empty span {
  margin: 7px 0 14px;
  color: #7d899a;
  font-size: 11px;
  line-height: 1.6;
}

.wallet-empty a {
  color: var(--accent-strong, #e9473e);
  font-size: 11px;
  font-weight: 900;
}

.payment-card > .outline-btn {
  display: inline-flex;
  margin-top: 18px;
}

@media (max-width: 760px) {
  .payment-page {
    padding: 38px 0 70px;
  }

  .payment-card {
    padding: 24px;
  }

  .payment-card h1 {
    font-size: 28px;
  }

  .payment-grid,
  .wallet-payment,
  .chain-options {
    grid-template-columns: 1fr;
  }

  .qr-box {
    max-width: 300px;
    margin: auto;
  }

  .payment-steps {
    gap: 6px;
  }

  .payment-steps span {
    min-height: 34px;
    padding: 8px 5px;
    font-size: 9px;
  }

  .chain-picker-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .wallet-payment {
    gap: 20px;
    padding: 20px;
  }

  .wallet-mark {
    width: 86px;
    height: 86px;
  }

  .wallet-mark svg {
    width: 44px;
  }

  .wallet-copy dl > div {
    grid-template-columns: 78px minmax(0, 1fr);
  }
}

@media (max-width: 430px) {
  .payment-card,
  .wallet-dialog {
    padding: 20px;
  }

  .payment-card > p {
    overflow-wrap: anywhere;
  }
}
