* {
  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%);
  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: 14px;
}

.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: 9px;
}

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

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

.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;
}

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

.step-panel {
  display: none;
}

.step-panel.is-active {
  display: block;
}

.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 {
  color: #4a4a4a;
  font-size: 13px;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.contract-icon {
  width: 12px;
  height: 12px;
  border: 1px solid #909090;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  line-height: 1;
}

.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);
}

.hint-row.dark {
  color: #32495e;
}

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

.input-box,
.select-box,
.wallet-input {
  width: 100%;
  border: 1px solid #e7e7e7;
  border-radius: 10px;
  background: #fcfcfc;
}

.input-box {
  padding: 10px 12px;
}

.input-label {
  font-size: 11px;
  color: #a0a0a0;
}

.input-value {
  margin-top: 2px;
  font-size: 31px;
  font-weight: 600;
}

.wallet-input {
  margin-top: 10px;
  height: 40px;
  padding: 0 12px;
  color: #8d8d8d;
  font-size: 13px;
}

.wallet-input::placeholder {
  color: #a9a9a9;
}

.select-box {
  height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 22px;
  border: 1px solid #e6e6e6;
  cursor: pointer;
}

.select-left {
  display: inline-flex;
  align-items: center;
}

.select-box + .select-title {
  margin-top: 12px;
}

.coin-tag {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #35bf95;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

.select-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 10px;
}

.amount-row {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #676767;
}

.amount-row-box {
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #ececec;
  padding: 11px 12px;
}

.amount-row span {
  font-size: 12px;
}

.amount-row strong {
  font-size: 16px;
  color: #2d2d2d;
}

.action-btn {
  margin-top: 12px;
  width: 100%;
  height: 39px;
  border: 0;
  border-radius: 13px;
  background: #141b31;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.action-btn-red {
  background: #ff0f16;
}

.subtext-line {
  margin-top: 10px;
  font-size: 11px;
  color: #626262;
}

.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-wrap {
  margin-top: 14px;
  text-align: center;
  color: #707070;
  font-size: 12px;
}

.countdown {
  margin-top: 4px;
  color: #1ea46d;
  font-size: 20px;
  font-weight: 600;
}

.timer-icon {
  font-size: 15px;
  vertical-align: middle;
}

.powered-by {
  margin-top: 11px;
  color: #c8c8c8;
  font-size: 15px;
  font-weight: 600;
}

.powered-by span {
  color: #e73333;
}

.chat-fab {
  position: fixed;
  right: 26px;
  bottom: 22px;
  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;
  cursor: pointer;
}

.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) {
  .payment-card {
    border-radius: 12px;
    padding: 12px;
  }

  .brand {
    font-size: 24px;
  }

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

  .pay-label {
    font-size: 18px;
    margin-top: 4px;
  }

  .amount {
    font-size: 32px;
  }

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

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

  .contract-link {
    font-size: 13px;
  }

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

  .input-value {
    font-size: 20px;
  }

  .select-box {
    font-size: 17px;
  }

  .action-btn {
    font-size: 18px;
    height: 38px;
  }

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

  .powered-by {
    font-size: 14px;
  }

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