:root {
  color-scheme: light;
  --bg: #eef4f7;
  --panel: #ffffff;
  --text: #17212f;
  --muted: #667085;
  --line: #d8e0ea;
  --soft: #eef3f7;
  --primary: #0b5f56;
  --primary-hover: #084c45;
  --accent: #145ea8;
  --danger: #b42318;
  --warning-bg: #fff7e6;
  --warning-border: #f3c06b;
  --shadow: 0 18px 50px rgba(18, 31, 53, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(11, 95, 86, 0.10), transparent 34%),
    linear-gradient(135deg, #f7fafb 0%, #edf5f8 48%, #dcecf4 100%);
  color: var(--text);
}

button,
input {
  font: inherit;
}

a {
  color: var(--accent);
}

.topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(18, 31, 53, 0.06);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(11, 95, 86, 0.14);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.notice-strip {
  width: min(1180px, calc(100% - 36px));
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #536174;
  font-size: 14px;
}

.notice-strip span::after {
  content: "/";
  margin-left: 12px;
  color: #9aa8b8;
}

.notice-strip strong {
  color: var(--primary);
}

.shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px 18px 56px;
}

.claim-layout,
.checkout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

.checkout {
  grid-template-columns: 1fr;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.15;
}

.lead {
  width: min(620px, 100%);
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.official-notice,
.official-warning {
  border: 1px solid var(--warning-border);
  border-radius: 8px;
  background: var(--warning-bg);
  padding: 16px;
}

.official-notice {
  width: min(620px, 100%);
  margin-top: 26px;
}

.official-warning {
  margin-bottom: 18px;
}

.official-notice strong,
.official-notice span,
.official-warning strong,
.official-warning span {
  display: block;
}

.official-notice strong,
.official-warning strong {
  margin-bottom: 7px;
  color: #8a4b04;
}

.official-notice span,
.official-warning span {
  color: #5f3c0b;
  line-height: 1.65;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.claim-panel {
  padding: 28px;
}

.page-identity {
  width: min(1120px, calc(100vw - 48px));
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #66758c;
}

.page-identity span,
.pay-page-identity span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.page-identity strong,
.pay-page-identity strong {
  color: var(--primary);
  font-size: 20px;
  font-weight: 900;
}

.price-head {
  margin-bottom: 18px;
}

.price-head span,
.price-head strong {
  display: block;
}

.price-head span {
  color: var(--muted);
  margin-bottom: 4px;
}

.price-head strong {
  color: var(--accent);
  font-size: 32px;
}

.form-title {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.form-title strong,
.form-title span {
  display: block;
}

.form-title strong {
  font-size: 20px;
}

.form-title span {
  margin-top: 6px;
  color: var(--muted);
}

.order-card {
  margin-bottom: 20px;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 253, 0.96));
}

.order-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.order-card-head span,
.order-card-head strong {
  display: block;
}

.order-card-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.order-card-head strong {
  color: var(--primary);
  font-size: 14px;
}

.readonly-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
}

.readonly-item {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.readonly-item:nth-child(2),
.readonly-item:nth-child(3) {
  border-bottom: 0;
}

.readonly-item:nth-child(3) {
  border-right: 0;
}

.readonly-item-wide {
  grid-column: 1 / -1;
  border-right: 0;
}

.readonly-item span,
.readonly-item strong {
  display: block;
}

.readonly-item span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.readonly-item strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.checkout-main {
  padding: 26px;
}

.is-paying {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.78), transparent 34%),
    linear-gradient(135deg, #f0faf6 0%, #d9f0e7 48%, #bedfd1 100%);
}

.is-paying .topbar {
  display: none;
}

.is-paying .shell {
  width: 100%;
  min-height: 100vh;
  padding: 0;
}

.pay-screen {
  position: relative;
  min-height: 100vh;
  padding: 32px 18px 42px;
}

.pay-container {
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding: 46px 52px 56px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 80px rgba(21, 44, 73, 0.16);
}

.pay-page-identity {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 24px;
  color: #66758c;
}

.back-link {
  position: absolute;
  top: 24px;
  border: 0;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 20px;
  font-weight: 800;
  cursor: pointer;
}

.back-link {
  left: 28px;
  color: #1f5f8f;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.36);
}

.pay-security {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
  margin-bottom: 20px;
  width: 100%;
}

.security-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(24, 83, 116, 0.18);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(21, 104, 81, 0.14);
}

.security-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.pay-security strong {
  color: #182536;
  font-size: 18px;
}

.pay-warning {
  margin: 0 auto 26px;
  border: 1px solid #c7a95c;
  border-radius: 8px;
  background: #fffaf0;
  padding: 14px 18px;
  color: #6f4c0b;
  font-weight: 800;
  line-height: 1.6;
  text-align: center;
}

.desktop-pay-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.desktop-pay-card p {
  margin: 0;
  color: var(--muted);
}

.checkout-qr {
  position: relative;
  width: 286px;
  height: 286px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
}

.checkout-qr canvas {
  width: 260px;
  height: 260px;
}

.qr-token {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 8px solid #fff;
  border-radius: 999px;
  background: #27a17c;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(20, 94, 77, 0.2);
}

.mobile-pay-title,
.wallet-picker-title {
  color: #0b6b55;
  font-weight: 900;
  margin-bottom: 12px;
}

.pay-info-card {
  overflow: hidden;
  border: 1px solid #d9e3ec;
  border-radius: 8px;
  background: #fbfdff;
  margin-bottom: 18px;
}

.pay-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid #e7edf3;
  align-items: center;
}

.pay-row:last-child {
  border-bottom: 0;
}

.pay-row span {
  color: #16202d;
  font-weight: 900;
}

.pay-row strong {
  color: #445d6d;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.wallet-picker {
  display: none;
}

.wallet-picker.hidden {
  display: none;
}

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

.checkout-wallet-card {
  position: relative;
  min-height: 108px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "check"
    "icon"
    "name";
  justify-items: center;
  align-content: center;
  gap: 6px;
  border: 1px solid #dbe6ef;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 255, 0.98));
  color: var(--text);
  cursor: pointer;
  padding: 16px 12px 14px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(39, 78, 113, 0.08);
}

.checkout-wallet-card .wallet-brand-mark {
  grid-area: icon;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #0b7664, #13966f);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 10px 22px rgba(17, 129, 98, 0.22);
}

.checkout-wallet-card strong {
  grid-area: name;
  color: #182435;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.checkout-wallet-card i {
  grid-area: check;
  position: absolute;
  top: 10px;
  left: 10px;
  width: 18px;
  height: 18px;
  border: 1px solid #b8c7d8;
  border-radius: 999px;
  background: #fff;
}

.checkout-wallet-card:hover {
  border-color: #0b7a63;
  box-shadow: 0 10px 28px rgba(13, 122, 99, 0.14);
}

.checkout-wallet-card:hover i {
  border-color: #0b7a63;
  box-shadow: inset 0 0 0 4px #fff;
  background: #0b7a63;
}

.checkout-wallet-card.selected {
  border-color: #0b7a63;
  background: linear-gradient(180deg, #ffffff, #effaf5);
  box-shadow: 0 12px 28px rgba(13, 122, 99, 0.15);
}

.checkout-wallet-card.selected i {
  border-color: #0b7a63;
  box-shadow: inset 0 0 0 4px #fff;
  background: #0b7a63;
}

.wallet-detail-card {
  margin: 18px 0;
  border: 1px solid #d4e4da;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 18px 20px;
  box-shadow: 0 10px 26px rgba(25, 82, 60, 0.08);
}

.wallet-detail-title {
  color: #0b7a63;
  font-weight: 900;
  margin-bottom: 8px;
}

.wallet-address {
  color: #526372;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  overflow-wrap: anywhere;
  margin-bottom: 12px;
}

.wallet-balance-line {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #e4ece8;
  border-bottom: 1px solid #e4ece8;
  padding: 12px 0;
  margin-bottom: 14px;
  color: #17212f;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 900;
}

.wallet-balance-line i {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #a8b7ae;
}

.payment-confirm-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(7px);
}

.payment-confirm-layer.hidden {
  display: none;
}

.payment-sheet {
  width: min(560px, 100%);
  margin: 0 auto;
  border-radius: 8px 8px 0 0;
  border: 1px solid #cfe0d7;
  background: #f4fbf8;
  padding: 18px 20px 24px;
  box-shadow: 0 -18px 60px rgba(15, 23, 42, 0.22);
}

.payment-close {
  width: 38px;
  height: 38px;
  border: 1px solid #d2e3dc;
  border-radius: 999px;
  background: #fff;
  color: #526372;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.payment-sheet h2 {
  margin: -34px 0 14px;
  text-align: center;
  color: #116f5b;
  font-size: 21px;
}

.confirm-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #c7a95c;
  border-radius: 8px;
  background: #fffaf0;
  padding: 10px 12px;
  color: #5a4431;
  line-height: 1.42;
  font-size: 14px;
}

.confirm-alert span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #ffe9a6;
  color: #7b5b00;
}

.confirm-alert em {
  color: #c44f18;
  font-style: normal;
}

.confirm-subtitle {
  margin: 14px 0 10px;
  text-align: center;
  color: #2e3a45;
  font-size: 16px;
  font-weight: 900;
}

.confirm-amount-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  gap: 4px;
  border: 1px solid #cfe0d7;
  border-radius: 8px;
  background: #fff;
  padding: 12px 18px;
  margin-bottom: 12px;
}

.confirm-amount-box strong {
  text-align: center;
  color: #0b7a63;
  font-size: 34px;
  line-height: 1;
}

.confirm-amount-box span {
  color: #667085;
  font-size: 13px;
}

.confirm-mode {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid #d6dfdc;
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
  margin-bottom: 9px;
}

.confirm-mode.selected {
  border-color: #0b7a63;
  background: #effaf5;
}

.confirm-mode i {
  width: 18px;
  height: 18px;
  border: 2px solid #98a2b3;
  border-radius: 999px;
  margin-top: 3px;
}

.confirm-mode.selected i {
  border: 5px solid #0b7a63;
}

.confirm-mode strong,
.confirm-mode span {
  display: block;
}

.confirm-mode strong {
  color: #17212f;
  font-size: 15px;
}

.confirm-mode span {
  margin-top: 2px;
  color: #667085;
  line-height: 1.35;
  font-size: 13px;
}

.confirm-pay-button {
  min-height: 50px;
  margin-top: 6px;
  background: linear-gradient(135deg, #0b765f, #075f4d);
}

.app-alert {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 120;
  width: min(360px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  transform: translateX(-50%);
  border: 1px solid rgba(11, 122, 99, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  padding: 14px 16px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

.app-alert.error {
  border-color: rgba(185, 28, 28, 0.2);
}

.app-alert.hidden {
  display: none;
}

.app-alert-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #0b7a63;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.app-alert.error .app-alert-icon {
  background: #b91c1c;
}

.app-alert strong,
.app-alert span {
  display: block;
}

.app-alert strong {
  color: #0b6b55;
  font-size: 17px;
}

.app-alert.error strong {
  color: #991b1b;
}

.app-alert span {
  margin-top: 3px;
  color: #667085;
  font-size: 13px;
}

.confirm-pay-button.loading {
  position: relative;
  opacity: 0.92;
}

.confirm-pay-button.loading::before {
  content: "";
  width: 18px;
  height: 18px;
  display: inline-block;
  margin-right: 10px;
  vertical-align: -3px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #fff;
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

.confirm-result {
  margin: 8px 0 10px;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.confirm-result.success {
  border: 1px solid #b7dbc8;
  background: #effaf5;
  color: #0b6b55;
}

.confirm-result.error {
  border: 1px solid #f0b8b1;
  background: #fff3f2;
  color: #b42318;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.technical-summary {
  margin-top: 20px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field span,
.label {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  background: #fff;
  color: var(--text);
}

.quantity-control {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
}

.quantity-control button {
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.quantity-control input {
  text-align: center;
}

.safe-note {
  margin: 4px 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 12px;
}

.safe-note strong,
.safe-note span {
  display: block;
}

.safe-note strong {
  margin-bottom: 5px;
}

.safe-note span {
  color: var(--muted);
  line-height: 1.5;
}

.description-panel {
  grid-column: 1 / -1;
  padding: 0 0 20px;
  overflow: hidden;
}

.description-title {
  padding: 16px 22px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.description-panel p {
  margin: 14px 22px 0;
  color: #b42318;
  font-weight: 800;
  line-height: 1.65;
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 95, 86, 0.13);
}

.status {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--muted);
  margin-bottom: 18px;
  overflow-wrap: anywhere;
  background: #fbfcfe;
}

.order-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.order-strip div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfe;
}

.order-strip span,
.order-strip strong {
  display: block;
}

.order-strip span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.order-strip strong {
  overflow-wrap: anywhere;
}

.summary,
.order {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 18px 0;
  overflow: hidden;
}

.pay-screen .order {
  display: none;
}

.summary div,
.order div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.summary div:last-child,
.order div:last-child {
  border-bottom: 0;
}

.summary span,
.order span {
  color: var(--muted);
}

.summary strong,
.order strong,
.order a {
  overflow-wrap: anywhere;
}

.qr-wrap {
  width: 204px;
  height: 204px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.primary,
.secondary,
.ghost {
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 800;
}

.primary {
  width: 100%;
  background: var(--primary);
  color: #fff;
}

.primary:hover {
  background: var(--primary-hover);
}

.primary:disabled {
  background: #98a2b3;
  cursor: not-allowed;
}

.secondary {
  background: var(--soft);
  color: var(--text);
  white-space: nowrap;
}

.ghost {
  background: transparent;
  color: var(--accent);
}

.hidden {
  display: none;
}

.error {
  color: var(--danger);
}

.assist-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.48);
}

.assist-layer.hidden {
  display: none;
}

.assist-panel {
  width: min(460px, 100%);
  position: relative;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 26px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.24);
}

.assist-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--soft);
  color: var(--text);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.assist-section h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.assist-section p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.assist-qr {
  width: 236px;
  height: 236px;
  margin-bottom: 0;
}

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

.channel-button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.channel-button:hover {
  border-color: var(--primary);
}

@media (max-width: 900px) {
  .claim-layout,
  .checkout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    height: auto;
    align-items: flex-start;
    padding: 12px 14px;
    display: grid;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .brand strong {
    font-size: 18px;
  }

  .brand span {
    display: none;
  }

  .notice-strip {
    display: grid;
    gap: 4px;
  }

  .notice-strip span::after {
    content: "";
    margin-left: 0;
  }

  .shell {
    padding: 14px 12px 32px;
  }

  h1 {
    font-size: 30px;
  }

  .lead {
    font-size: 15px;
    line-height: 1.65;
    margin-top: 10px;
  }

  .checkout-main,
  .claim-panel {
    padding: 18px;
  }

  .description-title {
    padding: 13px 16px;
  }

  .description-panel {
    padding-bottom: 16px;
  }

  .description-panel p {
    margin: 12px 16px 0;
    font-size: 14px;
    line-height: 1.55;
  }

  .price-head strong {
    font-size: 26px;
  }

  .form-title {
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .page-identity {
    width: calc(100vw - 32px);
    margin-bottom: 14px;
  }

  .page-identity strong,
  .pay-page-identity strong {
    font-size: 18px;
  }

  .field {
    margin-bottom: 14px;
  }

  .section-head {
    display: grid;
  }

  .order-strip {
    grid-template-columns: 1fr;
  }

  .summary div,
  .order div {
    grid-template-columns: 1fr;
  }

  .channel-grid {
    grid-template-columns: 1fr;
  }

  .is-paying {
    background:
      radial-gradient(circle at top, rgba(255, 255, 255, 0.74), transparent 28%),
      linear-gradient(180deg, #eef9f4 0%, #cbe9dc 54%, #b3d8c9 100%);
  }

  .pay-screen {
    padding: 18px 12px 92px;
  }

  .pay-container {
    width: 100%;
    padding: 10px 0 0;
    background: transparent;
    box-shadow: none;
  }

  .pay-page-identity {
    margin-bottom: 18px;
  }

  .back-link {
    display: none;
  }

  .pay-security {
    width: min(260px, 100%);
    margin: 8px auto 18px;
    padding-top: 4px;
  }

  .security-icon {
    width: 52px;
    height: 52px;
  }

  .pay-security strong {
    font-size: 15px;
    line-height: 1.45;
  }

  .pay-warning {
    margin-bottom: 18px;
    padding: 12px 14px;
    text-align: left;
    font-size: 13px;
  }

  .desktop-pay-card {
    display: none;
  }

  .mobile-pay-title {
    margin-left: 2px;
  }

  .pay-info-card {
    margin-bottom: 18px;
    background: #fff;
  }

  .pay-row {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
  }

  .pay-row span {
    color: #0d765d;
  }

  .pay-row strong {
    color: #1f2a37;
    font-size: 15px;
    text-align: right;
  }

  .wallet-picker {
    display: block;
    margin-top: 18px;
  }

  .wallet-picker.hidden {
    display: none;
  }

  .checkout-wallet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .checkout-wallet-card {
    min-height: 94px;
    border: 1px solid rgba(173, 206, 190, 0.92);
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(43, 105, 80, 0.08);
    background: rgba(255, 255, 255, 0.96);
    padding: 15px 8px 12px;
  }

  .checkout-wallet-card:last-child {
    border-bottom: 1px solid rgba(173, 206, 190, 0.92);
  }

  .checkout-wallet-card .wallet-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  .checkout-wallet-card strong {
    font-size: 15px;
  }

  .technical-summary {
    display: none;
  }

  .pay-screen .status {
    display: none;
  }

  .pay-open-button {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    min-height: 56px;
    background: linear-gradient(135deg, #0b765f, #075f4d);
    box-shadow: 0 14px 30px rgba(11, 118, 95, 0.24);
    z-index: 20;
  }
}

@media (min-width: 641px) {
  .mobile-pay-title {
    display: none;
  }

  .pay-open-button {
    display: none;
  }

  .pay-screen .status {
    display: none;
  }
}
