.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.pair {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
}

.fee {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  padding: 4px 12px;
}

.tag {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 10px;
}

.amounts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.amountField {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.balance {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: right;
  padding: 0 4px;
}

.amountRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-deep);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 14px 16px;
}

.amountInput {
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  width: 100%;
  min-width: 0;
}

.amountInput::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.token {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}

.range {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.priceField {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-deep);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 12px 16px;
}

.priceLabel {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.priceInput {
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  width: 100%;
  min-width: 0;
}

.priceInput::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.quote {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 4px 18px;
}

.quoteRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.quoteRow:last-child {
  border-bottom: none;
}

.quoteLabel {
  font-size: 14px;
  color: var(--text-secondary);
}

.quoteValue {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
  font-family: var(--font-mono);
  text-align: right;
}

.feeValue {
  font-size: 20px;
  font-weight: 700;
}

.success {
  color: var(--success);
}

.warning {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--error);
  font-weight: 600;
  line-height: 1.4;
}

.submit {
  margin-top: 20px;
}

/* Пустое состояние, пока пул не выбран. */
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 40px 18px;
  border: 1px dashed var(--glass-border);
  border-radius: 14px;
  background: var(--bg-deep);
}

.placeholderTitle {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.placeholderText {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 280px;
}

@media (max-width: 650px) {
  .card {
    padding: 16px;
  }

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