*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #1a1a1a;
  color: #fff;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.send-app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  background: #1a1a1a;
}

.send-header {
  display: flex;
  align-items: center;
  padding: 12px 20px;
}

.send-header__spacer {
  flex: 1;
}

.send-header__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.send-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 80px;
}

.send-label {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  color: #afb3b7;
}

.send-field {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  margin-bottom: 20px;
}

.send-field__input {
  flex: 1;
  min-width: 0;
  padding: 14px 0;
  border: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 15px;
  outline: none;
}

.send-field__input::placeholder {
  color: #fff;
}

.send-field__input--amount::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.send-field__suffix {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 8px;
}

.send-field__suffix--address {
  gap: 10px;
}

.send-link {
  border: none;
  background: none;
  padding: 0;
  color: #21c55d;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.send-link--bold {
  font-weight: 600;
}

.send-icon {
  display: block;
  object-fit: cover;
  filter: brightness(0) saturate(100%) invert(58%) sepia(52%) saturate(497%)
    hue-rotate(92deg) brightness(95%) contrast(92%);
}

.send-muted {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.send-network {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  margin-bottom: 20px;
  background: #1c1c1c;
  border-radius: 30px;
  cursor: default;
}

.send-network__icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.send-network__name {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

.send-network__chevron {
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  line-height: 1;
  margin-left: 4px;
}

.send-usd {
  margin: 0 0 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.54);
}

.send-error {
  margin: 0;
  font-size: 14px;
  color: #f44;
  line-height: 1.35;
}

.send-footer {
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.send-cta {
  width: 100%;
  height: 60px;
  border: none;
  border-radius: 30px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  cursor: pointer;
  transition: background 0.15s ease;
}

.send-cta--active {
  background: #21c55d;
}

.send-cta--disabled {
  background: #2b6e52;
  cursor: not-allowed;
}

.send-cta:disabled {
  cursor: not-allowed;
}

/* Tx bottom sheet */
.tx-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  animation: fadeIn 0.2s ease;
}

.tx-overlay[hidden] {
  display: none !important;
}

.tx-sheet {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 65vh;
  padding: 10px 20px 18px;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
  background: #13181e;
  border-radius: 24px 24px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: slideUp 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.tx-sheet__handle {
  width: 38px;
  height: 4px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.tx-sheet__close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.tx-sheet__icon {
  width: 100%;
  margin-top: 24px;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tx-sheet__gif {
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.tx-sheet__gif[hidden] {
  display: none !important;
}

.tx-sheet__title {
  margin: 18px 0 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.tx-sheet__message {
  margin: 0;
  padding: 0 12px;
  flex: 1;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.7);
}

.tx-sheet__cta {
  margin-top: auto;
  margin-bottom: 22px;
  height: 54px;
  background: #21c55d;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
