* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  background: #ececec;
  color: #1e1e1e;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 14px;
}

.layout {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.payment-card {
  width: min(472px, 100%);
  height: auto;
  background: #ffffff;
  border: 1px solid #dedede;
  border-radius: 12px;
  padding: 14px 14px 18px;
  box-shadow: 0 2px 8px rgba(20, 20, 20, 0.07);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.brand {
  color: #ee2a2a;
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-plus {
  font-size: 15px;
  vertical-align: top;
  margin-left: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #bbb;
  background: #fff;
  color: #3f3f3f;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .5s;
}

.icon-btn:hover{
  opacity: .5;
}

.lang-btn {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #343434;
  font-size: 17px;
}

.flag {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 19'%3E%3Crect fill='%23bf0a30' width='19' height='19'%2F%3E%3Crect fill='%23fff' y='1.46' width='19' height='1.46'%2F%3E%3Crect fill='%23fff' y='4.38' width='19' height='1.46'%2F%3E%3Crect fill='%23fff' y='7.31' width='19' height='1.46'%2F%3E%3Crect fill='%23fff' y='10.23' width='19' height='1.46'%2F%3E%3Crect fill='%23fff' y='13.15' width='19' height='1.46'%2F%3E%3Crect fill='%23fff' y='16.08' width='19' height='1.46'%2F%3E%3Crect fill='%233c3b6e' width='7.6' height='10.23'%2F%3E%3C/svg%3E"); background-size: cover;
  color: transparent;
}

.caret {
  color: #777;
  font-size: 14px;
}

.pay-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.pay-label {
  font-size: 18px;
  font-weight: 700;
  margin-top: 6px;
}

.pay-value {
  text-align: right;
}

.amount {
  font-size: 38px;
  line-height: 1;
  font-weight: 700;
}

.usd-eq {
  margin-top: 4px;
  font-size: 14px;
  color: #686868;
  font-weight: 500;
}

.network-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #2f2f2f;
}

.contract-link {
  border: 1px solid #c8c8c8;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 13px;
  color: #4a4a4a;
  text-decoration: underline;
}

.hint-row {
  margin-top: 10px;
  color: #6b89bb;
  font-size: 15px;
  font-weight: 500;
}

.hint-row::before {
  content: "i";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #8eaddf;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  font-size: 12px;
  font-weight: 700;
  transform: translateY(-1px);
}

.divider {
  margin: 16px 0;
  border-top: 1px solid #ececec;
}

.scan-text {
  color: #6a6a6a;
  font-size: 14px;
  margin-bottom: 12px;
}

.transfer-box {
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  min-height: 64px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.transfer-label {
  font-size: 16px;
  color: #676767;
}

.transfer-value {
  font-size: 20px;
  font-weight: 600;
  margin-top: 1px;
}

.copy-btn {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  position: relative;
  cursor: pointer;
  transition: all .5s
}

.copy-btn:hover{
  opacity: .5;
}

.copy-btn span {
  position: absolute;
  width: 12px;
  height: 14px;
  border: 2px solid #2e2e2e;
  border-radius: 2px;
}

.copy-btn span:first-child {
  top: 7px;
  left: 7px;
  background: #fff;;
}

.copy-btn span:last-child {
  top: 4px;
  left: 11px;
  background: #fff;
}

.wallet-btn {
  margin-top: 18px;
  width: 100%;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: #f21414;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all .5s;
}

.wallet-btn:hover{
  background: #fa6565;
}

.or-row {
  margin: 14px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #686868;
  font-size: 20px;
}

.or-row span {
  flex: 1;
  border-top: 1px solid #ececec;
}

.sign-card {
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sign-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.h-mark {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #fff2f2;
  color: #df1e1e;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sign-left p {
  font-size: 22px;
  font-weight: 600;
}

.commission-badge {
  font-size: 11px;
  color: #4a78be;
  background: #e8efff;
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 600;
}

.sign-btn {
  border: 0;
  background: #f1f1f1;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 17px;
  color: #353535;
  cursor: pointer;
  transition: all .5s;
}

.sign-btn:hover{
  opacity: .5;
}

.error-block {
  text-align: center;
  padding: 20px 8px 8px;
}

.error-icon {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  margin: 0 auto;
  background: #ffe8ef;
  color: #e84f79;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 1px solid #ffd2e1;
  box-shadow: 0 0 16px rgba(249, 93, 142, 0.25);
}

.error-block h2 {
  margin-top: 10px;
  color: #eb3d66;
  font-size: 29px;
  line-height: 1.2;
}

.error-block p {
  margin-top: 10px;
  color: #6e6e6e;
  font-size: 15px;
  line-height: 1.35;
}

.warning-row {
  margin-top: 16px;
  background: #f9f4e8;
  border-radius: 6px;
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.warn-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f4b527;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.warning-row p {
  font-size: 15px;
  line-height: 1.25;
  color: #444;
}

.timer-label {
  margin-top: 14px;
  text-align: center;
  color: #6f6f6f;
  font-size: 14px;
}

.chat-fab {
  position: fixed;
  right: 28px;
  bottom: 26px;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: #111b2d;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-fab::before {
  content: "";
  width: 22px;
  height: 15px;
  border-radius: 10px;
  background: #fff;
  position: absolute;
}

.chat-fab::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #fff;
  position: absolute;
  right: 12px;
  bottom: 14px;
  transform: rotate(45deg);
}

.chat-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #111b2d;
  position: relative;
  z-index: 1;
}

.chat-dot::before,
.chat-dot::after {
  content: "";
  position: absolute;
  top: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #111b2d;
}

.chat-dot::before {
  left: -6px;
}

.chat-dot::after {
  left: 6px;
}

@media (max-width: 620px) {
  .brand {
    font-size: 24px;
  }

  .lang-btn {
    font-size: 13px;
  }

  .pay-label {
    font-size: 16px;
  }

  .amount {
    font-size: 30px;
  }

  .usd-eq {
    font-size: 14px;
  }

  .network-row {
    font-size: 14px;
  }

  .hint-row {
    font-size: 15px;
  }

  .scan-text {
    font-size: 13px;
  }

  .transfer-label {
    font-size: 15px;
  }

  .transfer-value {
    font-size: 18px;
  }

  .wallet-btn {
    height: 36px;
    font-size: 16px;
  }

  .or-row {
    font-size: 19px;
  }

  .sign-left p {
    font-size: 17px;
  }

  .commission-badge {
    font-size: 10px;
  }

  .sign-btn {
    font-size: 15px;
    padding: 7px 14px;
  }

  .error-block h2 {
    font-size: 22px;
  }

  .warning-row p {
    font-size: 14px;
  }

  .timer-label {
    font-size: 15px;
  }

  .chat-fab {
    width: 44px;
    height: 44px;
    right: 16px;
    bottom: 16px;
  }
}
