* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: #f2f3f5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #222;
}
body {
  display: flex;
  justify-content: center;
  padding: 24px 16px 40px;
}
.card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.08);
  padding: 28px 28px 32px;
}
.amount-block.is-hidden,
.instructions-block.is-hidden,
.pay-actions.is-hidden,
.code-box.is-hidden,
.copy-btn.is-hidden,
.notice.is-hidden,
.footer.is-hidden { display: none; }
.notice {
  margin-top: 20px;
  padding: 12px 14px;
  background: #fff8e1;
  border: 1px solid #f5d27a;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #5c4a12;
}
.pay-label {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: #8a8a8a;
}
.amount {
  margin: 4px 0 20px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  line-height: 1.2;
}
.qr-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0 20px;
}
#qr {
  width: 244px;
  height: 244px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
#qr img, #qr canvas { display: block; width: 244px; height: 244px; }
#qr.is-empty {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  color: #6b1c28;
}
.scan {
  margin: 0 0 16px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #111;
}
.copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #12b76a;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.copy-btn:disabled {
  color: #b5b5b5;
  cursor: default;
}
.copy-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.code-box {
  margin: 0 0 28px;
  padding: 12px 14px;
  background: #f4f4f5;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #6b6b6b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 42px;
}
.instructions-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: #111;
}
.instructions {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.instructions li {
  position: relative;
  padding-left: 28px;
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #222;
  counter-increment: step;
}
.instructions li:last-child { margin-bottom: 0; }
.instructions li::before {
  content: counter(step) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
}
.footer {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.footer span {
  font-size: 13px;
  color: #9a9a9a;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer img {
  height: 28px;
  width: auto;
  display: block;
}
